当以null
作为parent
放大视图时,我得到了lint警告,Avoid passing null as the view root
,比如:
LayoutInflater.from(context).inflate(R.layout.dialog_edit, null);
但是,视图将用作AlertDialog
的内容,在AlertDialog.Builder
上使用setView
,所以我不知道应该传递什么作为parent
.
在这种情况下,你认为parent
应该是多少?