2012-01-22 224 views
0

我正在嘗試在我的Android應用中爲一些圖片設置動畫。具體而言,我需要將一些PNG圖像從屏幕上的一個位置翻譯到另一個位置。圖片xy座標

<?xml version="1.0" encoding="utf-8"?> 
<translate xmlns:android="http://schemas.android.com/apk/res/android" 
android:fromXDelta="0%" 
android:toXDelta="75%" 
android:fromYDelta="0%" 
android:toYDelta="50%" 
android:duration="3000" 
android:zAdjustment="bottom" /> 

我從淨上面的XML代碼,但它不會將圖像從屏幕的一個特定位置到另一個具體位置轉換。我怎樣才能做到這一點?

+0

嘗試閱讀文檔:http://developer.android.com/guide/topics/graphics/view-animation.html – JoxTraex

回答