You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public void setGridSpanLookUp(GridLayoutManager layoutManager, final GridLayoutManager.SpanSizeLookup lookup) {
layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { @OverRide
public int getSpanSize(int position) {
if (adapter != null) {
if (adapter.isHeaderOrFooter(position)) return 1; //注意这里
您好,非常感谢作者的开源这个控件我个人觉得非常好用,但是今天使用的时候发现一个问题,特来请求修复。
在XRecyclerView的代码344行中。
public void setGridSpanLookUp(GridLayoutManager layoutManager, final GridLayoutManager.SpanSizeLookup lookup) {
layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@OverRide
public int getSpanSize(int position) {
if (adapter != null) {
if (adapter.isHeaderOrFooter(position)) return 1; //注意这里
//中的
而是返回layoutManager.getSpanCount() ,返回1 导致GridLayout布局下底部占用为1个item无法占满。
应该是作者大大粗心了,因为第321行中的方法就没有写错。
The text was updated successfully, but these errors were encountered: