public class ColorStateList extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<ColorStateList> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
ColorStateList(int[][] states,
int[] colors) |
| Modifier and Type | Method and Description |
|---|---|
static ColorStateList |
createFromXml(Resources r,
org.xmlpull.v1.XmlPullParser parser) |
int |
describeContents() |
int |
getColorForState(int[] stateSet,
int defaultColor) |
int |
getDefaultColor() |
boolean |
isStateful() |
String |
toString() |
static ColorStateList |
valueOf(int color) |
ColorStateList |
withAlpha(int alpha) |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<ColorStateList> CREATOR
public static ColorStateList valueOf(int color)
public static ColorStateList createFromXml(Resources r, org.xmlpull.v1.XmlPullParser parser) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic ColorStateList withAlpha(int alpha)
public boolean isStateful()
public int getColorForState(int[] stateSet,
int defaultColor)
public int getDefaultColor()
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface ParcelableCopyright © 2008-2013. All Rights Reserved.