library / org.akop.kotx.ext.app / android.content.Context / getVectorDrawable

getVectorDrawable

fun Context.getVectorDrawable(resId: Int): Drawable?

Helper method call to AppCompatResources.getDrawable - returns a drawable with specific resource id. Despite the name, the function this method calls will also load non-vector drawables. Will also work on pre-vector versions of the platform.

Return
Drawable with specific resource id.