父布局为ConstraintLayout时,RecyclerView不能滑到底部,最后一个item显示不全

失败方案:
1、设置成match_parent,直接铺满全屏,无法控制位置
2、在外面嵌套一个线性布局或者相对布局,设置外层布局为wrap_content,问题依旧

成功方案:
使用约束布局的正确打开方式,设置RecyclerView的layout_height = 0dp, 然后将其底部约束到父布局的底部 如下:

<androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recommendModelRecyclerView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"/>