Reputation: 311
My activity currently has more than 80 views and now I´m getting the error, that this is (obviously) bad for performance. So, what can I do to increase the performance?
Is it possible to only load the views that are visible on the screen?
These are the views i´ve to repeat over and over again: http://i.imgur.com/Opc1KEA.png
Upvotes: 1
Views: 1010
Reputation: 36312
There's no way you're fitting 80 of those on your screen, so as you mentioned, you only want to load the views that are visible on the screen. You need to implement an Adapter
. Depending on your layout that might possibly be in conjunction with a GridView
, but almost certainly some sort of layout that subclasses AdapterView
.
Upvotes: 3