Предоставление прокрутки в полный вид с видом переработчика внутри него
Я хочу добавить экран, на котором у меня есть макет сверху и снизу, чтобы у меня был вид рециркулятора, подобный этому:
<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>
Теперь я хочу дать представление прокрутки всему представлению, но когда я это делаю, прокрутка экрана не является плавной, так как на экране доступны две прокрутки, как мне решить эту проблему? Может кто-нибудь мне помочь?