Skip to content

在recyclerview中重新刷新数据时setCount数量不变或是错乱 #3

Description

@KXwonderful

首页界面viewpager中有3个fragment,fragment中用recyclerView显示商品列表,当在购物车编辑购买数量后用 EventBus 通知首页刷新商品列表,打log发现数据有改变,但 AnimShopButton中的数量确没变化,一开始还以为是 notifyDataSetChanged() 无效,但测试发现界面刷新了,但 AnimShopButton 数量还是没改变。

之前还碰到过,在商品列表中添加或减少购买数量,其他商品的 AnimShopButton 数量跟着改变,数字错乱

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions