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

后端 未结 8 1787
清酒与你
清酒与你 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条回答
  • 2020-11-27 14:30

    Look into doing it through a theme. You can define enter exit animations for activities or the entire application

    0 讨论(0)
  • 2020-11-27 14:31

    I override pending transition just after calling finish();

    In my case, I have done it to avoid transitions.

    finish();
    Details.this.overridePendingTransition(R.anim.nothing,R.anim.nothing);
    

    Order is important :)

    0 讨论(0)
提交回复
热议问题