1
使用动画我扩展了ImageView,但缩放后会重叠其他视图。有什么方法可以更新版面属性,那我在活动xml文件中定义的?即我有一些属性,例如我想在动画之后应用的layout_toRightOf
。更新动画后的布局
有我的代码:
动画:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true"
android:fillEnabled="true">
<scale
android:duration="500"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:pivotX="50%"
android:pivotY="50%"
android:toXScale="2.0"
android:toYScale="2.0" />
</set>
应用动画:
Animation shrinkAnimation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.shrink_animation);
someView.startAnimation(shrinkAnimation);
我必须设置从我的活动在这些方法中每个视图的位置?如果是的话,这听起来很复杂。我已经在我的主要xml文件中配置了属性和其他值。我只想在动画之后使用这些属性。 – user1248568 2013-04-04 17:52:36