public class AttrUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getColorAttr(android.content.Context ctx,
int colorAttrId)
Get the color value for give attribute
|
static int |
getColorAttr(android.content.Context ctx,
int styleResId,
int colorAttrId)
Get color from a specified style resource for a specified Id
|
static android.graphics.drawable.Drawable |
getDrawableAttr(android.content.Context ctx,
int drawableAttrId)
Get a Drawable attribute value
|
static int |
getResourceAttr(android.content.Context ctx,
int resourceAttrId) |
static android.graphics.drawable.Drawable |
getSelectableItemBackground(android.content.Context ctx)
Get the selectableItemBackground attribute drawable
|
static android.graphics.drawable.Drawable |
getSelectableItemBackgroundBorderless(android.content.Context ctx)
Get the selectableItemBackground attribute drawable
|
public static android.graphics.drawable.Drawable getSelectableItemBackground(android.content.Context ctx)
public static android.graphics.drawable.Drawable getSelectableItemBackgroundBorderless(android.content.Context ctx)
public static int getColorAttr(android.content.Context ctx,
int colorAttrId)
public static int getColorAttr(android.content.Context ctx,
int styleResId,
int colorAttrId)
public static android.graphics.drawable.Drawable getDrawableAttr(android.content.Context ctx,
int drawableAttrId)
public static int getResourceAttr(android.content.Context ctx,
int resourceAttrId)