SimonVT / android-menudrawer

*DEPRECATED* A slide-out menu implementation, which allows users to navigate between views in your app.
http://simonvt.github.com/android-menudrawer/
Apache License 2.0
2.59k stars 1.11k forks source link

How to cancle the automatical close of the TopDrawer ? #233

Closed graycreate closed 10 years ago

graycreate commented 10 years ago

when i touch the view of 'mdContent',the 'mdMenu' closed automatically.But ,I want the 'mdMenu' keep opened unless I scroll up on the screen.is there a method of MenuDrawer can do it? Poor english,hope you can understand it.

graycreate commented 10 years ago

in VerticalDrawer.java ,just '//' the following lines,it works here. public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction() & MotionEvent.ACTION_MASK;

    if (action == MotionEvent.ACTION_DOWN && mMenuVisible && isCloseEnough()) {
        setOffsetPixels(0);
        stopAnimation();
        endPeek();
        setDrawerState(STATE_CLOSED);
    }
    // Always intercept events over the content while menu is visible.

// if (mMenuVisible && isContentTouch(ev)) { // return true; // } ...... }