40 questions
1 vote
2 answers
51 views
Android Compose ScrollView Not Scrolling to Bottom When Keyboard Appears?
I'm working on a login screen using Jetpack Compose and I'm trying to implement automatic scrolling to ensure the last button ("Log in without password") is visible when the keyboard appears....
2 votes
1 answer
64 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
0 answers
1k views
How to correctly use BottomBar (NavigationBar) for top level destination screens?
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....
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 ...
0 votes
1 answer
820 views
How to employ BackdropScaffoldState.offset correctly to offset front contentlayer of compose BackdropScaffold
My current android applications main screen contains a androidx.compose.material.BackdropScaffold. The backdrop looks great and functions exactly as it says on the tin. however I have an issue with ...
1 vote
1 answer
445 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&...
1 vote
2 answers
2k views
Bottom Sheet content is showing for a second before activity content in Jetpack compose
I have implemented bottom sheet in jetpack compose with BottomSheetScaffold in a screen and default state is initialValue = BottomSheetValue.Collapsed. When screen appears on device then Bottom sheet ...
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 ...
17 votes
2 answers
5k views
Animating the visibility of a BottomBar leads to "jumping" ui in Jetpack Compose
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 a ...
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 ...
2 votes
2 answers
2k views
How to create a drawer without TopAppBar in Jetpack Compose - Android
So i am new to Jetpack compose and am trying to figure out how to add the drawer functionality to a button on my view. A counterpart question that i found for my question in relation to the XML ...
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 ...
6 votes
1 answer
5k views
How to change icon if selected and unselected in android jetpack compose for NavigationBar like selector we use in xml for selected state?
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 ? Here ...
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. ...
5 votes
3 answers
15k views
Jetpack Compose collapse Bottom Sheet on outside click
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 Sheet? ...