Git Product home page Git Product logo

Comments (13)

youlookwhat avatar youlookwhat commented on May 30, 2024

GridItemDecoration里为了友好支持加载更多,默认设置了最后一个item没有分割线,你试试 setEndFromSize(0),看是否解决。

from byrecyclerview.

zhaoxuan365 avatar zhaoxuan365 commented on May 30, 2024

GridItemDecoration里为了友好支持加载更多,默认设置了最后一个item没有分割线,你试试 setEndFromSize(0),看是否解决。

可能是我之前的表述不清楚,让你误解了。我重新描述一下:当RecyclerView使用GridLayoutManager,且GridLayoutManager的方向设置为Horizontal时,使用GridItemDecoration设置分割线,列表中的第一个和第二个条目的高度和后面的不一样,并且没有对齐。PS:setEndFromSize(0)不能解决这个问题。
微信截图_20210511102017

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

好 我看看

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

是的,我没处理GridLayoutManager横向的情况,线性的横向处理了,我抽时间完善一下。紧急的话你先自己在布局里按位置处理一下哈

from byrecyclerview.

zhaoxuan365 avatar zhaoxuan365 commented on May 30, 2024

好的。不着急,我先自己试着解决一下,等你完善后再对比一下

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

恩恩 好

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

已完成一半,好稍等

from byrecyclerview.

zhaoxuan365 avatar zhaoxuan365 commented on May 30, 2024

嗯嗯,不着急

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

已经解决,简单点说是在设置纵向的 上下左右间距的地方,横向的改成 左右上下。你那边是这样吗

from byrecyclerview.

zhaoxuan365 avatar zhaoxuan365 commented on May 30, 2024

非常感谢,作者辛苦。--|| 我还没来得及自己试着解决 --||

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

直接依赖 1.1.6 就好😁

from byrecyclerview.

zhaoxuan365 avatar zhaoxuan365 commented on May 30, 2024

嗯嗯

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

下关了哈,有问题再开。

from byrecyclerview.

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.