I was using the BottomSheetBehavior
with the original support library:
implementation \'com.android.support:design:27.1.1\'
W
You have to import the Material Components Library provided by Google.
Material Components for Android is a drop-in replacement for Android's Design Support Library.
Add in your build.gradle
:
implementation 'com.google.android.material:material:x.x.x'
Then use the class com.google.android.material.bottomsheet.BottomSheetBehavior.
In your layout you can use the attribute:
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
..>
or
app:layout_behavior="@string/bottom_sheet_behavior"