Android Android Lists and Adapters Adapters and ViewHolders Adapter Class & ViewHolder Sub-Class

I don't understand anything about integrating Views, ViewHolders. Can somebody explain to me?

.

1 Answer

Abdallah Al Sayed Ali Saf
Abdallah Al Sayed Ali Saf
527 Points

Since we are using OOP thus Views are Objects too...And so every time we inflate those view to List View ( creating the objects inside them from there corresponding xml file in case we are creating them fro a layout) we create many objects...In order to save memory we use View Holder and that's why they smooth the scroll of the list, we create the object just one time by inflating it and just by changing the variables that are changing in each item of the list and showing it to the user....