@Override
protected Dialog onCreateDialog(int id){
switch(id){
case DIALOG_OP:
final String[] op=getResources().getStringArray(R.array.ctx_menu_items);
return new AlertDialog.Builder(this)
.setTitle("操作选项")
.setItems(op, new DialogInterface.OnClickListener(){
public void onClick(DialogInterface dialog,int which){
switch(which){
case 0:showDetail();
break;
case 1:
//showDialog(DIALOG_REPLY);
break;
case 2:
deleteItem();
break;
}
}
})
.create();
}
return null;
}