title: Right slide secondary menu in android
body: <p>I got sliding menu lib from <a href="https://github.com/jfeinstein10/" rel="nofollow">here</a>, i dont no what is wrong here, in this right side slide menu appears but its blank. here is the code</p>
  
  <pre><code>// customize the SlidingMenu
          SlidingMenu sm = getSlidingMenu();
          sm.setMode(SlidingMenu.LEFT_RIGHT);
          sm.setShadowWidthRes(R.dimen.shadow_width);
          sm.setShadowDrawable(R.drawable.shadow);
          sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);
          sm.setFadeDegree(0.35f);
          //sm.setTouchModeAbove(SlidingMenu.LEFT_RIGHT);
  
  
  
          getSupportActionBar().setDisplayShowHomeEnabled(true);
          getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  </code></pre>
  
  <p>Here is the way i'm calling secondarymenu</p>
  
  <pre><code>    @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
          case android.R.id.home:
              showSecondaryMenu();
  
              return true;
          }
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p>Here is the way i'm instantiating the fragment.</p>
  
  <pre><code>setContentView(R.layout.activity_home_frame);
          getSupportFragmentManager()
          .beginTransaction()
          .replace(R.id.home_screen, new MapFragment())
          .commit();
  
          getSlidingMenu().setSecondaryMenu(R.layout.activity_home_frame);
          getSupportFragmentManager()
          .beginTransaction()
          .replace(R.id.home_screen, new MapFragment())
          .commit();
  
          // set the Behind View
          setBehindContentView(R.layout.activity_settings_frame);
          getSupportFragmentManager()
          .beginTransaction()
          .replace(R.id.settings_screen, new SettingsFragment())
          .commit();
  </code></pre>
  
  <p>my map fragment</p>
  
  <pre><code>public class MapFragment extends SherlockFragment{
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          return inflater.inflate(R.layout.activity_map, null);
      }
  
      @Override
      public void onSaveInstanceState(Bundle outState) {
          super.onSaveInstanceState(outState);
  
      }
  
  }
  </code></pre>
  
  <p>settings fragment</p>
  
  <pre><code>public class SettingsFragment extends SherlockFragment{
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          return inflater.inflate(R.layout.activity_settings, null);
      }
  
      @Override
      public void onSaveInstanceState(Bundle outState) {
          super.onSaveInstanceState(outState);
  
      }
  
  }
  </code></pre>
  
  <p>settings layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:text="Settings view."
          &gt;&lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>map layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="Your map "
          &gt;&lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>kindly tell why i'm getting right side menu blank?</p>