I have an image and am simply attempting to spin it (rotate 360) a number of times around its center. However, my attempts just result in the image making a wide circle - I think around the upper left of the containing view.
I found this How to spin an android icon on its center point? which seems very similar, but how to do this in an XML animation definition?
My animation XML:
<rotate
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:duration="1600"
android:repeatCount="infinite"
/>