Compose Modifier

alpha

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

AlphaSample

@Sampled
@Composable
fun AlphaSample() {
    Box(Modifier.size(100.dp).alpha(alpha = 0.5f).background(Color.Red))
}
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: