Android intent跳转的动画效果
2010-09-10 01:02:00 来源:WEB开发网核心提示:intent跳转的动画效果startActivity(new Intent(Animation.this, Controls1.class));overridePendingTransition(R.anim.fade, R.anim.hold);//在跳转的语句后加上这条语句。animfade.xml< ?xm
intent跳转的动画效果
startActivity(new Intent(Animation.this, Controls1.class));
overridePendingTransition(R.anim.fade, R.anim.hold);//在跳转的语句后加上这条语句。
animfade.xml
< ?xml version="1.0" encoding="utf-8" ?>
< alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@android:integer/config_longAnimTime" />
animhold.xml
< ?xml version="1.0" encoding="utf-8" ?>
- < translate xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:fromXDelta="0" android:toXDelta="0" android:duration="@android:integer/config_longAnimTime" />
[]
更多精彩
赞助商链接