Function

size

Sets both the width and height of an element, in Dp.

size

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

Sets both the width and height of an element, in Dp.

size

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

Sets both width and height of an element from a resource.

size

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

Sets both the width and height of an element, in Dp.

size

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

Sets both the width and height of an element from resources.

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: