Java android.content.res ColorStateList fields, constructors, methods, implement or subclass

Example usage for Java android.content.res ColorStateList fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content.res ColorStateList.

The text is from its open source code.

Constructor

ColorStateList(int[][] states, @ColorInt int[] colors)
Creates a ColorStateList that returns the specified mapping from states to colors.

Method

ColorStateListcreateFromXml(Resources r, XmlPullParser parser)
Creates a ColorStateList from an XML document.
intgetColorForState(@Nullable int[] stateSet, int defaultColor)
Return the color associated with the given set of android.view.View states.
intgetDefaultColor()
Return the default color in this ColorStateList .
booleanisStateful()
Indicates whether this color state list contains at least one state spec and the first spec is not empty (e.g.
ColorStateListvalueOf(@ColorInt int color)