- What does a floating action button do?
- What is true about floating action buttons?
- When might you want to use a floating action button instead of a raised button on a screen?
- Where do you put the floating action button?
What does a floating action button do?
A floating action button (FAB) is a circular button that triggers the primary action in your app's UI. This page shows you how to add the FAB to your layout, customize some of its appearance, and respond to button taps.
What is true about floating action buttons?
The floating action button is a bit different button from the ordinary buttons. Floating action buttons are implemented in the app's UI for primary actions (promoted actions) for the users and the actions under the floating action button are prioritized by the developer.
When might you want to use a floating action button instead of a raised button on a screen?
Floating action buttons should be used for positive actions such as "create", "share", or "navigate". (If more than one floating action button is used within a Route, then make sure that each button has a unique heroTag, otherwise an exception will be thrown.)
Where do you put the floating action button?
The button should be placed in the bottom right corner of the screen. The recommended margin for the bottom is 16dp for phones and 24dp for tablets. In the example above, 16dp was used.