Giter Site home page Giter Site logo

Comments (5)

shenbengit avatar shenbengit commented on May 24, 2024

请展示实现效果或相关代码。未能明白您的意思。

from pagergridlayoutmanager.

Wesley254619 avatar Wesley254619 commented on May 24, 2024

场景是这样的,类似于手机应用市场里面的 App 批量更新,我们做的是两行两列,一页展示四个,然后左右滑动翻页。点击更新后需要在 item 上展示下载进度。现在问题是这样的,纯静态展示的情况下,可以左右滑动分页。但是在调用 notifyItemRangeChanged 或是 notifyDataSetChanged 去刷新item上的进度展示,就没办法左右滑动了,只能卡在当前页

from pagergridlayoutmanager.

Wesley254619 avatar Wesley254619 commented on May 24, 2024
1640494755734539.mp4

from pagergridlayoutmanager.

shenbengit avatar shenbengit commented on May 24, 2024

是存在这个问题。调用Adapter中notifyXXX()相关方法时会间接调用LayoutManager.onLayoutChildren(),而我在onLayoutChildren()处理的方式为绘制上次页的且总以左上(0,0)开始布局,没有记录上次滑动的位置。后面会修复这个问题。

from pagergridlayoutmanager.

shenbengit avatar shenbengit commented on May 24, 2024

试下v1.1.3

from pagergridlayoutmanager.

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.