I have an image drawable. i rotating the image like a progress bar.
According to this link:
The rotation speed of the indeterminate progress bar is fixed at one revolution every 4 seconds, changing the duration attribute in the drawable XML has no effect. If you prefer to speed it up, you can change the toDegrees attribute to multiples of 360:
- 720 makes one turn in 2 seconds
- 1080 makes one turn in 1.33 seconds
- 1440 makes one turn in 1 second
In addition, you can just use indeterminateDuration for the ProgressBar.