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 ?
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 ?
You can use these scale animations for fab button, it gives same effect like design lib fab button.
scale_up.xml
scale_down.xml
Load these animation on your custom view. Don't forget to set pivot point to 50% and interpolator to linear interpolator.
scale_up.xml
scale_down.xml
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.You can apply your own animation on it. For more info check this.
And for more information about FAB, check the official documentation.