AlphaSample
@Sampled
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun AlphaSample() {
RemoteBox(RemoteModifier.size(100.rdp).alpha(0.5f.rf).background(Color.Red.rc))
}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
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun AlphaSample() {
RemoteBox(RemoteModifier.size(100.rdp).alpha(0.5f.rf).background(Color.Red.rc))
}Content updated: