我想旋轉箭頭指向某些特定位置旋轉圖像,以特定的方向
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();
但是它旋轉,不到一秒鐘內,它涉及到它原來的地方。我怎樣才能讓它像指南針一樣旋轉。
軸承角度我假設,但我將如何得到PivX和樞紐 – 2013-02-12 17:07:39