Giter VIP home page Giter VIP logo

Comments (4)

fondesa avatar fondesa commented on May 24, 2024

I'm already aware of this bug.
It happens when you use a GridLayoutManager with more than two columns and a divider size bigger than 2dp.

The problem here is the limitation of the Android API which computes the offset only of the current item ItemDecoration.getItemOffsets instead of the offsets of all the visible items.

The fix is not easy and it won't cover some cases (e.g. balancing an item offset of 4 items where the 2nd item hasn't a divider) since the item offset should be balanced between the items to render the same items width.

I've already tried to support this case in the version 3.2.0 without success.

I'll try again to fix it before releasing the version 3.2.0 but I'm not sure I'll be able to make it working. If you have some idea of how to fix it, the contributions are well accepted and since the 3.2.0 is in development we can directly fix it there.

from recycler-view-divider.

fondesa avatar fondesa commented on May 24, 2024

@AcgnCodeMonkey I've found a way to do it but it requires a huge amount of work to support it. So I'm going to work on the 3.2.0 release without this feature and then I'll try to add this feature after. I still don't know if I can manage to develop this feature alone since it requires to auto-balance dinamically all the offsets.

from recycler-view-divider.

fondesa avatar fondesa commented on May 24, 2024

Same issue: #106

from recycler-view-divider.

fondesa avatar fondesa commented on May 24, 2024

Fixed in the version 3.3.0 (only using the new API, not the legacy one).

from recycler-view-divider.

Related Issues (20)

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.