get Drawable From Res
Get a drawable from a resource.
Return
The drawable created from the resource
Parameters
context
Context to obtain android.content.res.Resources
drawable Res
Drawable resource
open fun getDrawableFromRes(@NonNull context: Context, @DrawableRes drawableRes: Int, @Nullable @ColorInt tintColor: Integer): Drawable
Get a tinted drawable from a resource.
Return
The drawable created from the resource
Parameters
context
Context to obtain android.content.res.Resources
drawable Res
Drawable resource
tint Color
Tint color