Android 显示对话框

    AlertDialog.Builder dialog=new AlertDialog.Builder(Login.this);
    dialog.setTitle("测试对话框");
    dialog.setMessage("内容");
    dialog.setCancelable(false);
    dialog.setPositiveButton("肯定",new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {

        }
    });
    dialog.show();
相关文章
相关标签/搜索