hide/show fab with scale animation

后端 未结 3 1830
眼角桃花
眼角桃花 2021-02-02 11:14

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

3条回答
  •  灰色年华
    2021-02-02 12:01

    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

    
    
        
    
    

提交回复
热议问题