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

notifyItemRemoved(position);会有闪烁 #23

Open
hellozengms opened this issue Jul 20, 2018 · 1 comment
Open

notifyItemRemoved(position);会有闪烁 #23

hellozengms opened this issue Jul 20, 2018 · 1 comment

Comments

@hellozengms
Copy link

我做删除时, notifyItemRemoved(position);会有闪烁,是什么原因呢,谢谢

@baihuahuade
Copy link

将 PagerGridLayoutManager 中的 预存储View 这段代码注释掉就可以了
// if (mOffsetX == 0 && mOffsetY == 0) {
// // 预存储View
// for (int i = 0; i < mOnePageSize; i++) {
// if (i >= getItemCount()) break; // 防止数据过少时导致数组越界异常
// View view = recycler.getViewForPosition(i);
// addView(view);
// measureChildWithMargins(view, mWidthUsed, mHeightUsed);
// }
// }

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