SlidingDrawer
SlidingDrawer copied to clipboard
lock()ed drawer still opens if handle is tapped
Hello,
I have an activity where I call lock() on the drawer when a fragment is loaded into the FrameLayout. However, if I tap on the handle for the sliding drawer (which is still visible with the fragment loaded), the drawer opens! (it doesn't animate open, it just jumps open). I believe this is a bug. I would expect that when the drawer is locked, it wouldn't respond to any touch input.
The XML for the sliding drawer is below. Let me know what else you need to further debug this and I'll happily provide.
<hollowsoft.slidingdrawer.SlidingDrawer
android:id="@+id/mainDrawer"
android:layout_width="match_parent"
android:layout_height="400dp"
android:orientation="vertical"
android:rotation="180"
layout:allowSingleTap="false"
layout:animateOnClick="false"
layout:content="@+id/mainDrawerContent"
layout:handle="@+id/mainDrawerHandle">
<android.support.v7.widget.AppCompatImageView
android:id="@+id/mainDrawerHandle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryDark"
android:rotation="180"
app:srcCompat="@mipmap/logo" />
<LinearLayout
android:id="@+id/mainDrawerContent"
android:gravity="center"
android:rotation="180"
android:background="@color/colorPrimaryDark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.v7.widget.AppCompatButton .../>
<android.support.v7.widget.AppCompatButton .../>
<android.support.v7.widget.AppCompatButton .../>
<android.support.v7.widget.AppCompatButton .../>
</LinearLayout>
</hollowsoft.slidingdrawer.SlidingDrawer>