I have a view with an starting size (Width1 and Height1). I want to create an animation to change its size to the end size (Width2 and Height2). I have been reading about ScaleAnimation but I cannot understand the scaling factor.
Could you please tell me the values a, b, c & d for the constructor:
ScaleAnimation scaleAnimation = new ScaleAnimation(a, b, c, d);
Thanks
Parameters of 4-floats ScaleAnimation constructor are the following:
All values are float--they represent not sizes in pixels, but relative scaling factors. So to scale from
width1towidth2and fromheight1toheight2you need to set: