Smooth Transition between Activities like in the Google IO 2014 App

纵然是瞬间 提交于 2019-12-07 20:09:49

问题


How would I implement smooth Transitions between Activities such as they are implemented in the Google IO 2014 App?

It seems as if they are just replacing Fragments but from the Code it seems as if they are just regularly starting an Activity? The Source Code for the Switching (Navigation Drawer) can be found here: BaseActivity.java


回答1:


I just found out how they manage to accomplish this in their App:

They call

overridePendingTransition(0, 0);

in the onCreate Methode of the Activities that inherit from the BaseActivity. (You could also call it in the BaseActivity, though)



来源:https://stackoverflow.com/questions/25251104/smooth-transition-between-activities-like-in-the-google-io-2014-app

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