arjinmc/RecyclerViewDecoration

给网格recyclerView添加头部后,分割线就出现问题

Closed this issue · 1 comments

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);

adapter用的是brvah库,出现的问题是竖线不显示,横线显示有问题
a

GridLayoutManager 模式有些问题,后面会重新调整实现方式,暂时不用这个吧。