How can I add an animation to the activity finish()

后端 未结 8 1852
清酒与你
清酒与你 2020-11-27 13:37

I\'m using overridePendingTransition for when my activity is created and that works fine I can see the fade in works great, but when I try and animate the finish on the acti

8条回答
  •  旧时难觅i
    2020-11-27 14:29

    Following on the answer by @schwiz, here is an animation override for the built-in Dialog theme, where I have defined local slide_up and slide_down animations. My activity specifies the theme MyDialog in order to have these transitions in and out.

    
    
    
    

提交回复
热议问题