I use compose button in android view, but there is some shade at the bottom. How can I remove it?
@Composable
fun VisibilityAnimationFAB() {
var expanded by remember { mutableStateOf(true) }
FloatingActionButton(
onClick = { expanded = !expanded },
modifier = Modifier
) {
Row(Modifier.padding(start = 16.dp, end = 16.dp)) {
Icon(
vectorResource(id = R.drawable.ic_twitter),
Modifier.align(Alignment.CenterVertically)
)
AnimatedVisibility(
expanded,
modifier = Modifier.align(Alignment.CenterVertically)
) {
androidx.compose.material.Text(modifier = Modifier.padding(start = 8.dp), text = "Tweet")
}
}
}
}
elevation = null
– Rosado