We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
滑动新闻列表头条,按住上下滑动时,报错了 10-12 17:39:55.368 13164-13164/com.lauren.simplenews E/AndroidRuntime: FATAL EXCEPTION: main Process: com.lauren.simplenews, PID: 13164 java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 7(offset:7).state:51 at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4405) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363)
The text was updated successfully, but these errors were encountered:
我也遇到了同样的问题 在新闻列表模块,下拉刷新,在刷新还未结束时,迅速向上滑动便会出现这个问题。 java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{2e4d603c position=1 id=-1, oldPos=-1, pLpos:-1 no parent}
我自己做项目时,也遇到了同样的问题,还未解决,期待作者可以解决一下。
Sorry, something went wrong.
@Override public void onRefresh() { pageIndex = 0; // if(mData != null) { // mData.clear(); // } mNewsPresenter.loadNews(mType, pageIndex); }
把注释的代码去掉,就不会Crash了
No branches or pull requests
滑动新闻列表头条,按住上下滑动时,报错了
10-12 17:39:55.368 13164-13164/com.lauren.simplenews E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.lauren.simplenews, PID: 13164
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 7(offset:7).state:51
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4405)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363)
The text was updated successfully, but these errors were encountered: