Smooth Transition between Activities like in the G

2019-05-24 11:59发布

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条回答
对你真心纯属浪费
2楼-- · 2019-05-24 12:14

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)

查看更多
登录 后发表回答