Sliding menu on both sides with two separate lists

android, listview, slider, slidetoggle, swipe-gesture

Solution

Replace your code by this:

getSlidingMenu().setMode(SlidingMenu.LEFT_RIGHT);
getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);

setBehindContentView(R.layout.menu_right);
getSupportFragmentManager().beginTransaction().replace(R.id.menuRight, new MenuRightFragment()).commit();

getSlidingMenu().setSecondaryMenu(R.layout.menu_left);
getSupportFragmentManager().beginTransaction().replace(R.id.menuLeft, new MenuLeftFragment()).commit();

create two separate lists in MenuRightFragment() and MenuLeftFragment() class.

Problem

I am working in an app which has sliding menu on both sides. I tried using navigation drawer but was not able to bring the menu by pushing the main screen to right side as in facebook. So I used Slidingmenu library as in https://github.com/jfeinstein10/SlidingMenu/. That is working nicely But the Problem I am facing is that same list is on both sides. Plz help me how to bring separate lists for left menu and right menu. Here is my code ``` sm = getSlidingMenu(); sm.setMode(SlidingMenu.LEFT_RIGHT); sm.setSecondaryMenu(R.layout.menu_frame_two); getSupportFragmentManager() .beginTransaction().replace(R.id.menu_frame_two, new SampleListFragment()) .commit(); ``` In SampleListFragment class is have created dynamic list for left menu and in SampleListRight class for right menu. I could'nt bring SampleListRight class in my code. Plz help me......

Original source