brabo-hi
02/08/2022, 12:50 AMScaffold
how can we get the TopAppBar
and BottomAppBar
to be transparent and have the body background visible top and bottom?Colton Idle
02/08/2022, 5:12 AMbrabo-hi
02/08/2022, 5:15 AMColton Idle
02/08/2022, 2:40 PMbrabo-hi
02/08/2022, 5:34 PM@ExperimentalMaterial3Api
@Composable
fun MyComponent() {
Scaffold(
modifier = Modifier,
topBar = {
CenterAlignedTopAppBar(
title = {
Text(text = "Title", style = MaterialTheme.typography.titleLarge)
},
actions = {
IconButton(
onClick = {},
content = { Icon(Icons.Default.Paid, contentDescription = null, tint = Color.LightGray) }
)
}
)
},
bottomBar = {
Icon(Icons.Filled.Favorite, contentDescription = null)
Icon(Icons.Filled.AccessTime, contentDescription = null)
}
) {
Surface(modifier = Modifier.fillMaxSize(), color = Color.Transparent) {
AndroidView(
factory = { context -> videoViewFull },
update = { }
)
}
}
}