AlphaSample
@Sampled
@Composable
fun AlphaSample() {
Box(Modifier.size(100.dp).alpha(alpha = 0.5f).background(Color.Red))
}Draw content with modified alpha that may be less than 1.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
@Sampled
@Composable
fun AlphaSample() {
Box(Modifier.size(100.dp).alpha(alpha = 0.5f).background(Color.Red))
}Content updated: