Android下RecyclerView使用StaggeredGridLayoutManager报错NullPointerException
一个ViewPager+Fragment嵌入RecyclerView的结构,进入下层activity返回的时候切换页面就会崩溃,报错信息如下java.lang.NullPointerExceptionatandroidx.recyclerview.widget.StaggeredGridLayoutManager.recycleFromEnd(StaggeredGridLayoutManager.java:1954)atandroidx.recyclerview.widget.StaggeredGridLayoutM...