2014-03-27 70 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