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?

Answers


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.


Need Your Help

Test an Angularjs service which makes API calls

angularjs jasmine

I have a Service which contains my code for making async API calls:

Android Publication Steps

android eclipse google-play

I have some doubts in steps of preparing the application to be published.