Example usage for Java android.content.res ColorStateList fields, constructors, methods, implement or subclass
The text is from its open source code.
ColorStateList(int[][] states, @ColorInt int[] colors) Creates a ColorStateList that returns the specified mapping from states to colors. |
ColorStateList | createFromXml(Resources r, XmlPullParser parser) Creates a ColorStateList from an XML document. |
int | getColorForState(@Nullable int[] stateSet, int defaultColor) Return the color associated with the given set of android.view.View states. |
int | getDefaultColor() Return the default color in this ColorStateList . |
boolean | isStateful() Indicates whether this color state list contains at least one state spec and the first spec is not empty (e.g. |
ColorStateList | valueOf(@ColorInt int color) |