drakeet / MultiType

Flexible multiple types for Android RecyclerView.
Apache License 2.0
5.76k stars 751 forks source link

如何实现单个binder内的数据刷新? #150

Closed chenzixue closed 7 years ago

drakeet commented 7 years ago

改变 adapter 绑定的 items 内的对应数据,然后调用 adapter.notifyDataSetChanged().

Greathfs commented 7 years ago

我只想更新这一块数据列表,adapter.notifyDataSetChanged().这个不是把整个数据列表全更新一遍吗?

drakeet commented 7 years ago

@Greathfs 那你就使用 adapter.notifyItemRangeChanged(positionStart, itemCount),这不是很明显的 API 吗?