0
尝试以下操作将导致错误。如何检索用户从自定义alertdialog输入的值?我做了一个setText
来测试这种方式是否有效。如何从CustomAlertDialog中的文本编辑器中检索文本
这里是我的代码:
View categoryDetailView = View.inflate(this, R.layout.customdialoghotspot, null);
final AlertDialog.Builder b = new AlertDialog.Builder(this);
b.setView(categoryDetailView);
b.setTitle("Add Current Location");
b.setPositiveButton("OK",null);
b.setNegativeButton("Cancel",null);
b.show();