Android, how to stop reading getView() function again, if the content is already downloaded in the ListView
I am a newbie Android guy.
I have a ListView displaying images on every element of the ListView, It works fine... but when I start to scrolling I have开发者_运维技巧 realized my image is downloaded again if it is displayed in the screen of my phone device!
How could I stop reloading the images or all the content of the in ListView again? Or how could I avoid reading the getView() function again If I have already downloaded all its content?
It is possible to create an efficient adapter with different view types. Take a look at this question.
It's fairly simple. Just need to override getItemViewType and getViewTypeCount. Then you can count on convertView being the correct view type.
精彩评论