Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.23k stars 1.13k forks source link

FloatingActionMenu work with Snackbar and CoordinatorLayout #436

Open crayygy opened 6 years ago

crayygy commented 6 years ago

Hi,

I am currently using FloatingActionMenu in a TabLayout along with the FAB in design library. When I make an INDEFINITE snackbar and switch from tabs, the FAB in design library will raise up, but the FloatingActionMenu won't.

I have add a self-made behavior using answers in #61 , but it only works when the snackbar is shown in the FAM page, if you swipe from other pages with a snackbar, it still not raise up.

It seems the only way to fix this is by add a FAB like onLayout method, but I am not able to do that, does somebody want to start a PR on this? (If no one is willing to do this, I might start do this while I have some spare time...maybe half a year or...)

Thanks a lot!