markormesher / android-fab

Floating action button (FAB) for Android with speed-dial menu functionality
Apache License 2.0
211 stars 29 forks source link

Not float up animation when snackbar shown #32

Closed VladimirSlavic closed 6 years ago

VladimirSlavic commented 6 years ago

It seems the floating button remains in position when a snackbar is being shown, whilst the native FAB implementation has it float up above the snackbar. Is there a way to get this to work with your implementation?

Thanks alot

markormesher commented 6 years ago

Hey @VladimirSlavic, thanks for pointing this out. I think the answer here is to make sure the FAB is inside a CoordinatorLayout and have the view implement a custom behaviour, something like this. You could try specifying like they do on that link, and I'll work on adding it to the next version of the library.

markormesher commented 6 years ago

Oops!

markormesher commented 6 years ago

Hey @VladimirSlavic - this should be fixed in v2.3.0-rc1. Let me know if there are any problems 👍

VladimirSlavic commented 6 years ago

I had already implemented my own behaviour, although i thought adding this to the library would make it much more desirable if it encapsulated the already default behaviour of the ordinary fab button. Your update works good though, very nice.