Function

background

Draws a solid color background behind the content.

background

Source set: JvmAndAndroid
public fun RemoteModifier.background(color: RemoteColor): RemoteModifier

Draws a solid color background behind the content.

Example of applying a clipped solid background color:

Parameters

color The RemoteColor to use for the background.

Return

a RemoteModifier that draws a color background behind the content

background

Source set: JvmAndAndroid
public fun RemoteModifier.background(painter: RemotePainter): RemoteModifier

Draws a painter behind the content.

Parameters

painter The RemotePainter to use for the background.

Return

a RemoteModifier that draws painter behind the content

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: