Lines Matching refs:color

3369      * Solid color to use as a background when creating the drawing cache. Enables
3441 * is useful to apply a specific color filter and/or blending mode and/or
3470 * <p>A hardware layer is useful to apply a specific color filter and/or
11970 * draw all the pixels overlapping its bounds using a fully opaque color.
14273 * Setting a solid background color for the drawing cache's bitmaps will improve
14275 * view will always be drawn on top of a solid color.
14277 * @param color The background color to use for the drawing cache's bitmap
14283 public void setDrawingCacheBackgroundColor(int color) {
14284 if (color != mDrawingCacheBackgroundColor) {
14285 mDrawingCacheBackgroundColor = color;
14293 * @return The background color to used for the drawing cache's bitmap
15498 * Override this if your view is known to always be drawn on top of a solid color background,
15499 * and needs to draw fading edges. Returning a non-zero color enables the view system to
15500 * optimize the drawing of the fading edges. If you do return a non-zero color, the alpha
15506 * @return The known solid color background for this view, or 0 if the color may vary
16178 * Sets the background color for this view.
16179 * @param color the color of the background
16182 public void setBackgroundColor(int color) {
16184 ((ColorDrawable) mBackground.mutate()).setColor(color);
16188 setBackground(new ColorDrawable(color));
20646 public void setFadeColor(int color) {
20647 if (color != mLastColor) {
20648 mLastColor = color;
20650 if (color != 0) {
20651 shader = new LinearGradient(0, 0, 0, 1, color | 0xFF000000,
20652 color & 0x00FFFFFF, Shader.TileMode.CLAMP);