Class of android.graphics.drawable · ColorStateListDrawable.java · Android's reference
public class ColorStateListDrawable extends Drawable
ColorStateListDrawable ← Drawable
A rectangle of the color a color state list gives for the drawable's state.
public ColorStateListDrawable() sourcepublic ColorStateListDrawable(ColorStateList colorStateList) sourcepublic void draw(Canvas canvas) sourcepublic ColorStateList getColorStateList() sourcepublic void setColorStateList(ColorStateList colorStateList) sourcepublic boolean isStateful() sourcepublic boolean hasFocusStateSpecified() sourceprotected boolean onStateChange(int[] state) sourcepublic int getAlpha() sourcepublic void setAlpha(int alpha) sourcepublic void clearAlpha() sourcepublic void setColorFilter(ColorFilter colorFilter) sourcepublic ColorFilter getColorFilter() sourcepublic int getOpacity() sourcepublic void getOutline(Outline outline) sourcepublic ConstantState getConstantState() sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.