Giving Scroll zur Vollansicht mit darin enthaltener Recycler-Ansicht
Ich möchte einen Bildschirm implementieren, auf dem ich oben und unten ein Layout habe. Ich habe eine Recycler-Ansicht wie diese:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:fab="http://schemas.android.com/apk/res-auto"
tools:context="com.app.InstHomeDir.Fragments.PendingDocument"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/main_bg"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="15dp"
>
<android.support.v7.widget.CardView
android:background="@color/white"
app:cardElevation="2dp"
app:cardCornerRadius="2dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.app.InstHomeDir.Util.Roboto_Edit_Text_Bold
android:textColor="@color/bl2d2d2d"
android:padding="5dp"
android:text="DOCUMENT LIST"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.app.InstHomeDir.Util.Roboto_EditText
android:padding="5dp"
android:textColor="#6f6f6f"
android:layout_marginTop="5dp"
android:layout_width="wrap_content"
android:textSize="12sp"
android:text="@string/Pending_Doc"
android:layout_height="wrap_content"/>
</LinearLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_penddoc"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_anchor="@id/toolbar_layout"
app:layout_anchorGravity="bottom|center"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</RelativeLayout>
Nun möchte ich die gesamte Ansicht scrollen, aber wenn ich das tue, ist das Scrollen des Bildschirms nicht reibungslos, da zwei Bildläufe auf dem Bildschirm verfügbar sind. Wie löse ich dieses Problem? Kann mir jemand helfen