Example usage for Java android.graphics.drawable RippleDrawable fields, constructors, methods, implement or subclass
The text is from its open source code.
RippleDrawable(@NonNull ColorStateList color, @Nullable Drawable content, @Nullable Drawable mask) Creates a new ripple drawable with the specified ripple color and optional content and mask drawables. |
Drawable | getDrawable(int index) Returns the drawable for the layer at the specified index. |
void | setColor(ColorStateList color) Sets the ripple color. |
void | setHotspot(float x, float y) |
boolean | setState(@NonNull final int[] stateSet) Specify a set of states for the drawable. |
boolean | setVisible(boolean visible, boolean restart) |