android.content.res
Class ColorStateList
java.lang.Object
android.content.res.ColorStateList
- All Implemented Interfaces:
- Parcelable
public class ColorStateList
- extends Object
- implements Parcelable
CREATOR
public static final Parcelable.Creator<ColorStateList> CREATOR
ColorStateList
public ColorStateList(int[][] states,
int[] colors)
valueOf
public static ColorStateList valueOf(int color)
createFromXml
public static ColorStateList createFromXml(Resources r,
org.xmlpull.v1.XmlPullParser parser)
throws org.xmlpull.v1.XmlPullParserException,
IOException
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
withAlpha
public ColorStateList withAlpha(int alpha)
isStateful
public boolean isStateful()
getColorForState
public int getColorForState(int[] stateSet,
int defaultColor)
getDefaultColor
public int getDefaultColor()
toString
public String toString()
- Overrides:
toString
in class Object
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public void writeToParcel(Parcel dest,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
Copyright © 2008-2012. All Rights Reserved.