Git Product home page Git Product logo

Comments (5)

youlookwhat avatar youlookwhat commented on May 30, 2024

是的,有这样的情况,我刚改了一下,可以达到设置marginTop时item悬浮下移,但是这样也会有一个问题,就是推出去的悬浮item会盖住RecyclerView上面的布局,这样应该也是达不到要求的。

如果你只有一个悬浮的item那就是可以的

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

如果你是只有一个悬浮的item,这个item不会被推走,我可以修改了提交下

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

比较好的方式是通过第一个可见的position,然后控制悬浮布局的内容了

from byrecyclerview.

Greathfs avatar Greathfs commented on May 30, 2024

目前的确是只有一个item,别为了我这个改动了不必要的代码,最好弄一个通用的,可以设置四周的间距啥的

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 30, 2024

只有一个Item,建议直接布局外层搞一个layout和悬浮的layout一致,然后控制它隐藏显示就好了哦

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.