public class ResourceResolver extends Object
Modifier and Type | Method and Description |
---|---|
int |
dipsToPixels(float dips) |
float |
pixelsToDips(int pixels) |
float |
pixelsToSips(int pixels) |
boolean |
resolveBoolAttr(int attrResId,
int defResId) |
boolean |
resolveBoolRes(int resId) |
int |
resolveColorAttr(int attrResId,
int defResId) |
int |
resolveColorRes(int resId) |
int |
resolveDimenOffsetAttr(int attrResId,
int defResId) |
int |
resolveDimenOffsetRes(int resId) |
int |
resolveDimenSizeAttr(int attrResId,
int defResId) |
int |
resolveDimenSizeRes(int resId) |
Drawable |
resolveDrawableAttr(int attrResId,
int defResId) |
Drawable |
resolveDrawableRes(int resId) |
float |
resolveFloatAttr(int attrResId,
int defResId) |
float |
resolveFloatRes(int resId) |
int[] |
resolveIntArrayAttr(int attrResId,
int defResId) |
int[] |
resolveIntArrayRes(int resId) |
int |
resolveIntAttr(int attrResId,
int defResId) |
Integer[] |
resolveIntegerArrayAttr(int attrResId,
int defResId) |
Integer[] |
resolveIntegerArrayRes(int resId) |
int |
resolveIntRes(int resId) |
String[] |
resolveStringArrayAttr(int attrResId,
int defResId) |
String[] |
resolveStringArrayRes(int resId) |
String |
resolveStringAttr(int attrResId,
int defResId) |
String |
resolveStringRes(int resId) |
String |
resolveStringRes(int resId,
Object... formatArgs) |
int |
sipsToPixels(float sips) |
public int dipsToPixels(float dips)
public int sipsToPixels(float sips)
public float pixelsToDips(int pixels)
public float pixelsToSips(int pixels)
public String resolveStringRes(int resId)
public String[] resolveStringArrayRes(int resId)
public int resolveIntRes(int resId)
public final int[] resolveIntArrayRes(int resId)
public Integer[] resolveIntegerArrayRes(int resId)
public boolean resolveBoolRes(int resId)
public int resolveColorRes(int resId)
public int resolveDimenSizeRes(int resId)
public int resolveDimenOffsetRes(int resId)
public float resolveFloatRes(int resId)
public Drawable resolveDrawableRes(int resId)
public String resolveStringAttr(int attrResId, int defResId)
public String[] resolveStringArrayAttr(int attrResId, int defResId)
public int resolveIntAttr(int attrResId, int defResId)
public int[] resolveIntArrayAttr(int attrResId, int defResId)
public Integer[] resolveIntegerArrayAttr(int attrResId, int defResId)
public boolean resolveBoolAttr(int attrResId, int defResId)
public int resolveColorAttr(int attrResId, int defResId)
public int resolveDimenSizeAttr(int attrResId, int defResId)
public int resolveDimenOffsetAttr(int attrResId, int defResId)
public float resolveFloatAttr(int attrResId, int defResId)
public Drawable resolveDrawableAttr(int attrResId, int defResId)