Also, how to remove toolbar from Preview?
# compose
p
Also, how to remove toolbar from Preview?
v
there’s an option to remove the system UI in the preview screen.
p
I have
showDecorations = true
if that's what you meant
i'd like to see the statusbar and navigation bar, but not toolbar
v
no, there was an option in the Preview UI that allowed you to toggle system UI. I think
showDecoration
does the same thing though.
In general, you can always create
@Preview
instances that represent the state that you want your composable to display. You can use the
group
param to them group them together.
In this example, I would not preview my entire screen but just the sub-component without the toolbar.
p
Actually, I haven't added Toolbar by myself. I suspect it's coming from MaterialTheme Composable?
490 Views