Android ListView for Big Datasets

Android ListView with SimpleCursorAdapter, takes time to display a ListView for a large DataSet (about 7000 records). Is there any way to optimize it? From the log, it looks like the cursor takes about 4-7 seconds. Let me know if anyone has a solution for this?

Regards, Sathish

+4
source share
2 answers

You can check out the "Performance Optimization for Your Own Adapter" section of this article. http://www.vogella.de/articles/AndroidListView/article.html

Anyway, do you really want to scroll through these 7000 lines?

+4
source

A few ideas:

1- Display data one page at a time. When you scroll down, load more data.

2- Scrolling through 7000 entries to go to the end will last forever. Access your data through the search form. Limit your results to 100 entries.

3- If the data is sorted, group the elements together and specify the index. For example, alphabetical lists can be divided into 26 subsets. The alphabet is shown on the first page, and you need to click on the letter to go to a subset.

Emmanuel

+2
source

All Articles