I have an application where I used both DrawerLayout and Google Maps. As I wished, I disabled the swipe gesture for the drawer, setting this flag:
drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
It worked like a charm, but I also lost touch event on Maps which is situated behind my drawer...
Is there any way to achieve a locked Drawer and also focus to Maps at the same time, responding to my scroll, zooming, etc.?
Any suggestion is appreciated.
EDIT: Here's the layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".HomeActivity" >
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_left_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/main_fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="80dp" />
<FrameLayout
android:id="@+id/fragment_drawer_left_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start" />
</android.support.v4.widget.DrawerLayout>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_right_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/fragment_drawer_right_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="end" />
</android.support.v4.widget.DrawerLayout>
</RelativeLayout>