SlideMenu屏蔽滑动问题

刚开始需要支持SlideMenu滑动的,后台和当前的activity的主界面滑动事件冲突,然后想屏蔽掉SlideMenu的滑动功能,只支持按钮的形式

<span style="color: rgb(255, 0, 0); font-size: 15px;">setTouchModeAbove()</span>;
是设置当前的滑动模式有很多

<span style="color: rgb(0, 0, 0);">SlidingMenu.TOUCHMODE_FULLSCREEN   全屏手势</span>
<span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240); line-height: 1.5em;">SlidingMenu.TOUCHMODE_MARGIN   边框滑动</span>
<span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240); line-height: 1.5em;">SlidingMenu.</span><span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240); line-height: 1.5em;">TOUCHMODE_NONE     无滑动事件</span>
<span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240); line-height: 1.5em;"></span><ul style="padding: 0px 0px 0px 30px; margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px;"><li><code style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin: 0px; border: 1px solid rgb(221, 221, 221); background-color: rgb(248, 248, 248); padding: 0px;">touchModeAbove</code> - an enum that designates what part of the screen is touchable when the above view is showing. Margin means only the left margin. Fullscreen means the entire screen. Default is margin.  官网解释  大概意思是 默认是<span style="font-size: 15px; background-color: rgb(240, 240, 240);">margin,<span style="font-size: 15px;">Margin 是左侧滑动 </span><span style="font-size: 15px;">Fullscreen 是全屏 滑动</span></span></li></ul>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值