FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

Added support for animations in the CoordinatorLayout

Open wdullaer opened this issue 10 years ago • 0 comments

With these changes this FloatingActionButton will behave just like the design library supplied one: it will hide automatically when using an AppBarLayout and it will scroll up when a design library SnackBar is shown. No additional code required.

The hack is rather dirty: the FabBehavior should ideally belong to the com.melnykov.fab package. Unfortunately the method getMinimumHeightForVisibleOverlappingContent() of the AppBarLayout has package scope, so we need to add this class to android.support.design.widget If google makes this method public in an update to the design library, this should be refactored.

wdullaer avatar Jul 06 '15 16:07 wdullaer