Make sure the following dependency is added to your app's build.gradle file under dependencies:
Then you can use the Bottom sheet using these options:
BottomSheetBehaviorto be used with
BottomSheetDialogwhich is a dialog with a bottom sheet behavior
BottomSheetDialogFragmentwhich is an extension of
DialogFragment, that creates a
BottomSheetDialoginstead of a standard dialog.