I have my own list view, which displays users, and there photos I extract data from the API, which gives JSON output,
My problem is that the list view does not scroll smoothly, it freezes for a second and scrolls, it repeats until we reach the end.
I thought this could be because I am performing a network operation on a user interface thread, but it continues to do this even after the download is complete?
structure of my custom Listview
<TextView style="@style/photo_post_text"
android:id="@+id/photo_post_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="demotext"
/>
<ImageView
android:id="@+id/userimage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:src="@drawable/pi"
/>
source
share