I am trying to rotate an arrow to point to some specific location
float bearing = myLoc.bearingTo(mecca);
RotateAnimation rotate = new RotateAnimation(0, bearing, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
arrow.setAnimation(rotate);
rotate.start();
However it rotates and within less than one second it comes to its original place. How can i make it rotate like a compass.
Another simple way to rotate an imageView :