Using scrolling listview seems really buggy. I have a listview, adapter on which I prepare all the data (with all the network calls), and then populate the listview adapter.
The scrolling is just not smooth, and most of the time does not work if I implemented ListView within a ScrollView
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" > <ListView android:id="@+id/rideList" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/customersTitle" android:background="@drawable/roundcornersgreyback" android:scrollbarSize="3dp" android:scrollbarStyle="outsideOverlay" android:scrollbars="vertical" android:scrollingCache="true" android:smoothScrollbar="true" android:visibility="visible" /> </ScrollView> When I scroll without the ScrollView, just use the attributes of the ListView itself, the list scrolls, but there is a part that is lost on the bottom of my layout. The footer is hidden.
<ListView android:id="@+id/rideList" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/customersTitle" android:background="@drawable/roundcornersgreyback" android:scrollbarSize="3dp" android:scrollbarStyle="outsideOverlay" android:scrollbars="vertical" android:scrollingCache="true" android:smoothScrollbar="true" android:visibility="visible" /> If I get the ScrollView to the root of the layout, the list view fails to scroll at all.
What am I doing wrong ? Is it that crazy to need to scroll the list and the view ?
Edit : The code is as per viewHolder layout.