android.content.res
Class TypedArray
java.lang.Object
android.content.res.TypedArray
public class TypedArray
- extends java.lang.Object
|
Method Summary |
boolean |
getBoolean(int index,
boolean defValue)
|
int |
getColor(int index,
int defValue)
|
ColorStateList |
getColorStateList(int index)
|
float |
getDimension(int index,
float defValue)
|
int |
getDimensionPixelOffset(int index,
int defValue)
|
int |
getDimensionPixelSize(int index,
int defValue)
|
Drawable |
getDrawable(int index)
|
float |
getFloat(int index,
float defValue)
|
float |
getFraction(int index,
int base,
int pbase,
float defValue)
|
int |
getIndex(int at)
|
int |
getIndexCount()
|
int |
getInt(int index,
int defValue)
|
int |
getInteger(int index,
int defValue)
|
int |
getLayoutDimension(int index,
int defValue)
|
int |
getLayoutDimension(int index,
java.lang.String name)
|
java.lang.String |
getNonResourceString(int index)
|
java.lang.String |
getPositionDescription()
|
int |
getResourceId(int index,
int defValue)
|
Resources |
getResources()
|
java.lang.String |
getString(int index)
|
java.lang.CharSequence |
getText(int index)
|
java.lang.CharSequence[] |
getTextArray(int index)
|
boolean |
getValue(int index,
TypedValue outValue)
|
boolean |
hasValue(int index)
|
int |
length()
|
TypedValue |
peekValue(int index)
|
void |
recycle()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
length
public int length()
getIndexCount
public int getIndexCount()
getIndex
public int getIndex(int at)
getResources
public Resources getResources()
getText
public java.lang.CharSequence getText(int index)
getString
public java.lang.String getString(int index)
getNonResourceString
public java.lang.String getNonResourceString(int index)
getBoolean
public boolean getBoolean(int index,
boolean defValue)
getInt
public int getInt(int index,
int defValue)
getFloat
public float getFloat(int index,
float defValue)
getColor
public int getColor(int index,
int defValue)
getColorStateList
public ColorStateList getColorStateList(int index)
getInteger
public int getInteger(int index,
int defValue)
getDimension
public float getDimension(int index,
float defValue)
getDimensionPixelOffset
public int getDimensionPixelOffset(int index,
int defValue)
getDimensionPixelSize
public int getDimensionPixelSize(int index,
int defValue)
getLayoutDimension
public int getLayoutDimension(int index,
java.lang.String name)
getLayoutDimension
public int getLayoutDimension(int index,
int defValue)
getFraction
public float getFraction(int index,
int base,
int pbase,
float defValue)
getResourceId
public int getResourceId(int index,
int defValue)
getDrawable
public Drawable getDrawable(int index)
getTextArray
public java.lang.CharSequence[] getTextArray(int index)
getValue
public boolean getValue(int index,
TypedValue outValue)
hasValue
public boolean hasValue(int index)
peekValue
public TypedValue peekValue(int index)
getPositionDescription
public java.lang.String getPositionDescription()
recycle
public void recycle()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008-2010. All Rights Reserved.