android-floating-action-button
android-floating-action-button copied to clipboard
How do I close the menu automatically after clicking on one of the buttons on the same menu?
How do I close the menu automatically after clicking on one of the buttons on the same menu?
@abbasmasrour This worked for me get a reference to the menu through id and on each click of flaoting button use close() method
FloatingActionMenu menu_labels; menu_labels = (FloatingActionMenu) findViewById(R.id.menu_labels_right); menu_labels.close(true);
Use the collapse() method of your FloatingActionMenu reference.