Optimized list view with 1k list of objects

I was wondering if there is any optimized way to create an adapter that contains more than 1,000 objects. I tried the following, but the results were not promising.

Drawing by A.View owner - it helped, but when the size of the object increased, it had problems

B. Note: I could use a paginated api that passes a certain number of objects, but I want Api to be paginated in my scenerio.

There are images on my list, but I took care of that. Now this is not a problem.

Let me know about any new ways to reach an adapter that can have a large number of object lists in it without any problems.

+4
source share
1 answer

As far as I know, I use some structure below

  • Use ViewHolder
  • Do not create a new object if you are not using
  • Optimizing layout hierarchy

https://developer.android.com/training/improving-layouts/optimizing-layout.html

  • Reinstallation Prevention

https://developer.android.com/tools/performance/debug-gpu-overdraw/index.html

+3

Source: https://habr.com/ru/post/1616320/


All Articles