39 questions
2
votes
1
answer
63
views
Detail placeholder in ListDetailPaneScaffold?
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 ...
2
votes
1
answer
196
views
How to scroll frontLayerContent without interrupt in jetpack compose
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 ...
1
vote
1
answer
442
views
When Android compose BackdropScaffold is open the user cannot scroll the frontcontent list down to display last item completely
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&...
2
votes
1
answer
1k
views
What is the correct way to implement material app with toolbar, bottom bar and drawer in compose?
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 ...
1
vote
1
answer
6k
views
Jetpack Compose,I have multiple cards have scaffold inside, in a vertical scrollable column and if you don't give the card specific height it crashes
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 ...
15
votes
1
answer
12k
views
Android Jetpack Compose (Composable) Get String resources from Coroutine
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 ...
2
votes
1
answer
1k
views
How do I pass a function from a ViewModel to my scaffold's floating action button in Jetpack Compose?
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. ...
64
votes
3
answers
39k
views
What is the purpose of the PaddingValues parameter in a Scaffold
@Composable
fun LayoutsCodelab() {
Scaffold(
topBar = {
TopAppBar(
title = {
Text(text = "LayoutsCodelab")
}
...
6
votes
3
answers
6k
views
How to implement zoom and pan on an Image in jetpack compose
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 ...
0
votes
3
answers
2k
views
Why BottomNavigation show in the next page in Jetpack Compose?
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 ...
1
vote
1
answer
966
views
How to render Activity/Fragment Activity within a Box [Jetpack Compose]
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 = {
...
19
votes
10
answers
6k
views
TopAppBar flashing when navigating with Compose Navigation
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 ...
6
votes
2
answers
2k
views
Jetpack compose bottom app bar dark color
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 ...
2
votes
2
answers
4k
views
Jetpack compose - change bottom bar cutout color
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 ...
8
votes
3
answers
3k
views
How to change Scaffold Floating Action Button action with different screens. Jetpack Compose
How can I change FAB action(onClick{}) depending on current screen with Scaffold.
Scaffold(
floatingActionButton = {
FloatingActionButton(onClick = {
...
3
votes
1
answer
3k
views
Jetpack-compose Scaffold scroll bottomBar when keyboard opens
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 ...
2
votes
3
answers
3k
views
How to implement BottomAppBar and BottomDrawer pattern using Android Jetpack Compose?
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 ...
27
votes
1
answer
23k
views
Jetpack Compose Scaffold + Modal Bottom Sheet
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-------
---...
41
votes
1
answer
20k
views
What is Scaffold? Jetpack compose
I want to know what is Scaffold in jetpack compose with a BottomAppBar example can anyone help me
Scaffold
30
votes
5
answers
9k
views
How to set the Scaffold Drawer Width in JetpackCompose?
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 ...