Animation when changing orientation

风流意气都作罢 提交于 2019-12-11 13:11:47

问题


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 is no way to change orientation change animation, because this behavior is not handled by your app, it is handled by Window Manager that take your screen and rebuild your view.



来源:https://stackoverflow.com/questions/19789190/animation-when-changing-orientation

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