View 常见的两种布局方式
View 常见的两种布局方式View view = LayoutInflater.from(context).inflate(R.layout.view_item.., parent, false);View view =View.inflate(context,R.layout.view_item..,null);1. 查看源码,可知 View.inflate 是对 LayoutInflater.
原创
2016-11-16 10:17:37 ·
344 阅读 ·
0 评论