toDrawable

fun Shape.toDrawable(context: Context, intrinsicWidth: Int = 0, intrinsicHeight: Int = 0): Drawable

Converts this Shape to a Drawable.

Parameters

intrinsicWidth

the width of the Drawable.

intrinsicHeight

the height of the Drawable.