这是我的代码,resultpage1和resultpage2是我的.jpg file.This是我的背景图像,我需要这个是动画.The图像充满了心,我需要从top.Background图像中掉下来的心是成功的,但动画不是proper.The当掉下来的时候心在颤动而不是慢慢地掉下来我需要心慢慢地掉下来而不是shaking.Iam新的android.Please帮助
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/resultpage1"
android:duration="50"/>
<item
android:drawable="@drawable/resultpage2"
android:duration="50"/>
<item
android:drawable="@drawable/resultpage3"
android:duration="50"/>
<item
android:drawable="@drawable/resultpage4"
android:duration="50"/>
<item
android:drawable="@drawable/resultpage5"
android:duration="50"/>
</animation-list>发布于 2014-03-27 11:02:49
为此,您应该使用优化的png图像。在大多数情况下,您还需要两个以上的图像。如果仅使用两个图像,则动画几乎会有闪光效果。下面是关于不同xml动画的更多信息
http://www.androidhive.info/2013/06/android-working-with-xml-animations/
https://stackoverflow.com/questions/22677252
复制相似问题