在项目里面,运行起来时候页面可以加载出来,当切换别的Fragment时候再回来时,加载不出页面,报出错误:No adapter attached; skipping layout。
只要在onCreateView里面再设置一遍setLayoutManager 、setAdapter就可以了。