Java android.graphics.drawable RippleDrawable fields, constructors, methods, implement or subclass

Example usage for Java android.graphics.drawable RippleDrawable fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics.drawable RippleDrawable.

The text is from its open source code.

Constructor

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.

Method

DrawablegetDrawable(int index)
Returns the drawable for the layer at the specified index.
voidsetColor(ColorStateList color)
Sets the ripple color.
voidsetHotspot(float x, float y)
booleansetState(@NonNull final int[] stateSet)
Specify a set of states for the drawable.
booleansetVisible(boolean visible, boolean restart)