最近写的界面中,发现如果RecyclerView中的item是LinearLayout时,其属性width设置为match_parent或fill_parent都不起作用,实际效果是wrap_content,不知道是什么原因,目前是把根布局改为RelativeLayout,这样可以正常显示了。