DrawableDecoderCompat
Handles decoding Drawables with the v7 support library if present and falling back to the v4 support library otherwise.
Functions
Link copied to clipboard
open fun getDrawable( ourContext: Context, targetContext: Context, id: Int): Drawable
Content copied to clipboard
See
getDrawable(Context, int, Theme)
.open fun getDrawable( ourContext: Context, id: Int, theme: Theme): Drawable
Content copied to clipboard
Loads a Drawable using AppCompatResources if available and ResourcesCompat otherwise, depending on whether or not the v7 support library is included in the application.