The pivotX and pivotY is the central point of the animation.
So for example if you want to do Zoom In animation you can use this
and the android:pivotX="50%"
and android:pivotY="50%"
will mean the zoom will be started from the center.
There is also a nice tutorial by android hive here