You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
java.lang.IllegalStateException: Cannot change whether this adapter has stable IDs while the adapter has registered observers.
at android.support.v7.widget.RecyclerView$Adapter.setHasStableIds(RecyclerView.java:5281)
at com.alibaba.android.vlayout.DelegateAdapter.addAdapters(DelegateAdapter.java:313)
at com.alibaba.android.vlayout.DelegateAdapter.addAdapters(DelegateAdapter.java:323)
at com.alibaba.android.vlayout.example.VLayoutActivity$13.run(VLayoutActivity.java:500)
求这种场景的使用姿势,谢谢~
The text was updated successfully, but these errors were encountered:
假设目前有这样的需求:
列表和头部的数据分开,头部数据请求优先于列表回来,为了不阻碍展示,先创建了头部相关的 adapters 并且 setAdapters,等列表数据回来以后再 addAdapters。
把 examples 里面 VLayoutActivity 的 StaggeredGridLayoutHelper adapter 通过 addAdapters 加入,会出现下面的问题:
The text was updated successfully, but these errors were encountered: