昨天遇到的一个巨坑的Bug,就下面这个简单的布局,在约束布局中把RecyclerView的宽高都设置为match_parent,然后,然后神奇的事情发生了,RecyclerView很正常的充满了整个屏幕,但是他的item一个都显示不出来,查了半天,其他地方一点问题都没有。
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_par