A simple library to use a menu of FloatingActionButtons from Design Support Library that follow Material Design Guidelines
27.1.0
Fixes and improvements by @leinardi ... Thanks! :)
FABsMenu#addAllButtons(TitleFAB... buttons)
FABsMenu#addButton(TitleFAB button, int index)
FABsMenu#removeButton(int index)
FABsMenu#removeAllButtons()
FABsMenu#show()
FABsMenu#show(boolean expand)
FABsMenu#hide()
FABsMenu#hide(boolean expand)
FABsMenu#setOverlayColor(@ColorInt int color)
FABsMenu#setAnimationDuration(int duration, boolean applyToOverlay)
FABsMenuLayout#setAnimationDuration(int duration)
FABsMenuLayout#show()
FABsMenuLayout#show(boolean immediately)
FABsMenuLayout#hide()
FABsMenuLayout#hide(boolean immediately)
FloatingActionButton
s inside the menu is mini now.MenuButton
would not properly update it.Thanks to @G00fY2 for the help :D
MenuFAB
hide on scroll. Use it like this:RecyclerView rv = findViewById(R.id.rv);
FABsMenu menu = findViewById(R.id.fabs_menu);
menu.attachToRecyclerView(rv);
setMenuUpdateListener(FABsMenuListener)
in favor of setMenuListener(FABsMenuListener)
Add support for Snackbar
s by moving FABsMenu
when they are shown
OnFABsMenuUpdateListener
with FABsMenuListener
, which is an abstract class, so you don't need to implement all methods, but just the ones you need. It also has a default implementation for the FABsMenu click, to open/close the menu. Thanks for the suggestion @TheAndroidMaster