魅力程序猿

  • 首页
  • Java
  • Android
  • APP
    • 扑克计分器
    • Video Wallpaper
  • 联系我
  • 关于我
  • 资助
道子
向阳而生
  1. 首页
  2. Android
  3. 正文

RecyclerView IndexOutOfBoundsException: Inconsistency detected. Invalid item position

2016年3月22日 13735点热度 0人点赞 6条评论

RecyclerView

notifyItemRangeChanged(0, pChannels.size());

出现下面异常:

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{f1265e3 position=4 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no parent}

暂时解决方案:

notifyDataSetChanged();
标签: RecyclerView IndexOutOfBoundsException
最后更新:2016年3月22日

daozi

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • Anjii

    Hot damn, lonokig pretty useful buddy.

    2016年12月18日
    回复
  • preciousupshot465.sosblogs.com

    Hi! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard work due
    to no back up. Do you have any solutions to stop hackers?

    2017年5月27日
    回复
  • http://adelineNocella.jimdo.com/

    We are a bunch of volunteers and opening a brand new scheme in our community.
    Your site provided us with useful info to work on. You have
    performed a formidable job and our entire group will likely be thankful to you.

    2017年5月28日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复
    搜索
    联系方式

    QQ群:179730949
    QQ群:114559024
    欢迎您加入Android大家庭
    本人QQ:136049925

    赐我一丝安慰
    给我一点鼓励

    COPYRIGHT © 2023 魅力程序猿. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    豫ICP备15000477号