Animation when changing orientation

2019-08-13 10:26发布

问题:

Is it possible to perform animation when changing orientation? I have two layout for portrait and landscape. I want to perform a custom animation when changing orientation. If it's possible, how can I do that? In addition, when the screen change orientation, the children view rotate independently. For example, the textview rotates from left to right and the button rotate from right to left

回答1:

I tried to use to rotate layout by using this sugesstion. It's just simulation, and the orientation is seemed to have animation when changing. As Jansel mentioned, there not way to change orientation change animation. Thus, I just try to make something to everything look like that.



回答2:

Sorry, there not way to change orientation change animation, because this behavior is not handle by your app, is handled by Window Manager that take your screen and rebuilt your view.



回答3:

Android Developer SiteSee this can help you some what.