RotateAnimation得到当前角度 [英] RotateAnimation get current angle

查看:441
本文介绍了RotateAnimation得到当前角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么招数让RotateAnimation当前角度?我有一个ImageView的是与RotateAnimation,imageview.getRotation(旋转)始终是0.0。也许这是一个把戏,以获得旋转角?
Thaks

Any tricks to get RotateAnimation current angle? I've an imageview that is rotate with RotateAnimation, imageview.getRotation() is always 0.0. Maybe it's a trick to get the rotation angle ? Thaks

推荐答案

您可以使用SensorEvent或位置传感器获取的旋转角度。

You can use SensorEvent or Position Sensor for get rotation angle.

这是SensorEvent 这里帮助。

This is help for SensorEvent here.

这是PositionSensors 这里帮助。

This is help for PositionSensors here.

我希望这是帮助你。

这篇关于RotateAnimation得到当前角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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