This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...
Custom adapters can be expensive if not done right. This video highlights the problems and gives you solutions to address those problems.
Things to Remember
------------------------------
1. Use the 'recycled' convertView parameter to avoid creating unnecessary views.
2. Make sure that your holder class is static, this will avoid memory leaks.
3. Set your holder instance to the View using the View.setTag(Object) method.
4. Retrieve your holder from the 'recycled' view by calling the View.getTag() method.
Смотрите видео Android Tutorial 51 - Beautify your List #3: Right Way To Do It онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Here Now 25 Март 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,160 раз и оно понравилось 10 людям.