Android Question OpenGesturesEnabled for SlidingMenuWrapper ?

D

Deleted member 103

Guest
Hi,

in the B4i-library "iSideMenu" there is the function OpenGesturesEnabled, is there something similar in the B4a-library SlidingMenuWrapper?

I disable the gestures with "sm.BehindOffset = 100% x", but that's just a trick.
 
D

Deleted member 103

Guest
Try this:
B4X:
Dim jo As JavaObject = SlidingMenu1
jo.RunMethod("setTouchModeAbove", Array(2)) '2 = TOUCHMODE_NONE
Thank you! :)
I also found something now.
B4X:
    /** Constant value for use with setTouchModeAbove(). Allows the SlidingMenu to be opened with a swipe
     * gesture on the screen's margin
     */
    public static final int TOUCHMODE_MARGIN = 0;

    /** Constant value for use with setTouchModeAbove(). Allows the SlidingMenu to be opened with a swipe
     * gesture anywhere on the screen
     */
    public static final int TOUCHMODE_FULLSCREEN = 1;

    /** Constant value for use with setTouchModeAbove(). Denies the SlidingMenu to be opened with a swipe
     * gesture
     */
public static final int TOUCHMODE_NONE = 2;
 
Upvote 0
Top