Android跳转动画效果

sm2011616 5年前
<!-- zoom_exit,即类似iphone的进入效果 -->   <set xmlns:android="http://schemas.android.com/apk/res/android"           android:interpolator="@android:anim/decelerate_interpolator"           android:zAdjustment="top">       <scale android:fromXScale="1.0" android:toXScale=".5"              android:fromYScale="1.0" android:toYScale=".5"              android:pivotX="50%p" android:pivotY="50%p"              android:duration="3000" />       <alpha android:fromAlpha="1.0" android:toAlpha="0"               android:duration="1000"/>   </set>      <!-- 实现zoom_enter即类似iphone退出时的效果 -->   <?xml version="1.0" encoding="utf-8"?>   <set xmlns:android="http://schemas.android.com/apk/res/android"           android:interpolator="@android:anim/decelerate_interpolator">       <scale android:fromXScale="2.0" android:toXScale="1.0"              android:fromYScale="2.0" android:toYScale="1.0"              android:pivotX="50%p" android:pivotY="50%p"              android:duration="1000"              />   </set>      <!-- hyperspace_in 浮动式动画 -->   <?xml version="1.0" encoding="utf-8"?>   <alpha xmlns:android="http://schemas.android.com/apk/res/android"       android:duration="300"       android:fromAlpha="0.0"       android:startOffset="1200"       android:toAlpha="1.0" />          <!--hyperspace_out 浮动式动画 -->       <?xml version="1.0" encoding="utf-8"?>   <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">         <scale              android:interpolator="@android:anim/accelerate_decelerate_interpolator"             android:fromXScale="1.0"              android:toXScale="1.4"              android:fromYScale="1.0"              android:toYScale="0.6"              android:pivotX="50%"             android:pivotY="50%"             android:fillAfter="false"             android:duration="700" />         <set              android:interpolator="@android:anim/accelerate_interpolator"                     android:startOffset="700">                          <scale                 android:fromXScale="1.4"                  android:toXScale="0.0"                     android:fromYScale="0.6"                 android:toYScale="0.0"                  android:pivotX="50%"                  android:pivotY="50%"                  android:duration="400" />                          <rotate                  android:fromDegrees="0"                  android:toDegrees="-45"                 android:toYScale="0.0"                  android:pivotX="50%"                  android:pivotY="50%"                 android:duration="400" />         </set>     </set>       <!-- push_up_in 上下滑入式 -->   <?xml version="1.0" encoding="utf-8"?>   <set xmlns:android="http://schemas.android.com/apk/res/android" >          <translate           android:duration="300"           android:fromYDelta="100%p"           android:toYDelta="0" />          <alpha           android:duration="300"           android:fromAlpha="0.0"           android:toAlpha="1.0" />      </set>      <!-- push_up_out 上下滑入式 -->   <?xml version="1.0" encoding="utf-8"?>   <set xmlns:android="http://schemas.android.com/apk/res/android" >          <translate           android:duration="300"           android:fromYDelta="0"           android:toYDelta="-100%p" />          <alpha           android:duration="300"           android:fromAlpha="1.0"           android:toAlpha="0.0" />      </set>