I am getting strange results with the following code:
iv = (ImageView) findViewById(R.id.iv); iv.setImageResource(R.drawable.spinner_white_76);
Feel stupid! Got it to work after spending some time closely reading the documentation:
Animation a = new RotateAnimation(0.0f, 360.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); a.setRepeatCount(-1); a.setDuration(1000);