Lines Matching refs:palette
33 import android.support.v7.graphics.Palette;
45 * {@link android.support.v7.graphics.Palette} results.
47 * Allows the customization of the number of colors used in the palette generation, to demonstrate
180 * Set the number of colors used for {@link Palette} generation.
190 // of the Palette UI
207 new Palette.Builder(bitmap).maximumColorCount(mNumColors).generate(
208 new Palette.PaletteAsyncListener() {
210 public void onGenerated(Palette palette) {
213 palette.getVibrantSwatch());
216 palette.getMutedSwatch());
219 palette.getLightVibrantSwatch());
222 palette.getLightMutedSwatch());
225 palette.getDarkVibrantSwatch());
228 palette.getDarkMutedSwatch());
236 static void setBackgroundColor(View view, Palette.Swatch swatch) {