コード例 #1
0
ファイル: SlidingMenu.java プロジェクト: kazhida/famn_android
 /**
  * Controls whether the SlidingMenu can be opened with a swipe gesture. Options are {@link
  * #TOUCHMODE_MARGIN TOUCHMODE_MARGIN}, {@link #TOUCHMODE_FULLSCREEN TOUCHMODE_FULLSCREEN}, or
  * {@link #TOUCHMODE_NONE TOUCHMODE_NONE}
  *
  * @param i the new touch mode
  */
 public void setTouchModeBehind(int i) {
   if (i != TOUCHMODE_FULLSCREEN && i != TOUCHMODE_MARGIN && i != TOUCHMODE_NONE) {
     throw new IllegalStateException(
         "TouchMode must be set to either"
             + "TOUCHMODE_FULLSCREEN or TOUCHMODE_MARGIN or TOUCHMODE_NONE.");
   }
   mViewBehind.setTouchMode(i);
 }