android.content.res
Class ColorStateList
java.lang.Object
android.content.res.ColorStateList
- All Implemented Interfaces:
- Parcelable
public class ColorStateList
- extends java.lang.Object
- implements Parcelable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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,
java.io.IOException
- Throws:
org.xmlpull.v1.XmlPullParserException
java.io.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 java.lang.String toString()
- Overrides:
toString in class java.lang.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-2010. All Rights Reserved.