Hii all,
   I tried a lot to animate an image without clicking on the image.but i 
didn't get the result. send me your suggestions. below i mentioned my code
                  * project.java*
                final ImageView imageView = (ImageView) 
findViewById(R.id.blankImageView); 
        final AnimationDrawable yourAnimation; 
        imageView.setBackgroundResource(R.drawable.loadinganim); 
        yourAnimation = (AnimationDrawable) imageView.getBackground();
          yourAnimation.start(); 
      
         and an Xml file like this in the res/drawable/anim
                                  <?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android";
    android:oneshot="false">
    <item android:drawable="@drawable/load0" android:duration="60" />
    <item android:drawable="@drawable/load1" android:duration="60" />
    <item android:drawable="@drawable/load2" android:duration="60" />
    <item android:drawable="@drawable/load3" android:duration="60" />
    <item android:drawable="@drawable/load4" android:duration="60" />
    <item android:drawable="@drawable/load5" android:duration="60" />
    <item android:drawable="@drawable/load6" android:duration="60" />
    <item android:drawable="@drawable/load7" android:duration="60" />
    <item android:drawable="@drawable/load8" android:duration="60" />
   </animation-list>
     

Thanks in advance

-- 
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