0
我正在做一个简单的布局,但我发现RecyclerView
无法占据全高,但它包裹了其内容的高度。RecyclerView不占用全高
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/gridList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/bg_list" />
</LinearLayout>
结构非常简单。我错过了什么让RecyclerView
填满整个屏幕?
你能告诉我们图像吗? –