getDrawable
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.
Parameters
theme
Used instead of the Theme returned from the given Context if non-null when loading the Drawable.