String str1, final String str2, final int index) { android.support.v7.app.AlertDialog.Builder AlertDialogBuilder...setTextColor(Color.BLACK); mTextView1.setText(str1); mTextView2.setText(str2); AlertDialogBuilder.setView...(mView);//对话框加载视图 final android.support.v7.app.AlertDialog alertdialogbuilder = AlertDialogBuilder.create...(); alertdialogbuilder.setCanceledOnTouchOutside(false);//点击外围不消失 alertdialogbuilder.show...View.OnClickListener() { @Override public void onClick(View v) { alertdialogbuilder.dismiss
final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); alertDialogBuilder.setTitle...("POINT 4"); alertDialogBuilder.setMessage("Do not write in calling appllication.");...alertDialogBuilder.setPositiveButton("OK", new DialogInterface.OnClickListener() {...DialogInterface dialog, int which) { callFileActivity(); } }); alertDialogBuilder.create
日记的删除 在这里我为了防止日记被误删,就做了一个对话框,当点击删除按钮的时候,便会跳出这个对话框询问用户是否真的要删除该日记 AlertDialog.Builder alertDialogBuilder...= new AlertDialog.Builder(this); alertDialogBuilder.setMessage("确定要删除该日记吗?").
领取专属 10元无门槛券
手把手带您无忧上云