动画时改变方向 [英] Animation when changing orientation

查看:175
本文介绍了动画时改变方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能改变方向时执行动画?我有两个布局纵向和横向。我想改变方向时,执行自定义动画。如果可能的话,我该怎么办呢?
此外,当屏幕变化的取向,孩子观看独立地旋转。例如,TextView的由左到右和按钮旋转从右旋转到左

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

推荐答案

我试图用通过的这个sugesstion 。它只是模拟和取向似乎改变时具有动画。正如Jansel提到的,有没有办法改变的方向变化动画。因此,我只是尽量让东西都像她那样。

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.

这篇关于动画时改变方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆