更改Adapter中onCreateViewHolder的打气方式为:
LayoutInflater.from(Context).inflate(LayoutResId,parent, false);
更改Adapter中onCreateViewHolder的打气方式为:
LayoutInflater.from(Context).inflate(LayoutResId,parent, false);
本文标题:Recyclerview的item填满父控件无效的解决方案
本文链接:https://www.haomeiwen.com/subject/mykfbxtx.html
网友评论