Search code examples
androidimageviewrotateanimation

RotateAnimation get current angle


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


Solution

  • 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.