Class DynamicFABUtils
java.lang.Object
com.pranavpandey.android.dynamic.support.util.DynamicFABUtils
Helper class to perform various
FloatingActionButton operations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhide(ExtendedFloatingActionButton extendedFab, boolean shrinkBefore) Same animation that FloatingActionButton.Behavior uses to hide the extended FAB when the AppBarLayout exits.static voidhide(FloatingActionButton fab) Same animation that FloatingActionButton.Behavior uses to hide the FAB when the AppBarLayout exits.static voidshow(ExtendedFloatingActionButton extendedFab, boolean extendAfter) Same animation that FloatingActionButton.Behavior uses to show the extended FAB when the AppBarLayout enters.static voidshow(FloatingActionButton fab) Same animation that FloatingActionButton.Behavior uses to show the FAB when the AppBarLayout enters.
-
Constructor Details
-
DynamicFABUtils
public DynamicFABUtils()
-
-
Method Details
-
hide
Same animation that FloatingActionButton.Behavior uses to hide the FAB when the AppBarLayout exits.- Parameters:
fab- The FAB to set hide animation.
-
hide
Same animation that FloatingActionButton.Behavior uses to hide the extended FAB when the AppBarLayout exits.- Parameters:
extendedFab- The extended FAB to set hide animation.shrinkBefore-trueto shrink the FAB before hiding it.
-
show
Same animation that FloatingActionButton.Behavior uses to show the FAB when the AppBarLayout enters.- Parameters:
fab- The FAB to set show animation.
-
show
Same animation that FloatingActionButton.Behavior uses to show the extended FAB when the AppBarLayout enters.- Parameters:
extendedFab- The FAB to set show animation.extendAfter-trueto extend the FAB after showing it.
-