I have Problem : RecyclerView not scrolling. Design : cover Image then RecyclerView with menu. it show RecyclerView but I cant touch to go down in it just suck I have tired to : Replace menu with RecyclerView but it make big problem and setNestedScrollingEnabled Too. any slove?
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:fitsSystemWindows="true"
tools:context=".MainActivity">
<!-- background Logo-->
<ImageView
android:background="@color/brown"
android:layout_width="match_parent"
android:layout_height="250dp"
android:src="@drawable/haneenrama"
android:contentDescription="@string/name_offical"
android:scaleType="centerCrop"
></ImageView>
<!-- RecyclerView-->
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_marginTop="250dp"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.recyclerview.widget.RecyclerView>
</androidx.core.widget.NestedScrollView>
<!--menu-->
<androidx.drawerlayout.widget.DrawerLayout
android:layout_width="match_parent"
tools:openDrawer="end"
android:layout_height="match_parent"
android:id="@+id/drawer_layout">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/toolbar"
android:background="@color/blue"
></androidx.appcompat.widget.Toolbar>
</RelativeLayout>
<com.google.android.material.navigation.NavigationView
android:id="@+id/NavigationView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@color/white"
app:itemTextColor="@color/black"
app:itemIconTint="@color/black"
app:itemBackground="@color/rmade"
app:menu="@menu/main_menu"
app:headerLayout="@layout/menu_header"
android:layout_gravity="start"
></com.google.android.material.navigation.NavigationView>
</androidx.drawerlayout.widget.DrawerLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>