Chris Banes
HomeMeTalks

Palette

Palette, Color extraction

Palette v21

Tried the Android Lollipop SDK? You may have noticed that Palette’s API has been updated. As before, Palette allows you to extract colors from images for use in your UI. Generating a palette The first step is to generate a Palette instance from a Bitmap. We have four related ways to do this: // Synchronous methods. // -------------------------------- // These should be used when you have access to the underlying image loading thread. // Picasso allows this through a Transformation. For other l
Chris Banes
Chris BanesOct 20, 2014•2 min read
Palette, Color extraction

Palette preview

Tried the Android L preview SDK? You may have noticed a new support library called Palette. Palette allows you to extract colors from images for use in your UI (sound familiar?). Anyway I have made a mistake and not pushed any javadoc for it. So here is my quick overview until we push something official. Please be aware though that Palette’s API is changing for the full L release (not much though). Generating a palette The first step is to generate a Palette instance from a Bitmap. We have f
Chris Banes
Chris BanesJul 4, 2014•2 min read
Chris Banes © 2020
HomeMeTalks