RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(corner: CornerSize): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
Parameters
| corner | CornerSize to apply. |
RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(size: Dp): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
Parameters
| size | Size in Dp to apply. |
RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(size: Float): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
Parameters
| size | Size in pixels to apply. |
RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(percent: Int): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
Parameters
| percent | Size in percents to apply. |
RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(
topStart: Dp = 0.dp,
topEnd: Dp = 0.dp,
bottomEnd: Dp = 0.dp,
bottomStart: Dp = 0.dp,
): RoundedCornerShape
Creates RoundedCornerShape with sizes defined in Dp.
RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(
topStart: Float = 0.0f,
topEnd: Float = 0.0f,
bottomEnd: Float = 0.0f,
bottomStart: Float = 0.0f,
): RoundedCornerShape
Creates RoundedCornerShape with sizes defined in pixels.
RoundedCornerShape
Source set: Common
public fun RoundedCornerShape(
@IntRange(from = 0, to = 100) topStartPercent: Int = 0,
@IntRange(from = 0, to = 100) topEndPercent: Int = 0,
@IntRange(from = 0, to = 100) bottomEndPercent: Int = 0,
@IntRange(from = 0, to = 100) bottomStartPercent: Int = 0,
): RoundedCornerShape
Creates RoundedCornerShape with sizes defined in percents of the shape's smaller side.
Parameters
| topStartPercent | The top start corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| topEndPercent | The top end corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| bottomEndPercent | The bottom end corner radius as a percentage of the smaller side, with a range of 0 - 100. |
| bottomStartPercent | The bottom start corner radius as a percentage of the smaller side, with a range of 0 - 100. |