dialog = new AlertDialog.Builder(context).create();
<span style="color:#ff6666;">dialog.setView(LayoutInflater.from(this).inflate(R.layout.custom_alertdialog, null)); //加入这段话可解决</span>
dialog.show();
dialog.getWindow().setContentView(R.layout.custom_alertdialog);
AlertDialog自定义view中edittext无法弹出问题
最新推荐文章于 2021-11-25 15:10:14 发布