ListView - Can it be customised?

skaliwag

Member
Licensed User
Longtime User
So, as I understand it a ListView is very efficient because it uses the same view for each item, and only creates them as necessary, but can't be customised.

A CustomListView is more flexible allowing different views for each item, but views are created for each item, which makes it very slow for large lists.

So my question is, is there a ListView which uses a single custom view for each item, like the normal ListView, but only creates them as necessary.
 

eps

Expert
Licensed User
Longtime User
When you say Large Lists, how large?

I guess you've already considered ScrollView?

http://www.b4x.com/forum/basic4andr...23-scrollview-examples-summary.html#post47137

There is a ListView2 or extended ListView which someone has provided on here, have you looked at that as well? I can't seem to find it right now, but maybe someone else will know what it's called.. Found it : http://www.b4x.com/forum/additional...istview-based-native-listview.html#post147265

Erel beat me to it! UltimateListView was one I was also thinking of, but as mentioned it's not free.
 
Last edited:
Upvote 0

skaliwag

Member
Licensed User
Longtime User
Thanks for the replies.

I would be handling at least 1400 entries.
Both ScrollView and CustomListView are proving too slow, especially on older devices, which I have to support.

The solution shown here
http://www.b4x.com/forum/basic4android-getting-started-tutorials/17708-custom-listview-library.html#post101528
does seem to work, but requires more familiarity with Java, Eclipse and Android than I currently have, and as I understand it would require creating a new library every time you wanted a different style of list.

The demos for UltimateListView are very impressive, and run at a good speed even on an ancient Archos 28, but I can't find any information about the size of this library. Does anyone know?
 
Upvote 0
Top