Relative Content

Tag Archive for android-jetpack-compose

Non scrollable area inside LazyColumn

I have a LazyColumn which contains some items that are themselves scrollable (a mapbox map). Now the default behaviour is that the LazyColumn consumes the scroll completely and the map stays the same. I want to change this so that the parent (LazyColumn) does not scroll when the user interacts with the map. I already looked at the docs for nested scrolling but that seems to not cover my use case.
Interestingly the AndroidView has this behaviour so I cloud wrap the map into that, but I think there should be a better solution. Any ideas are appreciated!

Non scrollable area inside LazyColumn

I have a LazyColumn which contains some items that are themselves scrollable (a mapbox map). Now the default behaviour is that the LazyColumn consumes the scroll completely and the map stays the same. I want to change this so that the parent (LazyColumn) does not scroll when the user interacts with the map. I already looked at the docs for nested scrolling but that seems to not cover my use case.
Interestingly the AndroidView has this behaviour so I cloud wrap the map into that, but I think there should be a better solution. Any ideas are appreciated!

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.