If i use SetListAdapter
to show +10,000 rows, may problems occur?
If yes, please guide me for choose a better way to show these rows.
Thanks
If i use SetListAdapter
to show +10,000 rows, may problems occur?
If yes, please guide me for choose a better way to show these rows.
Thanks
ListView
can display any number of elements data; but there is a trick when we're discussing about large and very large numbers: you need to re-use the views that the ListView
is holding. This Google IO presentation is the best thing I can recommend you.
Now, there are other things I can think of that will have a negative impact:
ArrayList
then I believe you would have instant access. Or decide for yourself what data structure to use. Seems to me choosing the right collection is really important. Maybe this article will help you.In the end you should also consider about how users will use the app. Would it worth storing all messages in memory since the user will probably want to see latest ones, the ones from last week, or the ones from his favorite contacts? Maybe a filtering option would be helpful to have and this way you could persist them in SQLite.