Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the rotation speed in android?

I have an image drawable. i rotating the image like a progress bar.

<rotate xmlns:android="http://schemas.android.com/apk/res/android" android:pivotX="50%" android:pivotY="50%" android:fromDegrees="0" android:toDegrees="360" android:drawable="@drawable/spinner_white_48" /> 

i want to increase the rotation speed? for that, What attribute i have to use?

like image 567
Praveen Avatar asked Jul 02 '10 13:07

Praveen


1 Answers

Setting duration and/or repeat count did not help me with an indeterminate ProgressBar animation. I had to increase the toDegrees to have it make additional loops:

<rotate xmlns:android="http://schemas.android.com/apk/res/android"     android:drawable="@drawable/ic_indeterminate_progress"     android:duration="1"     android:fromDegrees="0"     android:pivotX="50%"     android:pivotY="50%"     android:toDegrees="1080" /> <!--1080 is 3 loops instead of 1 in same amt of time--> 
like image 139
DustinB Avatar answered Oct 05 '22 02:10

DustinB