async-loading

Is it absolutely correct that Picasso understands NOT to load if the view has been recycled?

穿精又带淫゛_ 提交于 2019-12-08 05:10:11
问题 I'm a little confused: as a rule when async loading images to some sort of list view (whether on Android or iOS or in the abstract on another platform), you essentially must do this .. -- make a note of "which" cell this is (say, #213) -- start getting the image from the net. -- it has loaded from the net. What cell are we now? -- if we are "still" 213, load the image to the image view! -- if we are "no longer" 213, just forget about it. this is a basic in lazy-loading async images. For

Is it absolutely correct that Picasso understands NOT to load if the view has been recycled?

蹲街弑〆低调 提交于 2019-12-06 16:56:19
I'm a little confused: as a rule when async loading images to some sort of list view (whether on Android or iOS or in the abstract on another platform), you essentially must do this .. -- make a note of "which" cell this is (say, #213) -- start getting the image from the net. -- it has loaded from the net. What cell are we now? -- if we are "still" 213, load the image to the image view! -- if we are "no longer" 213, just forget about it. this is a basic in lazy-loading async images. For example, Lucas Rocha explains it perfectly in a famous article here: http://lucasr.org/2012/04/05

Implementing “withDelay” in Picasso Android (for skimming)

余生颓废 提交于 2019-11-28 00:27:29
When dealing with many scrolling images, you have to avoid the problem of loading while skimming, while the user is fast scrolling. The simplest and often best solution is remarkably simple: just introduce a small delay (say .350) before doing anything . If the image is already in cache, just load it. Otherwise just wait a bit - and then proceed totally normally. With the magnificent Picasso, depressingly it looks like there is a fork which in fact does just this, it has a "withDelay" option** (see https://github.com/square/picasso/issues/248 ) I'm scared of forks. But is it possible to do

Implementing “withDelay” in Picasso Android (for skimming)

岁酱吖の 提交于 2019-11-26 21:42:32
问题 When dealing with many scrolling images, you have to avoid the problem of loading while skimming, while the user is fast scrolling. The simplest and often best solution is remarkably simple: just introduce a small delay (say .350) before doing anything . If the image is already in cache, just load it. Otherwise just wait a bit - and then proceed totally normally. With the magnificent Picasso, depressingly it looks like there is a fork which in fact does just this, it has a "withDelay" option*