给网格recyclerView添加头部后,分割线就出现问题
Closed this issue · 1 comments
StevenZhang1125 commented
rv.setLayoutManager(new GridLayoutManager(getContext(), 2));
adapter = new Adapter();
rv.addItemDecoration(new RecyclerViewItemDecoration.Builder(getActivity())
.color("#ebebeb")
.thickness(6)
.create());
adapter.addHeaderView(getHeadView(rv, 2));
rv.setAdapter(adapter);
arjinmc commented
GridLayoutManager 模式有些问题,后面会重新调整实现方式,暂时不用这个吧。