title: How to make SlidingMenu only slide content and not the ActionBar
body: <p>I am using <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow">SlidingMenu</a> with ActionBarSherlock in my app and the way I have implemented it is by making a <code>BaseActivity</code> which extends <code>SlidingFragmentActivity</code> ( similar to the way they showed in the <a href="https://github.com/jfeinstein10/SlidingMenu/blob/master/example/src/com/jeremyfeinstein/slidingmenu/example/BaseActivity.java" rel="nofollow">example</a> ). Every other activity in my app extends this BaseActivity.</p>
  
  <p>But currently, when I slide from the left in the App, the entire activity including the ActionBar slides. I only want the content to slide. So looking at the docs, I figured that adding this should do it: <code>menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);</code> </p>
  
  <p>But I get an error for that line -</p>
  
  <p><code>java.lang.IllegalStateException: This SlidingMenu appears to already be attached</code></p>
  
  <p>Here's the onCreate function of the BaseActivity -</p>
  
  <pre><code>@Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setTitle(mTitleRes);
  
          // set the Behind View
          setBehindContentView(R.layout.menu_frame);
          if (savedInstanceState == null) {
              FragmentTransaction t = this.getSupportFragmentManager().beginTransaction();
              mFrag = new MenuListFragment();
              t.replace(R.id.menu_frame, mFrag);
              t.commit();
          } else {
              mFrag = (ListFragment)this.getSupportFragmentManager().findFragmentById(R.id.menu_frame);
          }
  
          // customize the SlidingMenu
          SlidingMenu sm = getSlidingMenu();
          sm.setShadowWidthRes(R.dimen.shadow_width);
          sm.setShadowDrawable(R.drawable.shadow);
          sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);
          sm.setFadeDegree(0.35f);
          sm.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
  
     // **** This following line causes the error  *****
          sm.attachToActivity(this, SlidingMenu.SLIDING_WINDOW);
  
          getSupportActionBar().setDisplayHomeAsUpEnabled(true);
      }
  </code></pre>
  
  <p>Should I be doing the <code>attachToActivity</code> somewhere else?</p>