Lines Matching refs:color

142      * as alpha (set via setAlpha) and color filter (set via setColorFilter).
271 * with fewer than 8-bits per color component. This can improve the look on
459 * Specify an optional color filter for the drawable. Pass {@code null} to
460 * remove any existing color filter.
462 * @param cf the color filter to apply, or {@code null} to remove the
463 * existing color filter
468 * Specify a color and Porter-Duff mode to be the color filter for this
471 public void setColorFilter(int color, PorterDuff.Mode mode) {
472 setColorFilter(new PorterDuffColorFilter(color, mode));
478 * Setting a color filter via {@link #setColorFilter(ColorFilter)} overrides
489 * Specifies a tint for this drawable as a color state list.
491 * Setting a color filter via {@link #setColorFilter(ColorFilter)} overrides
503 * Setting a color filter via {@link #setColorFilter(ColorFilter)} overrides
513 * Returns the current color filter, or {@code null} if none set.
515 * @return the current color filter, or {@code null} if none set
522 * Removes the color filter for this drawable.
738 * custom alpha or color filter that has been applied by the client through
821 * -1 if it has no intrinsic width, such as with a solid color.
829 * -1 if it has no intrinsic height, such as with a solid color.
1081 case "color":
1290 * Ensures the tint filter is consistent with the current tint color and
1299 final int color = tint.getColorForState(getState(), Color.TRANSPARENT);
1301 return new PorterDuffColorFilter(color, tintMode);
1304 tintFilter.setColor(color);