`
hypercube1024
  • 浏览: 83657 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

使用自定义Dialog

阅读更多
使用setView方法弹出自定义Dialog
final View saveFolder = inflater.inflate(R.layout.save_folder, null);
new AlertDialog.Builder(this).setTitle(R.string.add_folder_title)
.setView(saveFolder).setPositiveButton(
							R.string.positive_button_text,
							new DialogInterface.OnClickListener() {
								public void onClick(DialogInterface dialog,
										int id) {
    .......
									dialog.cancel();
								}
							}).setNegativeButton(R.string.negative_button_text,
							new DialogInterface.OnClickListener() {
								public void onClick(DialogInterface dialog,
										int id) {
									dialog.cancel();
								}
							}).create().show();
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics