by @alexstyl
✉️ Leave your feedback

← Back to Glance AppWidget

background

Modifier
in
Glance AppWidget
. Since 1.0.0

Overview

Examples

Community Notes

Video

Apply a background color to the element this modifier is attached to. This will cause the element to paint the specified Color as its background, choosing day or night depending on the device configuration, which will fill the bounds of the element.

Overloads

background

fun GlanceModifier.background(day: Color, night: Color)
Next ComponentAndroidRemoteViews