I was wondering if there is any optimized way to create an adapter that holds more than 1k object in it. I have tried the following but still the results were not promising
As far as I know, I use some structure below
https://developer.android.com/training/improving-layouts/optimizing-layout.html
https://developer.android.com/tools/performance/debug-gpu-overdraw/index.html
Load ImageView
in ListView
: I am using "Universal Image Loader" and enable mode: stop load image when scrolling
Optimize code in the getView(...) function of ListView
Adapter
: Try to make the code clear and short, restrictive use if{}else{}
If you have a problem with OutOfMemory, take a look at Java Reference https://www.rallydev.com/blog/engineering/java-references-strong-soft-weak-phantom
Try to use RecycleView, it much more powerful, flexible and a major enhancement over ListView https://stackoverflow.com/a/31199564/5381331