Class DrawableDecoderCompat
- java.lang.Object
-
- com.bumptech.glide.load.resource.drawable.DrawableDecoderCompat
-
public final class DrawableDecoderCompat extends java.lang.ObjectHandles decoding Drawables with the v7 support library if present and falling back to the v4 support library otherwise.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.graphics.drawable.DrawablegetDrawable(android.content.Context ourContext, int id, android.content.res.Resources.Theme theme)Loads a Drawable usingAppCompatResourcesif available andResourcesCompatotherwise, depending on whether or not the v7 support library is included in the application.static android.graphics.drawable.DrawablegetDrawable(android.content.Context ourContext, android.content.Context targetContext, int id)SeegetDrawable(Context, int, Theme).
-
-
-
Method Detail
-
getDrawable
public static android.graphics.drawable.Drawable getDrawable(android.content.Context ourContext, android.content.Context targetContext, @DrawableRes int id)SeegetDrawable(Context, int, Theme).
-
getDrawable
public static android.graphics.drawable.Drawable getDrawable(android.content.Context ourContext, @DrawableRes int id, @Nullable android.content.res.Resources.Theme theme)Loads a Drawable usingAppCompatResourcesif available andResourcesCompatotherwise, depending on whether or not the v7 support library is included in the application.- Parameters:
theme- Used instead of theResources.Themereturned from the givenContextif non-null when loading theDrawable.
-
-