android.content.res
Class ColorStateList

java.lang.Object
  extended by android.content.res.ColorStateList
All Implemented Interfaces:
Parcelable

public class ColorStateList
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<ColorStateList> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
ColorStateList(int[][] states, int[] colors)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<ColorStateList> CREATOR
Constructor Detail

ColorStateList

public ColorStateList(int[][] states,
                      int[] colors)
Method Detail

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.