ColorStateList

Class of android.content.res · ColorStateList.java · Android's reference

public class ColorStateList implements android.os.Parcelable

Colors by view state: the first item whose states the view's states match.

Constructors

public ColorStateList(int[][] states, int[] colors) source

Methods

public static ColorStateList valueOf(int color) source
public static ColorStateList createFromXml(Resources r, XmlPullParser parser, Resources.Theme theme) throws XmlPullParserException, IOException source

A selector of color items: android:color (a color or a reference), android:alpha, and the item's states.

public ColorStateList withAlpha(int alpha) source
public ColorStateList withLStar(float lStar) source
public boolean isStateful() source
public boolean isOpaque() source
public int getDefaultColor() source
public int getChangingConfigurations() source
public int getColorForState(int[] stateSet, int defaultColor) source
public int[][] getStates() source
public int[] getColors() source
public int describeContents() source
public void writeToParcel(android.os.Parcel dest, int flags) source
public String toString() 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.