Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hide/show fab with scale animation

I'm using custom floatingactionmenu. I need to implement scale animation on show/hide menu button like here floating action button behaviour

Is there any way to do this ?

like image 845
JosephM Avatar asked Sep 07 '25 12:09

JosephM


1 Answers

The design support library revision 22.2.1 added the hide() and show() methods to the FloatingActionButton class, so you can use these from now on.

FloatingActionButton mFab;
mFab.hide();
mFab.show();

You can apply your own animation on it. For more info check this.
And for more information about FAB, check the official documentation.

like image 112
Anuj Sharma Avatar answered Sep 09 '25 00:09

Anuj Sharma