系统的对话框,有多个选项,其实还挺好看的
protected void showDialog_deleteFavorite(final String productID,
final String type) {
AlertDialog.Builder builder = new Builder(UserFavoritActivity.this);
builder.setTitle("操作");
builder.setCancelable(true);
String[] a = { "删除收藏夹" };
builder.setItems(a, new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
NetUtil.deleteFavorite(productID, type);
}
});
builder.create().show();
}