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

我这样做 item局部刷新 发现布局还是会复用 出现状态重复显示的ui #63

Open
shouhu opened this issue Jan 16, 2018 · 1 comment

Comments

@shouhu
Copy link

shouhu commented Jan 16, 2018

            return new SetDefaultCardListAdapter(mContext, new SetDefaultCardListAdapter.CardItemSelCallback() {
                @Override
                public void onItemCardSelClick(int position) {
                    LogUtils.i(TAG,"position " + position);
                    for (int i = 0; i < data.size(); i++) {
                        if (i == position) {
                            data.get(i).setSel(true);
                        } else {
                            data.get(i).setSel(false);
                        }
                    }
                    idRecyclerview.getAdapter().notifyDataSetChanged();
                }
            });
@kaleai
Copy link
Owner

kaleai commented Dec 13, 2018

可以试试调用setData来看看

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