Example usage for Java android.graphics.drawable StateListDrawable fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addState(int[] stateSet, Drawable drawable) Add a new image/string ID to the set of images. |
ConstantState | getConstantState() |
Drawable | getCurrent() |
int | getIntrinsicWidth() |
boolean | getPadding(Rect padding) |
Drawable | getStateDrawable(int index) Gets the drawable at an index. |
int | getStateDrawableIndex(int[] stateSet) Gets the index of the drawable with the provided state set. |
void | setAlpha(int alpha) |
void | setColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) Specify a color and Porter-Duff mode to be the color filter for this drawable. |
void | setColorFilter(ColorFilter colorFilter) |
void | setEnterFadeDuration(int ms) Change the global fade duration when a new drawable is entering the scene. |
void | setExitFadeDuration(int ms) Change the global fade duration when a new drawable is leaving the scene. |
boolean | setState(@NonNull final int[] stateSet) Specify a set of states for the drawable. |