Note that there are some explanatory texts on larger screens.

plurals
  1. PODisabling swipe gesture to open navigation drawer in Android ends with no interraction with Google Maps no more
    primarykey
    data
    text
    <p>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:</p> <pre><code>drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); </code></pre> <p>It worked like a charm, but I also lost touch event on Maps which is situated behind my drawer...</p> <p>Is there any way to achieve a locked Drawer and also focus to Maps at the same time, responding to my scroll, zooming, etc.?</p> <p>Any suggestion is appreciated.</p> <p><strong>EDIT</strong>: Here's the layout:</p> <pre><code>&lt;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" &gt; &lt;android.support.v4.widget.DrawerLayout android:id="@+id/drawer_left_layout" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;FrameLayout android:id="@+id/main_fragment_container" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="80dp" /&gt; &lt;FrameLayout android:id="@+id/fragment_drawer_left_container" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start" /&gt; &lt;/android.support.v4.widget.DrawerLayout&gt; &lt;android.support.v4.widget.DrawerLayout android:id="@+id/drawer_right_layout" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;FrameLayout android:id="@+id/fragment_drawer_right_container" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="end" /&gt; &lt;/android.support.v4.widget.DrawerLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload