xuexiangjys / XUI

💍A simple and elegant Android native UI framework, free your hands! (一个简洁而优雅的Android原生UI框架,解放你的双手!)

Home Page:https://xuexiangjys.github.io/XUI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用WidgetUtils.initGridRecyclerView初始化RecyclerView,指定spanCount每行的item数量是对的,但分割线不对,分割线被固定为3个一组。

aystshen opened this issue · comments

image

WidgetUtils.initGridRecyclerView(mItemsRv, 12, 1, getResources().getColor(R.color.gray));
for (int i=0; i<12; i++) {
    mNarItems.add(0.0f);
}
mNarItemAdapter = new NarItemAdapter();
mNarItemAdapter.setList(mNarItems);
mItemsRv.setAdapter(mNarItemAdapter);
commented

com.xuexiang.xui.adapter.recyclerview.GridDividerItemDecoration 第104行的问题
固定写成了 int column = (position + 1) % 3;

是的,我已下载源码本地修改好了。

已修改
737996d