ColorStateListDrawable

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.

Constructors

public ColorStateListDrawable() source
public ColorStateListDrawable(ColorStateList colorStateList) source

Methods

public void draw(Canvas canvas) source
public ColorStateList getColorStateList() source
public void setColorStateList(ColorStateList colorStateList) source
public boolean isStateful() source
public boolean hasFocusStateSpecified() source
protected boolean onStateChange(int[] state) source
public int getAlpha() source
public void setAlpha(int alpha) source
public void clearAlpha() source
public void setColorFilter(ColorFilter colorFilter) source
public ColorFilter getColorFilter() source
public int getOpacity() source
public void getOutline(Outline outline) source
public ConstantState getConstantState() source

Made 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.