Border

Class

Android
class Border(
    val border: BorderStroke,
    val inset: Dp = 0.dp,
    val shape: Shape = ShapeTokens.BorderDefaultShape
)

Defines the border for a TV component.

Parameters

borderconfigures the width and brush for the border
insetdefines how far (in dp) should the border be from the component it's applied to
shapedefines the Shape of the border

Functions

fun copy(border: BorderStroke? = null, inset: Dp? = null, shape: Shape? = null): Border

Companion Object

Properties

Android
val None =
        Border(
            border = BorderStroke(width = 0.dp, color = Color.Transparent),
            inset = 0.dp,
            shape = RectangleShape
        )

Signifies the absence of a border. Use this if you do not want to display a border indication in any of the TV Components.