android animation stops after each revolution -


i want make loading image keep circule.

i tried this:

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"      android:shareinterpolator="false">      <rotate      android:fromdegrees="0"     android:todegrees="360"     android:duration="1000"     android:pivotx="50%"     android:repeatcount="infinite"     android:pivoty="50%"> </rotate> </set> 

it works problem whenever image goes 0 360, stops 0.001 seconds rotate again. please?

this because 0 , 360 @ same location try this:

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"      android:interpolator="@android:anim/linear_interpolator">  <rotate      android:fromdegrees="0"     android:todegrees="359"     android:duration="1000"     android:pivotx="50%"     android:repeatcount="infinite"     android:pivoty="50%"> </rotate> </set> 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -