android-jetpack-compose-scaffold Questions

10

I have 2 screens which both have their own Scaffold and TopAppBar. When I navigate between them using the Jetpack Navigation Compose library, the app bar flashes. Why does it happen and how can I g...

3

Solved

I currently display a Bottom Sheet through a BottomSheetScaffold and want to collapse it when the user clicks outside the Bottom Sheet. Is there a way to detect the click outside of the Bottom Shee...

0

So I had such UI structure at app top level composable (Scaffold to add bottom bar) Scaffold( contentWindowInsets = WindowInsets(0, 0, 0, 0), bottomBar = { if (appState.shouldShowBottomBarAndDra...

2

Solved

I'm trying to set the navigation bar to the same color as the bottom app bar, but I don't understand where the color for the app bar comes from with the dark theme. It looks like it should be Mater...

2

I'm writing an android-app using jetpack compose. This app has a bottom bar which i would like to hide sometimes using an animation. However, this proved challenging: as soon as i was dealing with ...

3

How can I change FAB action(onClick{}) depending on current screen with Scaffold. Scaffold( floatingActionButton = { FloatingActionButton(onClick = { //Different actions here depending on curr...

2

Solved

@Composable fun LayoutsCodelab() { Scaffold( topBar = { TopAppBar( title = { Text(text = "LayoutsCodelab") } ) } ) { innerPadding -> BodyContent(Modifier.padding(innerPadding...

5

We can have Navigation Drawer in JetpackCompose by using Scaffold as below Scaffold( drawerContent = { Text(text ="Drawer") } ) {} I want to make the width of the drawer smaller. How c...
Hainaut asked 15/12, 2020 at 12:20

3

Solved

navigation compose version 2.4.0-alpha06 I have a Navigation Drawer using Scaffold and part of the items are dynamically generated by ViewModel. Example items are Home A B C ... Settings where A,...

1

Solved

I have a Flow that wraps a sealed class, which is used for calling messages to the UI. For example to show a Snackbar. I can observe the Flow from a Composable using LaunchedEffect. But the problem...

1

Solved

I want to use outlined and filled icons based on selected state in NavigationBar just like google maps app, using jetpack compose. In case of xml we use selector so what do we use for compose ? Her...

1

Solved

I'm trying to design a layout using Compose that consists of: TopAppBar Body (content) BottomAppBar A Bottom Sheet that represents a menu when clicked (Modal Bottom Sheet) -------TopAppBar-------...

4

Solved

I'm using Jetpack Compose for the first time but I'm getting this error. I haven't figured out where the problem really is but I'm using single-activity architecture. If more information is needed,...

1

Solved

I want to know what is Scaffold in jetpack compose with a BottomAppBar example can anyone help me Scaffold
1

© 2022 - 2025 — McMap. All rights reserved.