`

android AlertDialog标准化

阅读更多
	  public void createConfirmDialog(Activity activity, String message){
		  AlertDialog.Builder alert = new AlertDialog.Builder(activity);
			alert.setTitle(message)
					.setPositiveButton(activity.getResources().getString(R.string.call),
							new DialogInterface.OnClickListener() {
								public void onClick(DialogInterface dialog,
										int which) {
									
								}
							})
					.setNegativeButton(activity.getResources().getString(R.string.cancel),
							new DialogInterface.OnClickListener() {
								public void onClick(DialogInterface dialog,
										int which) {
									
								}
							});

			alert.create().show();
	  }

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics