我正在使用一种使翻转的动画(在 ImageView
上),但是动画不流畅(看起来像是性能问题)。该图片是一个大小为128x128的PNG文件。
这里我将发布我的动画代码:
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
<scale
android:fromXScale="1.0"
android:toXScale="0.0"
android:fromYScale="1.0"
android:toYScale="1.0"
android:pivotX="50%"
android:pivotY="50%"
android:duration="500"
android:fillAfter="false"
android:fillEnabled="false"
/>
</set>
我还想强调一下,包含视图最多可以有八个此类缩放过的ImageViews
。
您能否提供任何可以提高动画性能的建议呢?