매개 변수 4 수레 ScaleAnimation 생성자의 :
fromX Horizontal scaling factor to apply at the start of the animation
toX Horizontal scaling factor to apply at the end of the animation
fromY Vertical scaling factor to apply at the start of the animation
toY Vertical scaling factor to apply at the end of the animation
당신은 생성자에 대한 & D C, A, B 나에게 값을 알려 주시기 바랍니다 수
모든 값은 float입니다. 픽셀 단위의 크기가 아니라 상대적인 비율 요소를 나타냅니다. 그래서 width1
에서 width2
로 확장하고 height1
에서 height2
에 당신은 설정해야합니다
ScaleAnimation scaleAnimation =
new ScaleAnimation(1f, 1f * width2/width1, 1f, 1f * height2/height1);