androidx.compose.foundation.shape
RoundedCornerShape
Class · from org.jetbrains.compose.foundation:foundation:1.12.2
A shape with rounded corners. This is the one you will create most often.
RoundedCornerShape(8.dp) // all corners
RoundedCornerShape(percent = 50) // pill or circle
RoundedCornerShape(topStart = 16.dp, bottomEnd = 16.dp) // some corners
start is the left side in left-to-right languages, and the right side in right-to-left languages.
class RoundedCornerShape(
topStart: CornerSize,
topEnd: CornerSize,
bottomEnd: CornerSize,
bottomStart: CornerSize,
) : CornerBasedShape
Is a
How to get one
Create it
RoundedCornerShape(topStart, topEnd, bottomEnd, bottomStart)constructorRoundedCornerShape(corner: CornerSize)RoundedCornerShape(size: Dp)RoundedCornerShape(size: Float)RoundedCornerShape(percent: Int)RoundedCornerShape(topStart: Dp, topEnd: Dp, bottomEnd: Dp, bottomStart: Dp)RoundedCornerShape(topStart: Float, topEnd: Float, bottomEnd: Float, bottomStart: Float)RoundedCornerShape(topStartPercent: Int, topEndPercent: Int, bottomEndPercent: Int, bottomStartPercent: Int)