统一跳转界面过场动画

This commit is contained in:
zengfantian 2015-03-12 00:49:47 +08:00
parent dabd4a7af3
commit 9622b6ead8
1 changed files with 1 additions and 8 deletions

View File

@ -59,14 +59,7 @@ public class MainActivity extends BaseActivity {
Intent intent = (Intent) map.get("intent");
startActivity(intent);
//过场动画
if(position % 2 == 0){
//右往左推出效果
overridePendingTransition(R.anim.push_left_in,R.anim.push_left_out);
}else{
//左上角展开淡出效果
overridePendingTransition(R.anim.scale_translate,R.anim.alpha_out);
}
overridePendingTransition(R.anim.push_left_in,R.anim.push_left_out);
}
});