xuexiangjys / XUI

💍A simple and elegant Android native UI framework, free your hands! (一个简洁而优雅的Android原生UI框架,解放你的双手!)
https://xuexiangjys.github.io/XUI/
Apache License 2.0
4.85k stars 835 forks source link

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

Closed aystshen closed 2 years ago

aystshen commented 2 years ago

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);
hashforu commented 2 years ago

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

aystshen commented 2 years ago

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

xuexiangjys commented 2 years ago

已修改 737996d930989a8c05312c1aa61b370d6a2c7023