RoundedRectangle
A rounded rectangle with the specified corner radius applied to all corners.
fun RoundedRectangle(topStart: Dimen = 0.px, topEnd: Dimen = 0.px, bottomEnd: Dimen = 0.px, bottomStart: Dimen = 0.px): Shape
A rounded rectangle with a separate radius per corner. Start and end follow the layout direction.
The clip is exact on API 33+. Before API 33 Android can only clip to a single-radius rounded rectangle, so on those versions the clip is exact only when no corner is rounded, or the rounded corners share one radius and are either all four corners or the two corners of one side (with an approximate elevation shadow). On those versions any other combination applies the smallest non-zero radius to all corners.