border

Function

Android
public fun GlanceModifier.border(
    width: Dp,
    color: ColorProvider
): GlanceModifier

Apply a border around an element, border width is provided in Dp

Parameters

widthThe width of the border, in DP
colorThe color of the border
Android
public fun GlanceModifier.border(
    @DimenRes width: Int,
    color: ColorProvider
): GlanceModifier

Apply a border around an element, border width is provided with dimension resource

Parameters

widthThe width of the border, value provided by a dimension resource
colorThe color of the border