khirulnizam

Android dialog box

Nov 12th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. //**********Android dialog box
  2. AlertDialog.Builder builder1 = new AlertDialog.Builder(this);
  3. builder1.setTitle("Peribahasa KERUL");
  4. builder1.setMessage("Cari Peribahasa: "+n1);
  5. builder1.setCancelable(false);
  6. builder1.setPositiveButton("ok", new DialogInterface.OnClickListener() {
  7.     @Override
  8.     public void onClick(DialogInterface dialog, int which) {
  9.         dialog.cancel();
  10.     }
  11. }).create().show();
Advertisement
Add Comment
Please, Sign In to add comment