Giter Club home page Giter Club logo

recyclerviewdecoration's People

Contributors

arjinmc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

recyclerviewdecoration's Issues

bug与建议

1.在draw时,int childrentCount = parent.getChildCount();需要处理if (childrentCount == 0) return;
2.Grid模式不支持设置水平、竖直space高度不同。

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

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

How to add bottom line?

I'm using.
mRecyclerView.addItemDecoration(new RecyclerViewItemDecoration(RecyclerViewItemDecoration.MODE_HORIZONTAL, Color.RED,1,0,0));
,but no bottom line. please,How to add bttom line?

recyclerview高度问题

recyclerview添加了分割线 ,好像分隔线的高度并没有计算到recyclerview的高度里边去

thickness 这个值 能<= 2嘛

看源码 如果thickness 值<= 2,直接=2, 对于我的需求来说 这个2 有点大了,最好是这个值 想设置多少就是多少 不要添加条件

GridLayoutManager 时计算 offset 和 draw 的不太对

发现了 GridLayoutManager 时的2个问题,

  1. 如果GridLayoutManager spanSize 是1,计算 offset 时,最右边的空白被忽略了。
  2. 每行如果 item 不是正好填满的话,比如说每行四个,一共8个 item,并且thickness和 spacing设置的不一样,角落里的会错位,就现在例子, Common Style 里的,item 改少就能看出来了。

使用这个GridLayoutManager控制布局item的宽高问题反馈

使用这个GridLayoutManager控制布局时
当只设置gridVerticalSpacing属性或marginVertical属性时,每个item的宽度和高度都是一致的
当同时设置或仅设置gridHorizontalSpacing属性或marginHorizontal属性时,都会出现第一列和最后一列的高度比中间列的高一些,同时宽度也是第一列和最后一列的比中间的列宽一些

grid模式item宽高问题

如果间隔设置的比较大,最后一列和前面几列的宽不相同,主要是因为recyclerview宽是固定的,没个item间隔相等最后导致最后一列的item宽出现问题,设置间隔较先时不明显,但是设置比较大的时候就会很明显

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.