nambicompany / expandable-fab

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

Close expanded FAB layout when touched outside of FABs #29

Closed VincentJoshuaET closed 3 years ago

kabumere commented 3 years ago

@VincentJoshuaET: Use an Overlay where the width and height are both set to match_parent so it covers the entire screen.

The Overlay will show when the ExpandableFab is opened, and by default when the Overlay is clicked it will automatically close the ExpandableFab.

You can also change the color of the Overlay to make it completely transparent so users won't even notice when it appears after the ExpandableFab is opened. And if you have any other Views below the Overlay, the clicks on the Overlay can still be propagated to those Views after it's finished closing the ExpandableFab.

kabumere commented 3 years ago

@VincentJoshuaET,

Did the above suggestion work for you?

kabumere commented 3 years ago

Closing due to inactivity.