【发布时间】:2015-01-06 20:33:32
【问题描述】:
我有 2 个图像视图(一个用于笔图像的图像视图和一个用于线条的图像视图,两者都是可绘制的),每个都有自己的视图动画,效果很好。 我的问题是,当我开始画笔的动画时,我希望它与其他视图动画中的线条进行交互并为线条的绘制设置动画(我希望它会在笔绘制线条时显示出来),我该怎么做?
我的用于笔图像视图动画的 xml 是:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:fromXDelta="0%p"
android:toXDelta="100%p"
android:fromYDelta="-50%p"
android:toYDelta="-50%p"
android:duration="2000"/>
</set>
我的 xml 用于 line imageview 的动画是:
<?xml version="1.0" encoding="utf-8"?>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="0%"
android:pivotY="50%"
android:fromXScale="0%"
android:toXScale="100%"
android:fromYScale="1.0"
android:toYScale="1.0"
android:fillAfter="true"
android:duration="2000"
android:interpolator="@android:anim/linear_interpolator"
/>
请帮忙!
【问题讨论】:
-
到底是什么问题?您可能需要包含您的布局
-
我该怎么做?可以举个例子吗?