-3
我想在活動之間添加一些過渡效果,我嘗試過overridePendingtransition但我沒有得到任何change.I使用android 2.3.6。我只需要留下嚴格的過渡效果。我該怎麼做?Android過渡效果
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
overridePendingTransition (0 , R.anim.grow_from_top);
setContentView(R.layout.aboutus);
grow_from_top.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="0.3" android:toXScale="1.0"
android:fromYScale="0.3" android:toYScale="1.0"
android:pivotX="50%" android:pivotY="100%"
android:duration="@android:integer/config_shortAnimTime"
/>
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:fromAlpha="0.0" android:toAlpha="1.0"
android:duration="@android:integer/config_shortAnimTime"
/>
</set>
可能的重複:http://stackoverflow.com/questions/3389501/activity-transition-in-android – EvZ
不工作,這就是爲什麼我張貼它 – devian
顯示您的代碼至少... – EvZ