I have the following definition for an animation in res/animator/grow.xml:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="sequentially">
<set>
<objectAnimator
android:propertyName="scaleX"
android:duration="150"
android:valueFrom="1.0"
android:valueTo="1.5"
android:valueType="floatType" />
<objectAnimator
android:propertyName="scaleY"
android:duration="150"
android:valueFrom="1.0"
android:valueTo="1.5"
android:valueType="floatType" />
</set>
</set>
What I want is for the pivotX and pivotY to be in the center of the object, rather than the upper left hand corner. I know I could accomplish this via code, but I'd rather not do that. Instead, I'd like to specify it in the XML file. I thought about doing this:
<objectAnimator
android:propertyName="pivotX"
android:valueTo="50%" />
<objectAnimator
android:propertyName="pivotY"
android:valueTo="50%" />
But, this seems like it's going to try and animate that property as well, which is not what I want. Instead, I want it to set the pivots and then perform the animation. Can I do this in XML, and if so, how?