Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
63 views

Is it possible to display a placeholder on the detail pane of a ListDetailPaneScaffold when still no item from the list has been selected? I'm displaying a route in a map when an item is selected, and ...
NullPointerException's user avatar
2 votes
1 answer
196 views

I want to scroll frontLayerContent continue without interrupt. For example when I started scrolling frontLayerContent, backLayerContent will hide and stop frontLayerContent at top of screen. Then ...
Vivek Modi's user avatar
  • 7,859
1 vote
1 answer
442 views

i have a main screen in my android app that is employing androidx.compose.material.BackdropScaffold the frontcontent hosts a list of items it all works fine, however when the backdrop is "open&...
Hector's user avatar
  • 5,704
2 votes
1 answer
1k views

Before Jetpack Compose I was using Navigation Component in the projects in View system world. Apps had only one activity - toolbar, bottom bar and drawer were added only to this activity once. Apps ...
user924's user avatar
  • 12.9k
1 vote
1 answer
6k views

In our application, there are many custom views that all are card with 3 slots header, content and bottom part, so I thought we can handle it with a scaffold inside the card except having many if/else ...
Sepideh Vatankhah's user avatar
15 votes
1 answer
12k views

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 is ...
slaviboy's user avatar
  • 1,962
2 votes
1 answer
1k views

I'm building an Android app using purely Jetpack Compose. My entire application is wrapped under one scaffold, and has a ViewModel for each "screen" (which are composables) in my app. ...
sping's user avatar
  • 55
64 votes
3 answers
39k views

@Composable fun LayoutsCodelab() { Scaffold( topBar = { TopAppBar( title = { Text(text = "LayoutsCodelab") } ...
Curious Learner's user avatar
6 votes
3 answers
6k views

I have an Image composable where I want the users to able to zoom into a part of the image. For example, if pinched on the bottom left of the image then zoom into that the bottom left area and not the ...
Anudeep Ananth's user avatar
0 votes
3 answers
2k views

I want to do navigation with Scaffold and BottomNavigation in Jetpack Compose. They are in the MainPage. But when I click the content in the MainPage and navigate to DetailPage, the BottomNavigation ...
Li Zhenxin's user avatar
1 vote
1 answer
966 views

I am converting my Android mobile app to use Jetpack Compose. At the moment I am starting the activity as an Intent and it works, but I lost the navigation if I do this way: Button(onClick = { ...
Paulo Martins's user avatar
19 votes
10 answers
6k views

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 get ...
Florian Walther's user avatar
6 votes
2 answers
2k views

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 ...
Mackan's user avatar
  • 1,479
2 votes
2 answers
4k views

How to change the color of the cut out for the bottom bar? I know it takes the color from MaterialTheme.colors.background, but I don't want to change the background color for all components, only for ...
Mackan's user avatar
  • 1,479
8 votes
3 answers
3k views

How can I change FAB action(onClick{}) depending on current screen with Scaffold. Scaffold( floatingActionButton = { FloatingActionButton(onClick = { ...
Ваня Морозюк's user avatar
3 votes
1 answer
3k views

I'm developing a small jetpack-compose demo chat app. So I need a bar at the bottom with a TextField and a Button to send, just like in WhatsApp.... I figured it would be best to use a Scaffold with a ...
supermar10's user avatar
2 votes
3 answers
3k views

I'm building Android app with Jetpack Compose. Got stuck while trying to implement BottomAppBar with BottomDrawer pattern. Bottom navigation drawers are modal drawers that are anchored to the bottom ...
joshas's user avatar
  • 1,474
27 votes
1 answer
23k views

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------- ---...
Arrowsome's user avatar
  • 2,889
41 votes
1 answer
20k views

I want to know what is Scaffold in jetpack compose with a BottomAppBar example can anyone help me Scaffold
user avatar
30 votes
5 answers
9k views

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 can ...
Elye's user avatar
  • 61.3k