Git Product home page Git Product logo

Comments (10)

YoKeyword avatar YoKeyword commented on September 8, 2024

调用下面的方法
headerAdapter.notifyDataSetChanged();

from indexablerecyclerview.

wii-huxley avatar wii-huxley commented on September 8, 2024

数据传不进去,调用了也没有什么用吧

from indexablerecyclerview.

YoKeyword avatar YoKeyword commented on September 8, 2024

没明白, 你可以看下PickCityActivity,“定位中” 刷新数据的 代码

from indexablerecyclerview.

wii-huxley avatar wii-huxley commented on September 8, 2024

删除不行吧

from indexablerecyclerview.

YoKeyword avatar YoKeyword commented on September 8, 2024

删除header内的数据可以,移除整个headerView的功能todo

from indexablerecyclerview.

wii-huxley avatar wii-huxley commented on September 8, 2024

调用data.get(position).setName(),再调用notifyDataSetChanged()可以更新,
应该时因为对象引用的关联吧,
但是data.clear()(或者data.add(obj)),再调用notifyDataSetChanged()并不能更新

from indexablerecyclerview.

YoKeyword avatar YoKeyword commented on September 8, 2024

嗯 确实有这个问题,稍后会解决这个问题 感谢反馈啦

from indexablerecyclerview.

wii-huxley avatar wii-huxley commented on September 8, 2024

还有一个问题,IndexableLayout onDataChanged()中post()方法不能百分之百执行
http://blog.5ibc.net/p/28158.html
为什么不使用post(),数据更新就会有问题?

from indexablerecyclerview.

YoKeyword avatar YoKeyword commented on September 8, 2024

感谢 post的问题 现在添加了安全的getSafeHandler()的post方式 :)
文章里详细的从源码分析了原因

from indexablerecyclerview.

YoKeyword avatar YoKeyword commented on September 8, 2024

已经push了 1.0.5

添加
indexableLayout.removeHeaderAdapter(), indexableLayout.removeFooterAdapter();

header/footerAdapter.addData(), header/footerAdapter.removeData()

addData(int position, data)等方法 因当前代码结构实现较繁琐,回头有空再更新~

from indexablerecyclerview.

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.