Android custom list -- SimpleAdapter

Source: Internet
Author: User

Write a custom List and reload SimpleAdapter. In the previous List, there were only three options, and the fourth one was added. The fourth image is displayed in the same way as the first one. No change is correct. Finally, I found that a non-empty judgment is added to the Adapter. If convertView has a value, it will not be parsed ,. After deletion, the Bug-> resoved [java] public class PersonsSelectAdapter extends SimpleAdapter {... @ Override public View getView (int position, View convertView, ViewGroup parent) {if (convertView = null ){...}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.