Extended Floating Action Button
Extended floating action buttons are used for a special type of promoted action. They are distinguished by an icon and a text floating above the UI and have special motion behaviors related to morphing, launching, and the transferring anchor point.
Extended floating action buttons may have icon and text, but may also hold just an icon or text.
As this class descends from MaterialButton, you can control the icon which is displayed via setIcon, and the text via setText.
The background color of this view defaults to the your theme's colorSecondary
. If you wish to change this at runtime then you can do so via setBackgroundTintList.
For more information, see the component developer guidance and design guidelines.
Types
Functions
Link copied to clipboard
Add a listener that will be invoked when this ExtendedFloatingActionButton is extended.
Link copied to clipboard
Add a listener that will be invoked when this ExtendedFloatingActionButton is hidden.
Link copied to clipboard
Add a listener that will be invoked when this ExtendedFloatingActionButton is shown.
Link copied to clipboard
Add a listener that will be invoked when this ExtendedFloatingActionButton is shrunk.
Link copied to clipboard
Extends the FAB to show the text and the icon.
Link copied to clipboard
Returns the motion spec for the extend animation.
Link copied to clipboard
Returns the motion spec for the hide animation.
Link copied to clipboard
Returns the motion spec for the show animation.
Link copied to clipboard
Returns the motion spec for the shrink animation.
Link copied to clipboard
Hides the button.
Link copied to clipboard
Remove a listener that was previously added via addOnExtendAnimationListener.
Link copied to clipboard
Remove a listener that was previously added via addOnHideAnimationListener.
Link copied to clipboard
Remove a listener that was previously added via addOnShowAnimationListener.
Link copied to clipboard
Remove a listener that was previously added via addOnShrinkAnimationListener.
Link copied to clipboard
Sets whether to enable animation for a call to show show even if the view has not been laid out yet.
Link copied to clipboard
Updates the motion spec for the extend animation.
Link copied to clipboard
Updates the motion spec for the extend animation.
Link copied to clipboard
Updates the motion spec for the hide animation.
Link copied to clipboard
Updates the motion spec for the hide animation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Updates the motion spec for the show animation.
Link copied to clipboard
Updates the motion spec for the show animation.
Link copied to clipboard
Updates the motion spec for the shrink animation.
Link copied to clipboard
Updates the motion spec for the shrink animation.
Link copied to clipboard
Link copied to clipboard
Shows the button.
Link copied to clipboard
Shrinks the FAB to show just the icon.