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...
}
});