RecyclerView, ListView 只显示一行内容 问题解决

Adapter 中的data有多行,但是RecyclerView只显示一行。 

原因出在item的layout xml, 用了自动生成的RelativeLayout, 她的默认高度height属性是match_parent,占满了整个屏,改成wrap_content,就能显示所有行的内容了。

原文地址:https://www.cnblogs.com/yidan621/p/5658924.html