BackgroundKt
public final class BackgroundKt
Summary
Public methods |
|
|---|---|
static final @NonNull GlanceModifier |
BackgroundKt.background(GlanceModifier receiver, Color color)Apply a background color to the element this modifier is attached to. |
static final @NonNull GlanceModifier |
BackgroundKt.background(GlanceModifier receiver, @ColorRes int color)Apply a background color to the element this modifier is attached to. |
static final @NonNull GlanceModifier |
BackgroundKt.background(Apply a background color to the element this modifier is attached to. |
static final @NonNull GlanceModifier |
BackgroundKt.background(Apply a background image to the element this modifier is attached to. |
Public methods
BackgroundKt.background
public static final @NonNull GlanceModifier BackgroundKt.background(GlanceModifier receiver, Color color)
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, which will fill the bounds of the element.
BackgroundKt.background
public static final @NonNull GlanceModifier BackgroundKt.background(GlanceModifier receiver, @ColorRes int color)
Apply a background color to the element this modifier is attached to. This will cause the element to paint the specified color resource as its background, which will fill the bounds of the element.
BackgroundKt.background
public static final @NonNull GlanceModifier BackgroundKt.background(
GlanceModifier receiver,
ColorProvider colorProvider
)
Apply a background color to the element this modifier is attached to. This will cause the element to paint the specified ColorProvider as its background, which will fill the bounds of the element.
BackgroundKt.background
public static final @NonNull GlanceModifier BackgroundKt.background(
GlanceModifier receiver,
ImageProvider imageProvider,
ContentScale contentScale
)
Apply a background image to the element this modifier is attached to.