RecyclerView itme 填不满

 RecyclerView 常出现itme 使用权重或者满屏属性 依然不能沾满的情况  可以检查adapter中的这个位置。

将:   LayoutInflater.from(context).inflate(R.layout.home_page_itme, null);
改成: LayoutInflater.from(context).inflate(R.layout.home_page_itme, parent,false);

猜你喜欢

转载自blog.csdn.net/qq_36355271/article/details/87789276