FloatingActionButton-Xamarin.Android icon indicating copy to clipboard operation
FloatingActionButton-Xamarin.Android copied to clipboard

Issue when FAB menu is in open state

Open ShantPetrosyan opened this issue 9 years ago • 4 comments

Hi, can you please fix this bug, the problem is that when you clicking floating button and its show menu with subitems, but the same time background view is clickable, so user can click them, but the logic I think will be block user to click any other item, only menu items, so can you make background view not clickable, its will solve that issue.

Regards, Shant

ShantPetrosyan avatar Jul 21 '16 11:07 ShantPetrosyan

@ShantPetrosyan sorry for the delayed answer. You can get this behavior setting the background color in the FloatingActionMenu using the property menu_backgroundColor and programmatically use SetClosedOnTouchOutside(true) to close the menu when user touch outside.

In the sample project the right FAB button has this behavior. Sample

fabionuno avatar Aug 31 '16 13:08 fabionuno

Thank you for response, but I mean other issue, I do not need to close menu when touching outside, I mean that when fab menu is in open state then background view are clickable, so I have some other buttons in my page not in fab menu then they are clickable when fab menu is in open state.

Regards,

Shant

Get Outlook for Android

On Wed, Aug 31, 2016 at 4:57 PM +0300, "Fabio Nuno" [email protected] wrote:

@ShantPetrosyan sorry for the delayed answer.

You can get this behavior setting the background color in the FloatingActionMenu using the property menu_backgroundColor and programmatically use SetClosedOnTouchOutside(true) to close the menu when user touch outside.

In the sample project the right FAB button has this behavior.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ShantPetrosyan avatar Aug 31 '16 14:08 ShantPetrosyan

This is the behavior of original Clans's Java lib.

To avoid clicks on other elements than the open FloatingActionMenu we need to use FloatingActionMenu#SetClosedOnTouchOutside(boolean).

To change this behavior an issue or a pull request needs to be open to https://github.com/Clans/FloatingActionButton

fabionuno avatar Aug 31 '16 18:08 fabionuno

Ok, fine, thank you.

Get Outlook for Android

On Wed, Aug 31, 2016 at 9:28 PM +0300, "Fabio Nuno" [email protected] wrote:

This is the behavior of original Clans's Java lib.

To avoid clicks on other elements than the open FloatingActionMenu we need to use FloatingActionMenu#SetClosedOnTouchOutside(boolean).

To change this behavior an issue or a pull request needs to be open to https://github.com/Clans/FloatingActionButton

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ShantPetrosyan avatar Aug 31 '16 18:08 ShantPetrosyan