overridePendingTransition doesn't work

点点圈 提交于 2019-12-04 07:33:47

The problem was that the device, at least in the case of Samsung Galaxy, has to have animations enabled for this to work. This can be done in the settings menu.

broken byte

You need to make sure that you havn't turned it off in the device using the Settings > Developer Options:

you should turn on Transition animation scale.

As you said in some Samsung devices (maybe others to) the option "All animations" in Settings->Display->Animation ha to be selected and not the default "Some animations"

user2251995

The problem that might be happen to you, for animation doesn't work, it's because your current activity is different from the next activity you intent to. And instead to make the animation he destroy the current activity, and therefor the animation doesn't show, make sure that your both activity's are in the same orientation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!