Mon NavigationView est affiché derrière le contenu de la page. J'ai donc essayé d'utiliser bringToFront
sur mon NavigationView: le contenu de la page va derrière le NavigationView, MAIS devient unclickable/unscrollable (le contenu de la page est un recyclerView avec plusieurs éléments).Gérer à la fois NavigationView et le contenu de la page
Comment puis-je gérer le contenu NavigationView et le contenu de la page? Même lorsque le NavigationView est fermé, le RecyclerView est cliquables/ne défilent pas
Voici mon fichier de mise en page:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/background_color">
<include android:id="@+id/mytoolbar"
layout="@layout/toolbar"/>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_below="@+id/mytoolbar"
>
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:menu="@menu/drawer_menu_planvente"/>
</android.support.v4.widget.DrawerLayout>
<RelativeLayout
android:id="@+id/layoutPlanVente"
android:layout_below="@+id/mytoolbar"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerViewProduitsVente"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:scrollbarSize="50dp"
android:orientation="vertical">
</android.support.v7.widget.RecyclerView>
</RelativeLayout>
</RelativeLayout>
Avec cette disposition, je peux voir la barre d'outils et la vue Nav, mais le RecyclerView n'est pas visible. – macTAR