Interfer0n » 19 мар 2010, 22:43
Попробуйте так:
ImageView iv = (ImageView) findViewById(R.id.iv);
Matrix matrix = iv.getImageMatrix();
RectF dst = new RectF();
matrix.mapRect(dst, new RectF(iv.getDrawable().getBounds()));
Log.d("Test", "Dst " + dst);
RotateAnimation a = new RotateAnimation(0, 360, iv.getPaddingLeft() +
dst.centerX(), iv.getPaddingTop() + dst.centerY());
a.setDuration(5000);
iv.startAnimation(a);