final EditText inputServer = new EditText(SettingActivity.this); AlertDialog.Builder builder = new AlertDialog.Builder(SettingActivity.this); builder.setTitle("输入密码").setIcon(android.R.drawable.ic_dialog_info).setView(inputServer) .setNegativeBu
在Android中,弹出对话框使用AlertDialog.Builder方法. new AlertDialog.Builder(MainActivity.this).setTitle("本机设置") .setView(view) .setPositiveButton("确定",new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface v, int arg