エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
"Avoid passing null as the view root" warning when inflating view for use by AlertDialog
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
"Avoid passing null as the view root" warning when inflating view for use by AlertDialog
I get the lint warning, Avoid passing null as the view root when inflating views with null as par... I get the lint warning, Avoid passing null as the view root when inflating views with null as parent, like: LayoutInflater.from(context).inflate(R.layout.dialog_edit, null); However, the view is to be used as the content of an AlertDialog, using setView on AlertDialog.Builder, so I don't know what should be passed as the parent. What do you think the parent should be in this case?



2015/09/08 リンク