final TextView textView= (TextView) findViewById(R.id.text1);
final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
Button button= (Button) findViewById(R.id.button1);
builder.setIcon(R.mipmap.ic_launcher);
builder.setTitle("提示");
builder.setMessage("确认退出吗?");
builder.setPositiveButton("确认", new DialogInterface.OnClickListener() {
final TextView textView= (TextView) findViewById(R.id.text1);
最新推荐文章于 2024-08-14 18:48:14 发布