0
我有一個視圖在我的Android應用程序中,我想縮放&淡出到它的中心。到目前爲止,我有以下幾種:android動畫師 - 縮放視圖到中心(Froyo)
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true" >
<scale
android:duration="1500"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:toXScale="0"
android:toYScale="0" />
<alpha
android:duration="1500"
android:fromAlpha="1"
android:toAlpha="0" />
</set>
但是,這導致了不希望的效果,文本被「縮小」到左上角。我該如何解決這個問題,以便擴展到視圖的中心?我需要這個API> = 8。
感謝您的任何提示。
馬丁
考慮http://nineoldandroids.com/代替舊的動畫API – logcat
THX很多平紋 - 上方法來檢查它,看起來很有前途 – dorjeduck