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
Asked
Active
Viewed 1,260 times
1
-
1You are mixing the old and the new animation api. Use `view.animate().rotate(45);` or `view.setRotation(45);` and then `getRotation()` will return the right angle. – Xaver Kapeller Oct 01 '14 at 11:17
1 Answers
-2
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.

Bhagirathsinh Gohil
- 673
- 1
- 9
- 25