I am migrating an app to Jetpack Compose and I have the following situation on a view/compose hybrid screen:
- The layout root element is a CoordinatorLayout that has a top bar which is collapsible.
- The content is a FragmentViewPager, and one of the pages is the Fragment I am migrating to Compose.
- When I scroll the LazyColumn inside this fragment, the top bar won't collapse/expand.
My question is: Can I do something to make both pieces work together? i.e: When I scroll a LazyColumn, a CoordinatorLayout that contains it will make it's top bar collapse/expand.