Hello all. I am having a LazyColumn vertical scro...
# compose
b
Hello all. I am having a LazyColumn vertical scroll issue when using a non compose BottomSheet. Unfortunately my app and the parent view is not compose first. I am using an xml FrameLayout with _app:layout_behavior=“com.google.android.material.bottomsheet.BottomSheetBehavior”_, and cannot scroll the the LazyColumn list. Example code in thread
When trying to scroll the list the bottom sheet intercepts the event and will expand collapse. XML layout:
Copy code
<FrameLayout
    android:id="@+id/bottom_sheet"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:behavior_hideable="true"
    app:layout_insetEdge="bottom"    app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" >
     <androidx.compose.ui.platform.ComposeView
         android:id="@+id/bottom_sheet_compose"
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
     </androidx.compose.ui.platform.ComposeView>
</FrameLayout>
In that fragment I show the bottom sheet with the compose view:
Copy code
viewModel.showBottomSheet.observe(viewLifecycleOwner) {
   binding.bottomSheetCompose.setContent {
       MyContent()
   }
}
Then in compose: @Composable private fun MyContent( results: List<String> ) { Surface( Modifier._nestedScroll_(rememberNestedScrollInteropConnection()) ) { LazyColumn(Modifier._fillMaxSize_()) { items(count = results.size) { index ->} } } }
k
Did you find a solution here @Billy Newman?