Inconsistency detected in RecyclerView, How to change contents of RecyclerView while scrolling

前端 未结 26 2555
借酒劲吻你
借酒劲吻你 2020-12-01 00:59

I\'m using RecyclerView to display name of the items. My row contains single TextView. Item names are stored in List mItemList<

26条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 01:42

    In my case the problem was me.

    My setup is a Recyclerview, Adapter & Cursor/Loader mechanism.

    At one point in my App the loader is destroyed.

    supportLoaderManager.destroyLoader(LOADER_ID_EVENTS)

    I was expecting the Recyclerview would display an empty list since i just deleted their datasource. What makes the error finding more complicated was, that the list was visible and the well known Exception occured only on a fling/scroll/animation.

    That cost me a few hrs. :)

提交回复
热议问题