Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wwwiiivip opened this issue Mar 21, 2017 · 3 comments

Comments

@wwwiiivip
Copy link

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
Copy link
Author

已找出问题,谢谢

@tancolo
Copy link

tancolo commented Mar 28, 2017

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

@wwwiiivip
Copy link
Author

wwwiiivip commented Mar 28, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants