-1

i want made animation, Until the outside of activity, animation has not stoped and And continues until the activity is running animations

my animation code :

<set xmlns:android="http://schemas.android.com/apk/res/android">
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromDegrees="0"
    android:toDegrees="360"
    android:pivotX="50%"
    android:pivotY="50%"
    android:duration="30000" >

</rotate>

please send to me current code

Mohammad
  • 91
  • 1
  • 1
  • 9

1 Answers1

1

Like this.

animation.setRepeatCount(Animation.INFINITE);
Fahim
  • 12,198
  • 5
  • 39
  • 57
  • tnx dear friend, but this is not work. after android:duration="10000" animation is stoped. I want non-stop and repeat Until the exit Activity. – Mohammad Mar 15 '15 at 08:44
  • tnx Dear FAHIM <3 , I added this code in animation xml file : android:repeatCount="infinite" and this work. tnx your help <3 – Mohammad Mar 15 '15 at 08:51