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

Hiding faboption #12

Closed
lokhandeyogesh7 opened this issue Dec 18, 2020 · 6 comments
Closed

Hiding faboption #12

lokhandeyogesh7 opened this issue Dec 18, 2020 · 6 comments

Comments

@lokhandeyogesh7
Copy link

How can I hide fab option on the basis of conditions?

@kabumere
Copy link
Member

Hello @lokhandeyogesh7,

Only the ExpandableFab itself can be completely hidden. FabOptions can only be disabled as of now (meaning the colors of the button and text will change to gray, and they will be unclickable by the users).

For now, if you want to actually hide a FabOption (so it's gone completely and doesn't take up space in the list) you must call expandableFabLayout.removeAllViews(), then add in the original FabOptions (minus the FabOption you want to hide) using expandableFabLayout.addView() or expandableFabLayout.addViews().

@kabumere
Copy link
Member

Hey @lokhandeyogesh7, did the above help you?

@lokhandeyogesh7
Copy link
Author

Yes, I am closing the issue.

@kabumere
Copy link
Member

Hey @lokhandeyogesh7,

Good news, the feature you requested has been added to the library! Please use version v1.1.1 now available on Maven Central to access the dynamic FabOption removal feature (or clone the latest changes from the master branch on this repo).

@dharamveer-roundr
Copy link

dharamveer-roundr commented Sep 28, 2021

Hi,

How can prevent expanding Faboption based on condition?

and

When clicked on eFab then do some other action instead of Expanding

@kabumere
Copy link
Member

Hey @dharamveer-roundr,

Please open up a new ticket so that I can help you. When creating the ticket, please describe a little more exactly what you're trying to accomplish (so that I can better understand when helping you).

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

3 participants