Android系统.动画表演

Lyu*_*tko 7 performance animation android

我正在使用一个动画翻转(打开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>
Run Code Online (Sandbox Code Playgroud)

我还想强调,包含视图最多可以包含8个ImageViews(也可以缩放).

你能否提供一些可以改善动画表现的建议?

Fal*_*alx 3

我想先在真实设备上亲自尝试一下,但修复所讨论的硬件加速可能是您的问题。