Relative Content

Tag Archive for android-jetpack-compose

Jetpack Compose LazyList scroll position not maintained after navigation

I am using Jetpack Compose in my app and have encountered an issue where the scroll position in a LazyColumn is not maintained when navigating away from the screen and then returning. I am using rememberLazyListState to manage the scroll state, but it always resets when I come back to the progressingWorkoutScreen.

Change elevation with scroll position

I want to use a two-levels app-bar, where parts of the app-bar should hide when scrolling, and part of it should stay visible. My approach was to simply add 2 app-bars into a column, and apply a different scroll behaviour on each of them. The top level app-bar, containing the title, the action icons and the navigation, will auto-hide. The 2nd-level, will always remain on screen.