public final class DrawableDecoderCompat extends Object
| Modifier and Type | Method and Description |
|---|---|
static Drawable |
getDrawable(Context context,
int id) |
static Drawable |
getDrawable(Context context,
int id,
Resources.Theme theme)
Loads a Drawable using
AppCompatResources if available and ResourcesCompat
otherwise, depending on whether or not the v7 support library is included in the application. |
public static Drawable getDrawable(Context context, @DrawableRes int id)
#getDrawable(Context, int, Theme)public static Drawable getDrawable(Context context, @DrawableRes int id, @Nullable Resources.Theme theme)
AppCompatResources if available and ResourcesCompat
otherwise, depending on whether or not the v7 support library is included in the application.theme - Used instead of the Resources.Theme returned from the given Context if
non-null when loading the Drawable.