Android Bottom Sheet is the Android Materiel Design Components which slides up from the bottom of the screen. That was added to design support library in version 23.2.Bottom sheets are displayed as a result of the user-triggered action, and also it can reveal additional content by swiping up.
Types of Bottom Sheet Android
There are two types of Bottom Sheets available,
Persistent bottom sheets We need to include our bottom sheet in the main layout. For the Bottom Sheets, you just have to useCoordinatorLayoutas a top level of your layout.The Bottom Sheets remains visible on the screen. Its used to display supporting the content of the user action.
Modal Bottom sheets
For Modal Bottom Sheets you need BottomSheetDialogFragment. It’s a dialog which are alternatives to content choosers, simple menus or dialogs.Used to present deep-linked content from other apps.
Persistent bottom sheets with Example
Adding support library First, Add the design library to your App build.gradle dependency
Bottom sheet view
create the bottom sheet view to add to the main layout.