Can't close NavigationDrawer with right-to-left swipe

I think the XML causes your problem. The ListView (left_drawer) should be the last element in your XML so it can overlay your content and catch your swipe gesture.

If you put your ViewPager within the FrameLayout (that's why it's called content_frame), it should work as expected.


Yeah peitek is right to be more clarify this is my xml file.

<fragment
    android:id="@+id/single_map_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    class="com.google.android.gms.maps.SupportMapFragment"/>

<include
    layout="@layout/app_bar_map_view_tt"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/single_map_appbar"/>

<!--This should be the last element to maintain right to left closing gesture.-->
<android.support.design.widget.NavigationView
    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
    app:headerLayout="@layout/nav_header_map_view_tt"
    app:menu="@menu/activity_map_view_tt_drawer" />