Android动画翻译

时间:2015-06-25 16:22:18

标签: android android-layout android-animation

即使我只指定了Y过渡,我的android翻译也会转换为屏幕的左侧。

这是我的代码:

<?xml version="1.0" encoding="utf-8"?>
<set
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/accelerate_decelerate_interpolator"
    android:fillAfter="true">

    <scale android:fromXScale="1.0" android:fromYScale="1.0"
        android:toXScale="0.6" android:toYScale="0.6"
        android:duration="1000" />
    <translate
        android:fromYDelta="0%p"
        android:toYDelta="-15%p"
        android:duration="1000" />
</set>

在图像之前: Before image:

图像后: After Image

0 个答案:

没有答案