关于Recyclerview资源id使用相同时,fragment回掉onActivityResult会报错问题
wwwiiivip opened this issue · 3 comments
wwwiiivip commented
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没有数据,如果不使用刷新控件可以解决该问题。
wwwiiivip commented
已找出问题,谢谢
tancolo commented
recycleview 的id只能是定死的 swipt_targe ??
wwwiiivip commented
对,只能是定死的,这点很尴尬,修改了刷新加载就会失效
发自网易邮箱大师
在2017年03月28日 15:20,tancolo 写道:
recycleview 的id只能是定死的 swipt_targe ??
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.