问题代码
View inflate = LayoutInflater.from(context).inflate(R.layout.home_mall_item, null);
![](https://img.haomeiwen.com/i2807337/f117ada453dfe5d8.jpg)
修改后的代码
View inflate = LayoutInflater.from(context).inflate(R.layout.home_mall_item, parent,false);
![](https://img.haomeiwen.com/i2807337/6dd163b0cdaee7cb.jpg)
问题代码
View inflate = LayoutInflater.from(context).inflate(R.layout.home_mall_item, null);
修改后的代码
View inflate = LayoutInflater.from(context).inflate(R.layout.home_mall_item, parent,false);
本文标题:adapter item横向无法填充屏幕
本文链接:https://www.haomeiwen.com/subject/kibmkhtx.html
网友评论