BottomSheet

BottomSheet
A BottomSheet is a UI component in Android that slides up from the bottom of the screen to present additional content or options to the user. It can be used for various purposes, such as displaying a menu, providing additional details, or allowing user interactions without navigating away from the current screen.

Characteristics
Modal and Non-Modal: BottomSheets can be modal (blocking interaction with the rest of the app) or non-modal (allowing interaction with the underlying content).
Flexible Height: They can expand to a specific height or fill the screen, depending on the content and design requirements.
Swipeable: Users can dismiss a BottomSheet by swiping it down, providing a natural and intuitive way to close it.
Persistent or Temporary: BottomSheets can be designed to remain visible until dismissed (persistent) or to show temporary content that disappears after interaction.

Examples
Persistent BottomSheet: Used in a music player app to display song details and playback controls while allowing users to interact with the main content.
Modal BottomSheet: Used in a shopping app to show options for filtering products, requiring the user to make a selection before returning to the main screen.
BottomSheetDialogFragment: A specific implementation of a BottomSheet that can be used to create a dialog-like experience, often used for user input or confirmations.

Comments