1

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

ligi
  • 39,001
  • 44
  • 144
  • 244
Nicu Ro
  • 33
  • 4
  • 1
    You 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 Answers1

-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