Function

size

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

size

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

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


size

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

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


size

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

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


size

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

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