在Android中添加动画的活性变化 [英] Adding Animation in Activity Change in android
本文介绍了在Android中添加动画的活性变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个活动A和B。当我的活动A之间swithc到B的活动B自带3d过渡animation.when我preSS后退按钮在活动B的活动B退出时动画。
请回答。
希望你的快速反应。
解决方案
Activity.overridePendingTransition(R.anim.fade_in,R.anim.fade_out);
使用此code片段在活动的onCreate()Method.You可以实现过渡效果。
I have two Activities A and B . When i swithc between activity A to B the Activity b comes with 3d transition animation.when i press a back button in Activity B the Activity B exits with Animation.
Please Answer.
Hope Your Quick Response.
解决方案
Activity.overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
Use this code snippet in your activity onCreate() Method.You can achieve the transition effect.
这篇关于在Android中添加动画的活性变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文