I am Currently working on Android, and I created listview that loads Images from URL. I have achieved this by following code
InputStream is = (InputStream) new URL("http://ka.35pk.com/uploadfiles/gamepic/090830121252.jpg").getContent();
Drawable d = Drawable.createFromStream(is, "pic name");
imageview.setImageDrawable(d);
In the listview the image is not loading till I scroll down the listview once. But it can loaded correctly on invisible part of listview. ie , if I have 100 images on listview means, only 10 images have visible on the screen at a time, these 10 images coudn’t load at begging, when I scroll down, another 10 invisible images now come to the visible part, and those images are loaded successfully now, again when I scroll up , now those unloaded images also loaded now, which means that, it coudn’t be loaded when it was visible on the screen. Sorry for my English.Hope, I have explained in details. How can I load all the listview images from URL without using scroll down/up. kindly help me. thanks.
Check this answer it is help you:
and
If your app have many image & also there is memory issue then you have to handle you owen way.
Like download image in listview using lazy loading. and for other images use another way like link 2.
for your scrolling problem check your
getView()code in adapter add like below:if you are use any other view in layout then make it
android:focusable='false'