More Picasso changes

I recently added more changes to my forked version of the Picasso library.

Delay

Added withDelay(long ms) method in the RequestCreator class. Basically it will delay the load of the passed resource by n milliseconds.

1
2
3
4
Picasso.with( context )
   .load( url )
   .withDelay( 100 )
   .into( image );

Batch toggle on/off

In the original Picasso code all the “complete” events are dispatched using a batch operation, this means that you can have at the same time 3/4 “complete” events being triggered, which eventually can cause lags in the UI.
In this fork the batch is disabled by default and can be re-enabled by using:

1
2
Picasso.with( context )
   .setUseBatch( true );

Fork or download the source from GitHub:
https://github.com/sephiroth74/picasso

Link the library in your build.gradle:
compile “it.sephiroth.android.library.picasso:picasso:+”

  • Hi Alessandro!

    Any chance you can add a determinant progress bar for displaying photo thru Picasso? like how Instagram does it on their Android app…

  • Alexey Illarionov

    Bump it up to 2.4.0 please