Class DynamicFABUtils
java.lang.Object
com.pranavpandey.android.dynamic.support.util.DynamicFABUtils
Helper class to perform various
FloatingActionButton
operations.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
hide
(ExtendedFloatingActionButton extendedFab, boolean shrinkBefore) Same animation that FloatingActionButton.Behavior uses to hide the extended FAB when the AppBarLayout exits.static void
hide
(FloatingActionButton fab) Same animation that FloatingActionButton.Behavior uses to hide the FAB when the AppBarLayout exits.static void
show
(ExtendedFloatingActionButton extendedFab, boolean extendAfter) Same animation that FloatingActionButton.Behavior uses to show the extended FAB when the AppBarLayout enters.static void
show
(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
-true
to 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
-true
to extend the FAB after showing it.
-