I'm a little confused: as a rule, when asynchronously loading images into some kind of list (whether on Android or iOS or in abstract on another platform), you essentially have to do this ..
-- make a note of "which" cell this is (say,
This is the main delayed boot asynchronous image. For example, Lucas Rocha perfectly explains this in a famous article:
http://lucasr.org/2012/04/05/performance-tips-for-androids-listview/
(scroll down to "Here is just a simplified outline of the way you could do this:" ...)
Well, now, as I understand it, Picasso actually does this for you completely automatically.
Picasso himself “knows” whether the view has changed. If the view has changed, Picasso knows whether to download it
Am I completely right? This is Picasso's built-in feature and I don’t have to do anything else?
(In addition, I'm somewhat puzzled by how Picasso does it; looking at him, I don’t see any magic code in Picasso where he writes the identifier, or something like the owner’s “view”).)
Just to be clear, I am using Picasso in the usual way, just like it is, in fact, at the end of getView ...
Picasso. with(State.mainContext). load(imageFile.getUrl()). placeholder(R.drawable.default). noFade(). into(v.hexaIV);
android picasso lazy-loading async-loading
Fatie
source share