I am trying to rotate image that is placed partly on the screen using this code:
final float ROTATE_FROM = 0.0f;
final float ROTATE_TO = 360.0f;
RotateAnimation r = new RotateAnimation(ROTATE_FROM, ROTATE_TO,
Animation.RELATIVE_TO_SELF, 0f,
Animation.RELATIVE_TO_SELF, 0f);
r.setDuration(300000);
r.setRepeatCount(Animation.INFINITE);
r.setInterpolator(this, android.R.anim.linear_interpolator);
imv = (ImageView) findViewById(R.id.imageView1);
imv.startAnimation(r);
But what i get is the image rotating and the parts are where outside the screen are left blank.
What is want the result to be is:
a demopic http://www.11sheep.com/temp/p1.png
Can someone please give me a code snippet?
here is the code
here is the code for FlipAnim