Open wwwiiivip opened 7 years ago
已找出问题,谢谢
recycleview 的id只能是定死的 swipt_targe ??
对,只能是定死的,这点很尴尬,修改了刷新加载就会失效
发自网易邮箱大师 在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.
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没有数据,如果不使用刷新控件可以解决该问题。