Aspsine/SwipeToLoadLayout

关于Recyclerview资源id使用相同时,fragment回掉onActivityResult会报错问题

wwwiiivip opened this issue · 3 comments

Caused by: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.support.v7.widget.RecyclerView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/swipe_target. Make sure other views do not use the same id.

我尝试更换了recyclerview的资源id,导致recyclerview没有数据,如果不使用刷新控件可以解决该问题。

已找出问题,谢谢

recycleview 的id只能是定死的 swipt_targe ??