public class

ModalBottomSheet

extends Object
java.lang.Object
   ↳ com.neomades.ui.sheet.ModalBottomSheet

Class Overview

Modal bottom sheet.

Displays a sheet that open above the current screen from the bottom.

Open a bottom sheet

To open a bottom sheet on the current screen use showBottomSheet(ModalBottomSheet).

Summary

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
From class java.lang.Object

Public Constructors

public ModalBottomSheet ()

Creates a default empty bottom sheet.

Public Methods

public void close ()

Closes the sheet.

public void setBackgroundColor (Color backgroundColor)

Set the background color of the bottom sheet. This method must be called before opening the sheet.

Parameters
backgroundColor background color of the bottom sheet

public void setContent (Layout contentLayout)

Layout to display in the bottom sheet.

Parameters
contentLayout layout to display in the bottom sheet

public void setCornerRadius (int cornerRadiusDp)

Set the radius of the top corners of bottom sheet (default 20dp). This method must be called before opening the sheet.

Parameters
cornerRadiusDp radius of the top corners of bottom sheet

public void setHeight (int heightDp)

Set the height of the bottom sheet (max screen height). This method must be called before opening the sheet.

Parameters
heightDp height of the bottom sheet