Reputation: 19154
I was using android.support.design.widget.BottomSheetBehavior before, now it's not available in AndroidX, some suggest using com.google.android.material.bottomsheet.BottomSheetBehavior (see this link BottomSheetBehavior not in androidX libraries), but it has some bugs and conflicts with NestedScrollView, sometimes it doesn't pass drag to NestedScrollView. Is there any AndroidX replacement, instead of google material's?
I checked following link from Google, but didn't find replacement for android.support.design.widget.BottomSheetBehavior : https://developer.android.com/jetpack/androidx/migrate
Upvotes: 4
Views: 4411
Reputation: 1693
You can use
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
instead of
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
Upvotes: 3
Reputation: 363765
The new component is inside the Material Components library.
Use this class:
com.google.android.material.bottomsheet.BottomSheetBehavior
Also:
Upvotes: 2