Android RecycleView不';我不能把所有的屏幕都装上

Android RecycleView不';我不能把所有的屏幕都装上,android,Android,我正在尝试使用RecycleView制作Youtube提要。除了尺寸以外,一切都很好 recycleView不想适合所有屏幕,即使我使用match\u parent 如果您需要布局的代码,请告诉我 RecycleView项目XML: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/parent_relativeLayout" android:layout_w

我正在尝试使用RecycleView制作Youtube提要。除了尺寸以外,一切都很好

recycleView不想适合所有屏幕,即使我使用match\u parent

如果您需要布局的代码,请告诉我

RecycleView项目XML:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/parent_relativeLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:clickable="true"
    card_view:cardBackgroundColor="@android:color/black"
    card_view:cardCornerRadius="5dp"
    card_view:cardElevation="0dp"
    card_view:cardPreventCornerOverlap="false"
    card_view:cardUseCompatPadding="true">


    <com.google.android.youtube.player.YouTubeThumbnailView
        android:id="@+id/youtube_thumbnail"
        android:layout_width="match_parent"
        android:layout_height="250dp"
        android:scaleType="centerCrop"
        android:visibility="visible" />

    <LinearLayout
        android:id="@+id/relativeLayout_over_youtube_thumbnail"
        android:layout_width="match_parent"
        android:layout_height="250dp"
        android:visibility="visible">

        <ImageView
            android:id="@+id/btnYoutube_player"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerInside"
            android:src="@drawable/youtubeplay" />

    </LinearLayout>
</android.support.v7.widget.CardView>

RecycleView布局XML:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.franballesteros.rallyecat.FragmentMedia">

<!-- TODO: Update blank fragment layout -->
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <android.support.v7.widget.RecyclerView
        android:id="@+id/llista"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</LinearLayout>


谢谢

布局的代码会很好,你能把xml代码贴在这里吗好的,我用代码更新了帖子。