nambicompany / expandable-fab

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

Two float button on once screen #14

Closed Leeeeerich closed 3 years ago

Leeeeerich commented 3 years ago

Hi! I have a question, we may add two fab on one screen, how in image: Untitled

kabumere commented 3 years ago

Hey @Leeeeerich,

That screenshot can be replicated by using multiple ExpandableFabs, with one of them being in a BottomAppBar.

Our example app shows how to achieve both (albeit separately):

ExpandableFab within a BottomAppBar: https://github.com/nambicompany/expandable-fab/blob/master/examples/src/main/res/layout/bottom_app_bar_compatibility_fragment.xml

Multiple ExpandableFabs on screen: https://github.com/nambicompany/expandable-fab/blob/master/examples/src/main/res/layout/multiple_expandablefabs_fragment.xml

You should be able to combine the relevant pieces of the two layout files above to achieve what you're looking for. You can also run the example app to see those layout files in action.

Let me know if you still need help after reviewing those.

kabumere commented 3 years ago

Hey @Leeeeerich,

Did the above solution work for you?

Leeeeerich commented 3 years ago

Oh, sorry! Yeah, it work for me. I close it, thanks!