Scrolling issue with Bottom Sheet Android

前端 未结 3 1470
臣服心动
臣服心动 2021-01-05 10:17

I need the bottom sheet to stop at two positions. I have the following code for Bottom Sheet.



        
相关标签:
3条回答
  • 2021-01-05 10:38

    Hope here you will find a solution

    https://www.androidhive.info/2017/12/android-working-with-bottom-sheet/

    and change ScrollView with NestedScrollView

    p.s. Actually there's too mush code there

    0 讨论(0)
  • 2021-01-05 10:43

    I don't know if this will be a solution to your problem, but I fixed quite a bit of scroll issues in a BottomSheet by replacing the ScrollView in the BottomSheet with a NestedScrollView.

    0 讨论(0)
  • 2021-01-05 11:00

    This is what worked for me,

    • Set a Nested Scrollview as the parent

    • Make recycler view height wrap_content

    0 讨论(0)
提交回复
热议问题