java.lang.Object | |
↳ | com.neomades.ui.sheet.ModalBottomSheet |
Modal bottom sheet.
Displays a sheet that open above the current screen from the bottom.
To open a bottom sheet on the current screen use
showBottomSheet(ModalBottomSheet)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ModalBottomSheet()
Creates a default empty bottom sheet.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Closes the sheet.
| ||||||||||
void |
setBackgroundColor(Color backgroundColor)
Set the background color of the bottom sheet.
| ||||||||||
void |
setContent(Layout contentLayout)
Layout to display in the bottom sheet.
| ||||||||||
void |
setCornerRadius(int cornerRadiusDp)
Set the radius of the top corners of bottom sheet (default 20dp).
| ||||||||||
void |
setHeight(int heightDp)
Set the height of the bottom sheet (max screen height).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a default empty bottom sheet.
Closes the sheet.
Set the background color of the bottom sheet. This method must be called before opening the sheet.
backgroundColor | background color of the bottom sheet |
---|
Layout to display in the bottom sheet.
contentLayout | layout to display in the bottom sheet |
---|
Set the radius of the top corners of bottom sheet (default 20dp). This method must be called before opening the sheet.
cornerRadiusDp | radius of the top corners of bottom sheet |
---|
Set the height of the bottom sheet (max screen height). This method must be called before opening the sheet.
heightDp | height of the bottom sheet |
---|