Class DrawableDecoderCompat
java.lang.Object
com.bumptech.glide.load.resource.drawable.DrawableDecoderCompat
Handles decoding Drawables with the v7 support library if present and falling back to the v4
support library otherwise.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DrawablegetDrawable(Context ourContext, int id, Resources.Theme theme) Loads a Drawable usingAppCompatResourcesif available andResourcesCompatotherwise, depending on whether or not the v7 support library is included in the application.static DrawablegetDrawable(Context ourContext, Context targetContext, int id) SeegetDrawable(Context, int, Theme).
-
Method Details
-
getDrawable
SeegetDrawable(Context, int, Theme). -
getDrawable
public static Drawable getDrawable(Context ourContext, @DrawableRes int id, @Nullable 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.
-