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.
public ColorStateList(int[][] states, int[] colors) sourcepublic static ColorStateList valueOf(int color) sourcepublic static ColorStateList createFromXml(Resources r, XmlPullParser parser, Resources.Theme theme) throws XmlPullParserException, IOException sourceA selector of color items: android:color (a color or a reference), android:alpha, and the item's states.
public ColorStateList withAlpha(int alpha) sourcepublic ColorStateList withLStar(float lStar) sourcepublic boolean isStateful() sourcepublic boolean isOpaque() sourcepublic int getDefaultColor() sourcepublic int getChangingConfigurations() sourcepublic int getColorForState(int[] stateSet, int defaultColor) sourcepublic int[][] getStates() sourcepublic int[] getColors() sourcepublic int describeContents() sourcepublic void writeToParcel(android.os.Parcel dest, int flags) sourcepublic String toString() 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.