hi i have a problem with a android app. i have a list which contains a bitmap and a string.
the bitmap is always generated via the BitmapFactory. I dont have this in a own thread, so when the list gets long, the loading of the page takes a lot of time.
now my question:
what is the easyest way to make this smooth for the user so he dont have to wait. the best way would be to show the strings first and then show a loading bar fpr each bitmap and then generate it one after the other.
but should i make this with one additional thread or one thread for each image?
Look at the following thread:
Lazy load of images in ListView
Specifically this answer: https://stackoverflow.com/a/3068012/586859
What you are looking for is commonly labeled “Lazy Loading”. This thread contains a method to even cache images you are downloading for faster image loads. I would recommend optimizing your
ListViewusingViewHolder, and utilize an adapter similar to the ones found in that post to achieve a smoother view.