Function

width

Sets the absolute width of an element, in Dp.

width

Source set: Android
public fun GlanceModifier.width(width: Dp): GlanceModifier

Sets the absolute width of an element, in Dp.

width

Source set: Android
public fun GlanceModifier.width(@DimenRes width: Int): GlanceModifier

Set the width of a view from the value of a resource.

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: