2
Animation anim = new ScaleAnimation(0.0f, 1.0f, 0.0f, 1.0f, Animation.RELATIVE_TO_SELF, (float)0.5, Animation.RELATIVE_TO_SELF, (float)0.5);
anim.setFillAfter(true); // Needed to keep the result of the animation
anim.setDuration((long) durationPlayer);
imageView1.startAnimation(anim);
这就是我要缩放ImageView的,我想如果可能的话做的就是点击一个按钮的刻度值,0.0F和1.0F之间。基本上我需要获取ImageView的宽度和高度值,但直接检查这些值只会返回宽度和高度,比例因子为1.我已使用Google搜索,但找不到任何内容,是否意味着它完全可能?任何其他想法都会有所帮助。获取imageviews当前刻度
简而言之,它有可能在尺度动画中获取图像视图的大小。