Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when FAB menu is in open state #6

Open
ShantPetrosyan opened this issue Jul 21, 2016 · 4 comments
Open

Issue when FAB menu is in open state #6

ShantPetrosyan opened this issue Jul 21, 2016 · 4 comments

Comments

@ShantPetrosyan
Copy link

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

@fabionuno
Copy link
Owner

@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

@ShantPetrosyan
Copy link
Author

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" notifications@github.com 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.

@fabionuno
Copy link
Owner

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

@ShantPetrosyan
Copy link
Author

Ok, fine, thank you.

Get Outlook for Android

On Wed, Aug 31, 2016 at 9:28 PM +0300, "Fabio Nuno" notifications@github.com 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants