public class TypedArrayUtils extends Object
Constructor and Description |
---|
TypedArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getAttr(Context context,
int attr,
int fallbackAttr) |
static boolean |
getBoolean(TypedArray a,
int index,
int fallbackIndex,
boolean defaultValue) |
static Drawable |
getDrawable(TypedArray a,
int index,
int fallbackIndex) |
static int |
getInt(TypedArray a,
int index,
int fallbackIndex,
int defaultValue) |
static int |
getResourceId(TypedArray a,
int index,
int fallbackIndex,
int defaultValue) |
static String |
getString(TypedArray a,
int index,
int fallbackIndex) |
static CharSequence[] |
getTextArray(TypedArray a,
int index,
int fallbackIndex) |
public static boolean getBoolean(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, boolean defaultValue)
public static Drawable getDrawable(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex)
public static int getInt(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, int defaultValue)
@AnyRes public static int getResourceId(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, @AnyRes int defaultValue)
public static String getString(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex)
public static CharSequence[] getTextArray(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex)
public static int getAttr(Context context, int attr, int fallbackAttr)