RotateAnimation get current angle

馋奶兔 提交于 2020-02-25 04:32:09

问题


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


回答1:


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

This is help for SensorEvent here.

This is help for PositionSensors here.

I hope this is help you.



来源:https://stackoverflow.com/questions/26139963/rotateanimation-get-current-angle

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