SlideMenu遮蔽滑動問題

yangxi_001發表於2014-09-16

剛開始需要支援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>

相關文章