美文网首页
LayoutInflater.from(this).inflat

LayoutInflater.from(this).inflat

作者: NullPointe_8e82 | 来源:发表于2020-04-15 22:50 被阅读0次

LayoutInflater.from(this).inflate(R.layout.title_bar,null,false);

布局id,父布局,是否addview到父布局

当父布局为null第三个参数可以不传,默认false

当父布局不为null,第三个参数false,表示取用父布局属性

当父布局不为null,第三个参数true,则addview到父布局上

相关文章

网友评论

      本文标题:LayoutInflater.from(this).inflat

      本文链接:https://www.haomeiwen.com/subject/mbhkvhtx.html