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

后端 未结 8 1830
清酒与你
清酒与你 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: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 :)

提交回复
热议问题