Hi Perry,

You can use Android animation for the same.
Add the following code into a file in res/anim, say rotation.xml

<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android";
    android:fromDegrees="0" -- you can change these
    android:toDegrees="360"-- values as required
    android:toYScale="0.0" --noscaling
    android:pivotX="50%" --the pivot is
    android:pivotY="50%" --the center of the image
    android:duration="4000" --rotates in 4 seconds
/>

Then, in your activity,

final ImageView yourImage = (ImageView) findViewById(R.id.your_image_file);
final Animation yourRotation =
AnimationUtils.loadAnimation(getApplicationContext(),R.anim.rotation);
yourImage.startAnimation(yourRotation);
yourRotation.setAnimationListener(new AnimationListener() {
    @Override
    public void onAnimationEnd(Animation animation) {
        Intent i = new Intent(Fromclass.this, Toclass.class);
        startActivity(i);
    }
});


Hope this is useful for your requirement.

Thanks
-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subin<https://plus.google.com/118262481642737404812>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to