public class ResUtils
extends java.lang.Object
| Constructor and Description |
|---|
ResUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getIdentifier(java.lang.Class<?> type,
java.lang.String name)
Retrieves a resource id dynamically, via reflection.
|
static java.lang.String |
getTzResource(java.lang.String tzFile)
Returns a resource name equivalent for a TZ ID
|
static java.lang.String |
getZoneInfoMapResource() |
public static java.lang.String getTzResource(java.lang.String tzFile)
tzFile - the ID of the TZ, or a special filename (e.g. "ZoneInfoMap")public static java.lang.String getZoneInfoMapResource()
public static int getIdentifier(java.lang.Class<?> type,
java.lang.String name)
type - the type of resource (e.g. R.drawable.class, R.layout.class, etc.)name - the name of the resource