DrawableDecoderCompat

class 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
See getDrawable(Context, int, Theme).
open fun getDrawable(    ourContext: Context,     id: Int,     theme: Theme): Drawable
Loads a Drawable using AppCompatResources if available and ResourcesCompat otherwise, depending on whether or not the v7 support library is included in the application.