ShapeDrawable

constructor(context: Context, shape: Shape, width: Int = 0, height: Int = 0)


constructor(shape: Shape, isLtr: Boolean, density: Float, width: Int = 0, height: Int = 0)

Parameters

shape

the Shape used as a Drawable.

isLtr

whether the device layout is left-to-right.

density

the pixel density of the device screen.

width

the width of the Drawable.

height

the height of the Drawable.