Function

border

border

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

border

Source set: Android
@Deprecated("glance-wear-tiles is deprecated and will be removed")
public fun GlanceModifier.border(@DimenRes width: Int, color: ColorProvider): GlanceModifier

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

Parameters

width The width of the border, value provided by a dimension resource
color The color of the border
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: