Animate visibility of a view from gone to visible with animation

前端 未结 5 744
傲寒
傲寒 2021-02-01 17:53

I have a view that is invisible by default(Just for the first time).

Now I need to switch the visibility to VISIBLE with this animation

5条回答
  •  醉酒成梦
    2021-02-01 18:23

    Just You need to add android:animateLayoutChanges="true" to your layout. When I set visibility gone to linear_container, linear_bottom will animate from bottom to up and take place of "linear_container".

    
           
            
    
           
           
    
    

提交回复
热议问题