虽然可以弹出自定义布局的窗口,但是我想在窗口弹出前,对布局的数据进行初始化,就是把想要的数据加载到布局上
怎么做?
默认弹出来的是布局前一丝不变的窗口,这不是我想要的效果
LayoutInflater inflater =getLayoutInflater();
View layout=inflater.inflate(R.layout.filedialog,(ViewGroup)findViewById(R.id.button1));
new AlertDialog.Builder(this).setTitle("请选择QQ文本").setView(layout).setPositiveButton("确定", null).show();我想在filedialog临时加载一些数据供选择