BorderConfigScope

DSL scope for building border configurations.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun all(@ColorInt color: Int? = null, width: Dimen? = null, effect: BorderEffect? = null)

Configures all edges with the same properties.

Link copied to clipboard
fun bottom(@ColorInt color: Int? = null, width: Dimen? = null)

Configures the bottom edge.

Link copied to clipboard
fun cornerRadius(all: Dimen? = null, topLeft: Dimen? = null, topRight: Dimen? = null, bottomLeft: Dimen? = null, bottomRight: Dimen? = null)

Configures corner radii. Use all to set all corners, or individual parameters to customize specific corners.

Link copied to clipboard
fun end(@ColorInt color: Int? = null, width: Dimen? = null)

Configures the end edge (LTR: right, RTL: left).

Link copied to clipboard
fun left(@ColorInt color: Int? = null, width: Dimen? = null)

Configures the left edge.

Link copied to clipboard
fun right(@ColorInt color: Int? = null, width: Dimen? = null)

Configures the right edge.

Link copied to clipboard
fun start(@ColorInt color: Int? = null, width: Dimen? = null)

Configures the start edge (LTR: left, RTL: right).

Link copied to clipboard
fun top(@ColorInt color: Int? = null, width: Dimen? = null)

Configures the top edge.