Jim Blackler wrote:
i need to show a List of around 8000 to 10000 elements at the same time
on the UI

OK that's mad. How can the user reasonably navigate that many entries in a single list? Search and pagination are your friends here.

I would tend to agree, however for my Prisjakt application (locates best price of products) some of my users insisted that the normal searching (by text or barcode) was not enough - they absolutely wanted the ability to browse all the products in the tree too. For most of the leaf nodes the number of items shown in quite reasonable, but in extreme cases (such as DVD films) it goes beyond 30000.

What I did first of all was allow sorting (by default ranked) and then only load 20 items at a time - similar to how it works in Android Market. (I'm pretty sure nobody has ever fetched the full 30000+ list, but in theory that is likely to cause OOM.)

Since I introduced this, I've had no further insisting users, so either it is good enough or these particular users have realized that searching is actually better...

                My few eurocents / Jonas

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to