Dragger android 的Activity切換動畫大全,android大部分activity切換動畫效果這裏面都有,使用也挺簡單
自定義DraggerView,其中提供左邊進入,右邊進入,上邊進入,下邊進入等一些動畫效果。
項目來自:www.itlanbao.comhtml
public void onItemClick(int position) {
switch (position) {
case 0:
startDraggerActivity(DraggerPosition.LEFT);
break;
case 1:
startDraggerActivity(DraggerPosition.RIGHT);
break;
case 2:
startDraggerActivity(DraggerPosition.TOP);
break;
case 3:
startDraggerActivity(DraggerPosition.BOTTOM);
break;
case 4:
startActivityNoAnimation(new Intent(this, PanelActivity.class));
break;
case 5:
startActivityNoAnimation(new Intent(this, DraggingActivity.class));
break;
case 6:
startActivityNoAnimation(new Intent(this, EditTextActivity.class));
break;
case 7:
startActivityNoAnimation(new Intent(this, ActivityListActivity.class));
break;
case 8:
startActivityNoAnimation(new Intent(this, LazyActivity.class));
break;
default:
break;
}
}android
效果源碼:http://www.itlanbao.com/code/20151210/10000/100687.html動畫