I am trying to scale the view equivalent to the right and left of the center of the view using ScaleAnimation. Regardless of the values I set for pivotX and PivotY, it always scales the same way (for example, the right edge seems to scale, keeping the left edge constant). Below is the code I used to initialize ScaleAnimation. Can someone please let me know if I am doing something wrong ?. Thank you
final ScaleAnimation scaleAnim = new ScaleAnimation(1.0f, 2.0f, 1.0f, 1.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
Sukumar
source share