Function

alpha

Draw content with modified alpha that may be less than 1.

alpha

Source set: JvmAndAndroid
public fun RemoteModifier.alpha(alpha: RemoteFloat): RemoteModifier

Draw content with modified alpha that may be less than 1.

Example of rendering a box with semi-transparent alpha:

Parameters

alpha the fraction of children's alpha value and must be between 0 and 1, inclusive.

Return

a RemoteModifier that draws content with the modified alpha

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: