I am trying to use Scale Animation on a RelativeLayout. I want to scale the image from the left corner to the right corner i.e diagonally(left to right) from bottom to top. I have used the following line of code but I am not getting the desired outcome. And can anyone explain me in simple words what does pivotx and pivoty do?
ScaleAnimation scale = new ScaleAnimation(0, 1, 1, 0);
try this, place this in your anim folder and set that to your layout.
place this in java code: