2014-03-27 32 views
0

这是我的代码和resultpage1和resultpage2是我的.jpg文件。这是我的背景图片,我需要这是动画。图像充满了心,我需要心跳落从top.Background图像下被成功地添加,但动画不下降的同时正在动摇,而跌落slowly.I 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> 

回答

0

你应该使用优化的PNG图像。在大多数情况下,您还需要两张以上的图像。如果您只使用两张图像,您的动画几乎会有频闪效果。下面是关于不同的XML动画

http://www.androidhive.info/2013/06/android-working-with-xml-animations/

+0

但我已经使用这个动画的JPG图片看过的人..!我现在已经使用了5幅图像,但仍仅为心中不落slowly..Its摇摇欲坠的更多信息@特伦特皮尔斯 – anusha