I have an Android application that has a CursorAdapter -based CursorAdapter (supported by sqlite), as well as a ListView based ListView , created on the fly from JSON, demolished from the server.
The data displayed in both is identical - the image and a pair of TextView s. My cursor-based ListView has 3,000 rows, for a JSON-based ListView about 30. However, scrolling through the list is significantly faster for a cursor-based adapter. For JSON-based lists, all data is retrieved before the rows become visible. Images for both types of lists are uploaded on request.
I have both ListViews configured the same way - both with fastScrollEnabled , scrollingCache and smoothScrollbar set to true.
I am looking for potential customers to do this, to figure out what is happening here, and potentially fix it so that the JSON-based ListView is as fast as the Cursor-based one.
performance android listview
psychotik
source share