getDrawableFromRes

Get a drawable from a resource.

Return

The drawable created from the resource

Parameters

context
drawableRes

Drawable resource

open fun getDrawableFromRes(context: Context, drawableRes: Int): Drawable

Get a tinted drawable from a resource.

Return

The drawable created from the resource

Parameters

context
drawableRes

Drawable resource

tintColor

Tint color

open fun getDrawableFromRes(context: Context, drawableRes: Int, tintColor: Integer): Drawable