The Android Developer Challenge is back! Submit your idea before December 2.

androidx.ui.foundation.shape.border

Classes

Border

A border of a shape which will be drawn on top of the shape as an inner stroke.

Top-level functions summary

Border
Border(color: Color, width: Dp)

A border of a shape which will be drawn on top of the shape as an inner stroke.

Unit
DrawBorder(shape: Shape, border: Border)

Draw the Border as an inner stroke for the provided shape.

Top-level functions

Border

fun Border(
    color: Color,
    width: Dp
): Border

A border of a shape which will be drawn on top of the shape as an inner stroke. This can also be used for the border of a table layout.

Parameters
color: Color = null: Color the color to fill the border with.
width: Dp = null: Dp the width of the border. Use Dp.Hairline for a hairline border.

DrawBorder

@Composable fun DrawBorder(
    shape: Shape,
    border: Border
): Unit

Draw the Border as an inner stroke for the provided shape.

Parameters
shape: Shape = null: Shape the Shape to define the outline for drawing.
border: Border = null: Border the Border to draw.