@Overrideide
public void onLongPress(MotionEvent e) { // TODO Auto-generated method stub switch(this.getSelectedItemPosition()){ case 0: //你的代碼 break; case 1: //你的代碼 break; default: //你的代碼 break; } super.onLongPress(e);//這個不要忘記哦 }