Home | History | Annotate | Download | only in graphics

Lines Matching refs:palette

34 import android.support.v7.graphics.Palette;
44 * {@link android.support.v7.graphics.Palette} results.
46 * Allows the customization of the number of colors used in the palette generation, to demonstrate
179 * Set the number of colors used for {@link Palette} generation.
189 // of the Palette UI
206 Palette.generateAsync(bitmap, mNumColors,
207 new Palette.PaletteAsyncListener() {
209 public void onGenerated(Palette palette) {
212 palette.getVibrantSwatch());
215 palette.getMutedSwatch());
218 palette.getLightVibrantSwatch());
221 palette.getLightMutedSwatch());
224 palette.getDarkVibrantSwatch());
227 palette.getDarkMutedSwatch());
235 static void setBackgroundColor(View view, Palette.Swatch swatch) {