标签:
1 AlertDialog.Builder dialod = new AlertDialog.Builder(this); 2 dialod.setTitle("这是一个的会话框"); 3 dialod.setMessage("HAHAHAHAHHAHAH"); 4 dialod.setCancelable(false); 5 dialod.setPositiveButton("OK", new OnClickListener() { 6 7 @Override 8 public void onClick(DialogInterface dialog, int which) { 9 10 11 } 12 }); 13 dialod.setNegativeButton("Cancle", new OnClickListener() { 14 15 @Override 16 public void onClick(DialogInterface dialog, int which) { 17 18 19 } 20 }); 21 22 dialod.show();
标签:
原文地址:http://www.cnblogs.com/zhangbaowei/p/4648078.html