nambicompany / expandable-fab

A highly customizable 'speed dial' FloatingActionButton implementation.
https://nambicompany.github.io/expandable-fab/
MIT License
199 stars 20 forks source link

Programmatically change visible options #20

Closed nasuellia closed 3 years ago

nasuellia commented 3 years ago

Hi there! Thanks for the library!

Is there a way to programmatically add/remove or at least show/hide each individual FabOption?

I see it's possible to enable/disable which is good (but not what I need), while unfortunately the parent's show/hide methods do not seem to have any effect, as the view visibility seems to be ignored as well.

kabumere commented 3 years ago

Hey @nasuellia,

Unfortunately that's not a current feature of the expandable-fab library. The easiest way to achieve what your looking for would probably be to follow the guidance of this answer.

This functionality has been asked for quite a bit though, so I think I'm going to add it to the library soon in a future update.

kabumere commented 3 years ago

Hey @nasuellia,

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).

kabumere commented 3 years ago

Closing due to inactivity.