public final class DrawableDecoderCompat
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.drawable.Drawable |
getDrawable(android.content.Context ourContext,
android.content.Context targetContext,
int id)
See
getDrawable(Context, int, Theme). |
static android.graphics.drawable.Drawable |
getDrawable(android.content.Context ourContext,
int id,
android.content.res.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 android.graphics.drawable.Drawable getDrawable(android.content.Context ourContext,
android.content.Context targetContext,
@DrawableRes
int id)
getDrawable(Context, int, Theme).public static android.graphics.drawable.Drawable getDrawable(android.content.Context ourContext,
@DrawableRes
int id,
@Nullable
android.content.res.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.