Open jianhui1012 opened 8 years ago
mHeaderAndFooterRecyclerViewAdapter.putLayoutManager(getLayoutManager()); 在 setAdapter里面增加这个方法 修改HeaderAndFooterRecyclerViewAdapter方法里面的onBindViewHolder里面的 StaggeredGridLayoutManager.LayoutParams params = new StaggeredGridLayoutManager.LayoutParams( StaggeredGridLayoutManager.LayoutParams.MATCH_PARENT, StaggeredGridLayoutManager.LayoutParams.MATCH_PARENT); 改为 StaggeredGridLayoutManager.LayoutParams params = new StaggeredGridLayoutManager.LayoutParams( StaggeredGridLayoutManager.LayoutParams.MATCH_PARENT, StaggeredGridLayoutManager.LayoutParams.WRAP_CONTENT);
Thank you 去试下。。
使用RecyclerViewFinal+StaggeredGridLayoutManager设置两列与垂直 上拉加载更多的footview是跟在第一列或者第二列的最新item后面