Example usage for Java android.graphics.drawable ColorDrawable fields, constructors, methods, implement or subclass
The text is from its open source code.
ColorDrawable(@ColorInt int color) Creates a new ColorDrawable with the specified color. | |
ColorDrawable() Creates a new black ColorDrawable. |
void | draw(Canvas canvas) |
Rect | getBounds() Return the drawable's bounds Rect. |
Class> | getClass() Returns the runtime class of this Object . |
int | getColor() Gets the drawable's color value. |
void | setAlpha(int alpha) Sets the color's alpha value. |
void | setBounds(int left, int top, int right, int bottom) Specify a bounding rectangle for the Drawable. |
void | setBounds(@NonNull Rect bounds) Specify a bounding rectangle for the Drawable. |
void | setColor(@ColorInt int color) Sets the drawable's color value. |
void | setColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) Specify a color and Porter-Duff mode to be the color filter for this drawable. |