android-floating-action-button icon indicating copy to clipboard operation
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?

Open abbasmasrour opened this issue 8 years ago • 2 comments

How do I close the menu automatically after clicking on one of the buttons on the same menu?

abbasmasrour avatar Jun 10 '17 05:06 abbasmasrour

@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);

nirupbbnk avatar Jul 26 '17 12:07 nirupbbnk

Use the collapse() method of your FloatingActionMenu reference.

thinkshihang avatar Sep 26 '17 18:09 thinkshihang