Android Custom Adapter But the ListView only shows the first piece of data

Source: Internet
Author: User

Landlord let this problem depressed a night ..... In the Logcat clearly show adapter GetView method list is greater than a data, but Posotion has been 0 .... The data inside the list[0] is displayed only after running .... The final final error is on the layout file.

I used to be like this;

<scrollview        android:layout_width= "fill_parent"             android:layout_height= "wrap_content"        >       <!--ListView--   <listview android:id= "@+id/listview1" android:layout_width= "Fill_parent" Android: layout_height= "Fill_parent" android:drawselectorontop= "false" android:background= "@drawable/home_index_btn_d" Android:fadingedge= "None" android:cachecolorhint= "#00000000" android:scrollbars= "vertical"/>    </ Scrollview>
It's the scrollview of this mess ... It's OK after you get rid of it ....

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.