size
Function
Android
fun GlanceModifier.size(size: Dp): GlanceModifier
Sets both the width and height of an element, in Dp
.
Android
fun GlanceModifier.size(@DimenRes size: Int): GlanceModifier
Sets both width and height of an element from a resource.
Android
fun GlanceModifier.size(width: Dp, height: Dp): GlanceModifier
Sets both the width and height of an element, in Dp
.
Android
fun GlanceModifier.size(@DimenRes width: Int, @DimenRes height: Int): GlanceModifier
Sets both the width and height of an element from resources.