Interactive demo. This demo lets you preview the button component, its variations, and configuration options. Each tab displays a different type of button.
A user interface element the user can tap or click to perform an action. To display a button in an activity, add a button to the activity's layout XML file:
A floating action button (FAB) is a circular button that triggers the primary For example, the following code displays a Snackbar when the user taps the FAB:.