在Android中从右上方,左下方,右下方旋转动画android? [英] Rotate animation android from top right,Bottom left, Bottom right in android?

查看:221
本文介绍了在Android中从右上方,左下方,右下方旋转动画android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码可帮助我在滑动时在屏幕的左上角旋转。有谁能帮助我如何在屏幕的其余边缘(如右上边缘,右下边缘和左边缘)中旋转。
为简单起见,我需要将旋转页面变换作为图像视图的动画

The below code helps me to rotate through left top edge of screen when swipe. can any one helps me how to rotate through remaining edges of the screen like top right edge, bottom right and left edges. To be simple i need Rotate Page Transform as an animation for image view

RotateAnimation r=new RotateAnimation(130,0,90,180);


推荐答案

您可以使用以下代码:

RotateAnimation r=new RotateAnimation(0,90);
RotateAnimation r=new RotateAnimation(180,270);
RotateAnimation r=new RotateAnimation(270,360);

这篇关于在Android中从右上方,左下方,右下方旋转动画android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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