inflate(layout,null):layout根对象的width,height全部替换为wrap
inflate(layout,root,false):返回按照layout直接展开的view,root没啥用途
inflate(layout,root,true),返回root作为根布局的view,layout作为其子view
本文深入探讨了Android中布局inflate方法的使用,包括inflate(layout,null)、inflate(layout,root,false)和inflate(layout,root,true)的详细解释及应用场景。
inflate(layout,null):layout根对象的width,height全部替换为wrap
inflate(layout,root,false):返回按照layout直接展开的view,root没啥用途
inflate(layout,root,true),返回root作为根布局的view,layout作为其子view

被折叠的 条评论
为什么被折叠?