美文网首页
recyclerview的layoutManager问题

recyclerview的layoutManager问题

作者: 芒鞋胜马 | 来源:发表于2018-02-28 13:55 被阅读0次

02-28 13:52:05.248 24311-24311/com.pukun.golf W/System.err: java.lang.IllegalArgumentException: LayoutManager android.support.v7.widget.LinearLayoutManager@d5ff4e9 is already attached to a RecyclerView: android.support.v7.widget.RecyclerView{3b0756e VFED..... ......I. 0,0-0,0 #7f10070f app:id/recycler_top}

同一个页面有多个recyclerview时 LayoutManager 不能复用,只有重新new出来才可以用。

相关文章

网友评论

      本文标题:recyclerview的layoutManager问题

      本文链接:https://www.haomeiwen.com/subject/xpibxftx.html