-
public final class DrawableDecoderCompatHandles decoding Drawables with the v7 support library if present and falling back to the v4 support library otherwise.
-
-
Method Summary
Modifier and Type Method Description static DrawablegetDrawable(Context ourContext, Context targetContext, @DrawableRes() int id)See {@code getDrawable(Context, int, Theme)}.static DrawablegetDrawable(Context ourContext, @DrawableRes() int id, @Nullable() 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. -
-
Method Detail
-
getDrawable
static Drawable getDrawable(Context ourContext, Context targetContext, @DrawableRes() int id)
See
{@code getDrawable(Context, int, Theme)}.
-
getDrawable
static Drawable getDrawable(Context ourContext, @DrawableRes() int id, @Nullable() 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.
-
-
-
-