-
Notifications
You must be signed in to change notification settings - Fork 32
1 Implementation details
The bottom sheets, which can be created using the library, are implemented in the class BottomSheet
. In order to create instances of this class, the builder BottomSheet.Builder
has to be used. It allows to specify the properties of the bottom sheet, such as its title, icon and items, and allows to create and show it afterwards. The class BottomSheet
is extended from the Android SDK's class Dialog
and therefore offers the same methods as its base class. This includes methods, which allow to register listeners to be notified, when a bottom sheet has been shown, canceled or dismissed. Additionaly, the classes' setOnMaximizeListener
-method allows to register a listener, which implements the interface OnMaximizeListener
, in order to be notified, when the bottom sheet has been maximized by the user.