getDrawable

open fun getDrawable(@NonNull context: Context, @NonNull attributes: TypedArray, @StyleableRes index: Int): Drawable

Returns the drawable object from the given attributes.

This method supports inflation of <vector> and <animated-vector> resources on devices where platform support is not available.