出现这样的问题 很可能是
RecyclerView没有设置LayoutManager,如下就OK了
recyclerView.setLayoutManager(new LinearLayoutManager(this.getContext()));