MaterialShapes

A utility class providing static methods for creating Material endorsed shapes using the androidx.graphics.shapes library.

Properties

Link copied to clipboard
An arch shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
An arrow shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A circle shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
A clam-shell shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A diamond shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
A fan shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
A gem shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
An oval shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
A pentagon shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
A pill shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A semi-circle shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
A slanted rounded square shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A rounded square shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard
Link copied to clipboard
A triangle shape RoundedPolygon fitting in a unit circle.
Link copied to clipboard

Functions

Link copied to clipboard
Returns a ShapeDrawable with the shape's path.
Link copied to clipboard
Creates a new RoundedPolygon, moving and resizing this one, so it's completely inside (0, 0) - (1, 1) square.
Creates a new RoundedPolygon, moving and resizing this one, so it's completely inside the destination bounds.