public final class ResourcesCompat extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getResources_getBoolean(android.content.Context context,
int id)
Support implementation of
getResources().getBoolean() that we
can use to simulate filtering based on width and smallest width
qualifiers on pre-3.2. |
static int |
getResources_getInteger(android.content.Context context,
int id)
Support implementation of
getResources().getInteger() that we
can use to simulate filtering based on width qualifiers on pre-3.2. |
public static boolean getResources_getBoolean(android.content.Context context,
int id)
getResources().getBoolean() that we
can use to simulate filtering based on width and smallest width
qualifiers on pre-3.2.context - Context to load booleans from on 3.2+ and to fetch the
display metrics.id - Id of boolean to load.public static int getResources_getInteger(android.content.Context context,
int id)
getResources().getInteger() that we
can use to simulate filtering based on width qualifiers on pre-3.2.context - Context to load integers from on 3.2+ and to fetch the
display metrics.id - Id of integer to load.Copyright © 2011–2014. All rights reserved.