属于自己的Android对话框(Dialog)自定义集合

2019-12-10 19:10:58丽君

2.调用代码

LayoutInflater inflater = getLayoutInflater();
View layout = inflater.inflate(R.layout.dialog,
(ViewGroup) findViewById(R.id.dialog));

new AlertDialog.Builder(this).setTitle("自定义布局").setView(layout)
.setPositiveButton("确定", null)
.setNegativeButton("取消", null).show();

属于自己的Android对话框(Dialog)自定义集合

图7

以上就是关于自定义Android对话框(Dialog)的全部内容,希望对大家的学习有所帮助。



注:相关教程知识阅读请移步到Android开发频道。