最佳答案
我得到的线头警告,Avoid passing null as the view root时,充气视图 null作为 parent,像:
LayoutInflater.from(context).inflate(R.layout.dialog_edit, null);
然而,这个视图将被用作 AlertDialog的内容,在 AlertDialog.Builder上使用 setView,所以我不知道应该传递什么作为 parent。
你认为 parent在这种情况下应该是什么?