android - 安卓Activity切换动画无法控制
天蓬老师
天蓬老师 2017-04-17 14:48:11
0
4
438

我遇到了一个神奇的问题,当我开发的app启动时当前已经打开了其他app的话,activity进入动画是左边划入,退出左边划出,swipebacklayout也很正常,能看见下层activity,可当从桌面或菜单直接打开,其他app都在后台时,activity切换动画又变成缩放进入退出了。百思不得其解啊,求教有经验的师傅,究竟是为啥类?新手提问。附图一张供欣赏

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
伊谢尔伦

1. Some mobile phones come with default activity switching effects, such as Sony.
2. Check the switching animation of your app and compare

巴扎黑

Did you use this overridePendingTransition

阿神

To add to what was said above, you should unify the switching style of your own app. Use overridePendingTransition when starting each activity.

PHPzhong

By overriding overridePendingTransition, you can customize the switching style of your activity. When starting or closing your own app, it has a lot to do with the system and mobile phone ROM. For example, in order to look more cool, Xiaomi 4 launches the app with various random animations. The latest Marshmallow launches the app in a screen-expanding style, and closes it with the effect of moving from top to bottom.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template