Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

局部刷新当带有payload参数时没重写。 #867

Closed
XiaoSeee opened this issue Mar 15, 2017 · 2 comments
Closed

局部刷新当带有payload参数时没重写。 #867

XiaoSeee opened this issue Mar 15, 2017 · 2 comments

Comments

@XiaoSeee
Copy link

如题,当使用Adapter.notifyItemChanged(position, payload) 带上 payload 参数时。会调用

public void onBindViewHolder(VH holder, int position, List<Object> payloads)

从而可以实现只刷新这个 Item 中的某个控件的作用。
我们的库里面没有对这个方法重新,只重写了

public abstract void onBindViewHolder(VH holder, int position);

需要刷新整个 Item 不太方便。需要自己在 Adapter 里面重新,对于加了 Header 了的,处理 position 还容易出错,可以建议直接加到你们库里面去。

@CymChad
Copy link
Owner

CymChad commented Mar 16, 2017

恩,好的,感谢建议,后续我们会进行改进。

@CymChad
Copy link
Owner

CymChad commented Mar 16, 2017

#500 待优化

@CymChad CymChad closed this as completed Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants