hey, maybe someone can help me to solve the problem with combining Android xml layout with compose.
Problem is that some fragments are compose some are xml, Main activity is done with xml and have CoordinatorLayout with CollapsingToolbarLayout. All xml only screens behaves normal, toolbar collapses on scroll, but the ones which are made with Compose are not working, toolbar is not collapsing. I assume it can not observe global scroll of compose content
Thanks guys, secret was to add rememberNestedScrollInteropConnection() to top level view modifier: Modifier.nestedScroll(rememberNestedScrollInteropConnection()))
🎉 1
a
agrosner
03/07/2025, 6:50 PM
We have similar experiences in this. Currently working on a full app migration to compose navigation instead of XML, but still needed compatibility layers before