Android Animation

I use an animation that flips (on ImageView ), but the animation works behind the scenes (looks like a performance issue). The image is a 128x128 PNG file.

Here I will post my animation code:

 <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> 

I also want to emphasize that the containing view can contain up to eight such ImageViews (which also scale).

Could you provide me with any recommendations that can improve animation performance?

+7
performance android animation
source share
1 answer

I would like to personally try it on a real device, but maybe the hardware acceleration that the fix talks about may be your problem.

+3
source share

All Articles