80,350
社区成员
发帖
与我相关
我的任务
分享
public void onClick(DialogInterface dialog, int which) {
setSelection(which);
dialog.dismiss();
}
public boolean performClick() {
boolean handled = super.performClick();
if (!handled) {
handled = true;
Context context = getContext();
final DropDownAdapter adapter = new DropDownAdapter(getAdapter());
AlertDialog.Builder builder = new AlertDialog.Builder(context);
if (mPrompt != null) {
builder.setTitle(mPrompt);
}
builder.setSingleChoiceItems(adapter, getSelectedItemPosition(), this).show();
}
return handled;
}