createShapeDrawable

Returns a ShapeDrawable with the shape's path.

The shape is always assumed to fit in (0, 0) to (1, 1) square.

Parameters

shape

A RoundedPolygon object to be used in the drawable.