I'm trying to get a custom indeterminate ProgressBar
by using a rotating drawable in Android 4.1. I'm doing this as following:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="360"
android:toDegrees="0"
android:drawable="@drawable/image_for_rotation"
android:pivotX="50%"
android:pivotY="50%" />
it seems like fromDegrees
and toDegrees
parameters just don't work, the image only rotates clockwise, but I need in to rotate ccw. When I change animated-rotate
to rotate
, they start working, however this is not what I need. Any suggestion to get it working?