SlideMenu屏蔽滑动问题

来源:互联网 发布:mac safari 无痕浏览 编辑:程序博客网 时间:2024/06/06 19:28

刚开始需要支持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>
0 0
原创粉丝点击