这样是对的!
new AlertDialog.Builder(this)
.setTitle("该词禁止使用")
.setPositiveButton("ok", null).create().show();
这样是对的!
AlertDialog.Builder builder = new AlertDialog.Builder(this)
.setTitle("该词禁止使用")
.setPositiveButton("ok", null);
builder.create().show();
这样怎么就错了
AlertDialog.Builder builder = new AlertDialog.Builder(this)
.setTitle("该词禁止使用")
.setPositiveButton("ok", null).create().show();