Невозможно прокрутить просмотр содержимого в приложении Android - PullRequest
0 голосов
/ 12 июня 2019

Проблема в том, что я не могу прокрутить содержимое, созданное мной в виде повторного макета и гнезда карт в нем, в качестве повторяющегося макета для адаптера, но прокрутка не работает с помощью Коснитесь , но когда я нажимаю на клавиатурусодержимое ключа прокручивается

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/bgSec"
        tools:context=".MainActivity">
    <android.support.v4.widget.DrawerLayout
            android:id="@+id/drawer_layout"
            android:elevation="50dp"
            android:layout_width="match_parent"
            android:fitsSystemWindows="true"
            android:layout_height="match_parent">
        <include layout="@layout/app_bar"
                 android:layout_height="match_parent"
                 android:layout_width="match_parent"/>
        <android.support.design.widget.NavigationView
                android:id="@+id/nav_view"
                android:layout_gravity="start"
                android:fitsSystemWindows="true"
                app:headerLayout="@layout/header_layout"
                app:menu="@menu/side_menu"
                android:layout_width="wrap_content"
                android:layout_height="match_parent">
            <LinearLayout
                    android:layout_width="match_parent"
                    android:orientation="vertical"
                    android:layout_gravity="bottom"
                    android:background="#000"
                    android:layout_height="150dp">
            </LinearLayout>
        </android.support.design.widget.NavigationView>
    </android.support.v4.widget.DrawerLayout>

    <android.support.v7.widget.RecyclerView
            android:id="@+id/recycler_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent" android:layout_alignParentStart="true"
            android:layout_alignParentTop="true"/>
</RelativeLayout>

, а card_view.xml ниже

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content">
    <android.support.v7.widget.CardView
            android:id="@+id/card_view"
            android:background="@color/bgWhite"
            app:cardElevation="5dp"
            android:layout_width="match_parent"
            android:layout_margin="10dp"
            android:layout_height="300dp">

        <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="None"
                android:id="@+id/category_name"/>

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

Ожидается прокрутка на ощупь, но вместо прокрутки клавиша со стрелкой вниз

...