Is it possible to change background of ComposeView...
# compose
a
Is it possible to change background of ComposeView? I want to add
BottomSheetScaffold
to already existed XML layout, but it overlay all my views with white background. Pictures in thread.
b
M.background() on that Box
or is teh window background what you are referring to
j
You will want your Android View to be hosted by your BottomSheetScaffold, not the other way around 🙂
👍 1
a
@brandonmcansh like this? White background still not transparent…
@jossiwolf could you explain a little bit more?
b
Yeah @jossiwolf is correct.
First screenshot wasn't indicative that your window background was being covered fully
a
b
Scaffolds are full content height containers only tmk,
Basically invert your hierarchy
BottomSheetScaffold() { padding -> AndroidView(modifier = M.padding(padding)) }
🤔 1
You could possibly see if you could tweak the height of the scaffold with a modifier but not sure how well it would work
👍 1
a
Thanks, changing modifier for BottomSheetScaffold works.
modifier = Modifier.padding(top = 150.dp)