在方向改变机器人动画 [英] android animation on orientation change

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

问题描述

我来举个动画效果,当我改变屏幕的方向从纵向到横向,反之亦然。我怎么能去这样做。

I have to give an animation effect when i change the orientation of screen from Portrait to landscape and vice versa. How can i go about doing this.

任何帮助将是AP preciated。谢谢!

Any help would be appreciated. Thanks!

推荐答案

使用活动overridePendingTransition(INT enterAnim,诠释exitAnim)在你的onCreate()方法。 和你的活动不应该有安卓configChanges =方向清单中的标签,否则在OnCreate不会被要求方向变化...希望这会帮助你......我从你得到了

use overridePendingTransition (int enterAnim, int exitAnim) in your onCreate() method of activity. and your activity should not having android:configChanges="orientation" tag in manifest, otherwise oncreate will not be called on orientation change...hope this will help you...what i got from you

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

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