3

I wanted to use the Palette library in Android. I am also using Picasso to load images into an imageview. Is there any way of knowing when Picasso is done loading the image so I can get the colors from the image in Palette?

Picasso.with(context).load("http://urlForImage").placeholder(R.drawable.place_holder_image).into(imageView);
Palette.generateAsync(BITMAP, new Palette.PaletteAsyncListener() {
                @Override
                public void onGenerated(Palette palette) {
                    //do stuff with palette...
                }
            });
John Saunders
  • 160,644
  • 26
  • 247
  • 397
DDukesterman
  • 1,391
  • 5
  • 24
  • 42
  • 2
    See response at http://stackoverflow.com/questions/24072176/picasso-image-load-callback – joao2fast4u Mar 15 '15 at 20:58
  • 1
    Thanks! I knew I overlooked something... :) – DDukesterman Mar 15 '15 at 22:11
  • Unlike forum sites, we don't use "Thanks", or "Any help appreciated", or signatures on [so]. See "[Should 'Hi', 'thanks,' taglines, and salutations be removed from posts?](http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts). BTW, it's "Thanks in advance", not "Thanks in advanced". – John Saunders Mar 18 '15 at 01:39

0 Answers0