I'm trying to create something like messaging app. I have listview where has to be user image, name and his message. With message i have no problem, because i download them before listview creation. But with image is a big trouble. Listview item loads faster than image, so in reault i get listview with message text, but without image. I'm just out of ideas. Looking forward for your solutions.
Asked
Active
Viewed 38 times
0
-
1please post your code. – Jigar Shekh May 30 '15 at 09:17
1 Answers
0
you should load images in another thread(background) like using handler,asynck task
or use libraries like universal image loader

Mergu.
- 151
- 1
- 5
-
Yea. I know. And do like that. But ui thread runs faster than thread, where image is loading. So finally i have listview items without image that has to be downloaded – Vlad_Zabolotny May 30 '15 at 09:52
-
-
From network. I'm loading user's profile that includes his name and url to image – Vlad_Zabolotny May 30 '15 at 09:59
-
then the image load based on the internet speed so it may load fast or not. because you first show the loading view of image – Mergu. May 30 '15 at 10:02
-