Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
529 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....