ModalBottomSheetDialog
Another BottomSheetDialog for Android.
Prerequisites
Add this in your root build.gradle
file (not your module build.gradle
file):
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
Configuration
Implement the ModalBottomSheetDialog Listener interface on your Activity or Fragment:
Extend you theme with on of the DayNight variants to support a dark styled ModalBottomSheetDialog. For example styles.xml
:
Usage
To create a ModalBottomSheetDialog and display it later in code:
To display a ModalBottomSheetDialog directly:
To display a ModalBottomSheetDialog with items from multiple menu resources:
To display a ModalBottomSheetDialog in a grid layout:
To display a ModalBottomSheetDialog with custom layout:
To display a ModalBottomSheetDialog with rounded corners: