adnroid 选择对话框

Builder builder =  new AlertDialog.Builder(Search.this);
DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub

}
};
String[] items = {"收入","支出"};
builder.setItems(items,listener);
builder.create().show();

你可能感兴趣的:(adnroid 选择对话框)