我在RelativeLayout中有一个ImageView。 ImageView正在填充整个RelativeLayout。 RelativeLayout不能变大。使用动画时Trespass ViewGroup的限制
我要让使用ScaleAnimation的ImageView的更大的那样:
final ScaleAnimation scaleAnimationGoBigger = new ScaleAnimation(1, 1.5f, 1, 1.5f, Animation.RELATIVE_TO_SELF, (float)0.5, Animation.RELATIVE_TO_SELF, (float)0.5);
scaleAnimationGoBigger.setDuration(1000);
scaleAnimationGoBigger.setFillAfter(true);
myImageView.startAnimation(scaleAnimationGoBigger);
的RelativeLayout的的学边界不允许显示整个新的更大的ImageView,只显示适合的RelativeLayout部分(使得人们看起来像一个缩放效果)。
所以我的问题是:有没有办法告诉一个ViewGroup内的视图不遵守(以非法访问)ViewGroup的边界位置(至少在动画期间)?
同样的问题。 ;( – Gavjr 2014-09-04 15:06:43