androidx.ui.foundation.shape.corner
Classes
CornerBasedShape |
Base class for Shapes defined by four CornerSizes. |
CutCornerShape |
A shape describing the rectangle with cut corners. |
RoundedCornerShape |
A shape describing the rectangle with rounded corners. |
Top-level functions summary
CornerSize |
CornerSize(size: Dp) |
CornerSize |
CornerSize(size: Px) |
CornerSize |
CornerSize(percent: Int) |
CornerSize |
CornerSize(percent: Float) |
CutCornerShape |
CutCornerShape(corner: CornerSize) Creates CutCornerShape with the same size applied for all four corners. |
CutCornerShape |
CutCornerShape(size: Dp) Creates CutCornerShape with the same size applied for all four corners. |
CutCornerShape |
CutCornerShape(size: Px) Creates CutCornerShape with the same size applied for all four corners. |
CutCornerShape |
CutCornerShape(percent: Int) Creates CutCornerShape with the same size applied for all four corners. |
CutCornerShape |
CutCornerShape(topLeft: Dp = 0.dp, topRight: Dp = 0.dp, bottomRight: Dp = 0.dp, bottomLeft: Dp = 0.dp) Creates CutCornerShape with sizes defined by Dp. |
CutCornerShape |
CutCornerShape(topLeft: Px = 0.px, topRight: Px = 0.px, bottomRight: Px = 0.px, bottomLeft: Px = 0.px) Creates CutCornerShape with sizes defined by Px. |
CutCornerShape |
CutCornerShape(topLeftPercent: Int = 0, topRightPercent: Int = 0, bottomRightPercent: Int = 0, bottomLeftPercent: Int = 0) Creates CutCornerShape with sizes defined by percents of the shape's smaller side. |
RoundedCornerShape |
RoundedCornerShape(corner: CornerSize) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(size: Dp) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(size: Px) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(percent: Int) Creates RoundedCornerShape with the same size applied for all four corners. |
RoundedCornerShape |
RoundedCornerShape(topLeft: Dp = 0.dp, topRight: Dp = 0.dp, bottomRight: Dp = 0.dp, bottomLeft: Dp = 0.dp) Creates RoundedCornerShape with sizes defined by Dp. |
RoundedCornerShape |
RoundedCornerShape(topLeft: Px = 0.px, topRight: Px = 0.px, bottomRight: Px = 0.px, bottomLeft: Px = 0.px) Creates RoundedCornerShape with sizes defined by Px. |
RoundedCornerShape |
RoundedCornerShape(topLeftPercent: Int = 0, topRightPercent: Int = 0, bottomRightPercent: Int = 0, bottomLeftPercent: Int = 0) Creates RoundedCornerShape with sizes defined by percents of the shape's smaller side. |
Top-level properties summary
RoundedCornerShape |
Circular Shape with all the corners sized as the 50 percent of the shape size. |
CornerSize |
CornerSize always equals to zero. |
Top-level functions
CornerSize
fun CornerSize(size: Dp): CornerSize
CornerSize
fun CornerSize(size: Px): CornerSize
CornerSize
fun CornerSize(percent: Int): CornerSize
CornerSize
fun CornerSize(percent: Float): CornerSize
CutCornerShape
fun CutCornerShape(corner: CornerSize): CutCornerShape
Creates CutCornerShape with the same size applied for all four corners.
CutCornerShape
fun CutCornerShape(size: Dp): CutCornerShape
Creates CutCornerShape with the same size applied for all four corners.
CutCornerShape
fun CutCornerShape(size: Px): CutCornerShape
Creates CutCornerShape with the same size applied for all four corners.
CutCornerShape
fun CutCornerShape(percent: Int): CutCornerShape
Creates CutCornerShape with the same size applied for all four corners.
CutCornerShape
fun CutCornerShape(
topLeft: Dp = 0.dp,
topRight: Dp = 0.dp,
bottomRight: Dp = 0.dp,
bottomLeft: Dp = 0.dp
): CutCornerShape
Creates CutCornerShape with sizes defined by Dp.
CutCornerShape
fun CutCornerShape(
topLeft: Px = 0.px,
topRight: Px = 0.px,
bottomRight: Px = 0.px,
bottomLeft: Px = 0.px
): CutCornerShape
Creates CutCornerShape with sizes defined by Px.
CutCornerShape
fun CutCornerShape(
topLeftPercent: Int = 0,
topRightPercent: Int = 0,
bottomRightPercent: Int = 0,
bottomLeftPercent: Int = 0
): CutCornerShape
Creates CutCornerShape with sizes defined by percents of the shape's smaller side.
RoundedCornerShape
fun RoundedCornerShape(corner: CornerSize): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
RoundedCornerShape
fun RoundedCornerShape(size: Dp): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
RoundedCornerShape
fun RoundedCornerShape(size: Px): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
RoundedCornerShape
fun RoundedCornerShape(percent: Int): RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
RoundedCornerShape
fun RoundedCornerShape(
topLeft: Dp = 0.dp,
topRight: Dp = 0.dp,
bottomRight: Dp = 0.dp,
bottomLeft: Dp = 0.dp
): RoundedCornerShape
Creates RoundedCornerShape with sizes defined by Dp.
RoundedCornerShape
fun RoundedCornerShape(
topLeft: Px = 0.px,
topRight: Px = 0.px,
bottomRight: Px = 0.px,
bottomLeft: Px = 0.px
): RoundedCornerShape
Creates RoundedCornerShape with sizes defined by Px.
RoundedCornerShape
fun RoundedCornerShape(
topLeftPercent: Int = 0,
topRightPercent: Int = 0,
bottomRightPercent: Int = 0,
bottomLeftPercent: Int = 0
): RoundedCornerShape
Creates RoundedCornerShape with sizes defined by percents of the shape's smaller side.
Top-level properties
CircleShape
val CircleShape: RoundedCornerShape
Circular Shape with all the corners sized as the 50 percent of the shape size.