toDrawable

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

Converts this Shape to a Drawable.