I am wondering if which of the two is better in loading images in a listview from web, is it by batch through some number of threads that are running simultaneously or one by one through thread queue?
I have noticed (but I don't know if that is really the implementation) from the youtube app that the images are loaded by batch and it is kinda fast. Even for not only loading images but also requesting some data from the web as well. Does anyone have an idea?
"better" in which way? Performance wise? Developer-friendliness? Usability wise?
A couple fundamental things to consider:
getView()
of your ListAdapter
, check whether the image has already been loaded, and if not, re-use a thread from the thread pool to do the work.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With