I've made an app drawer to work both on the left and the right, although I've set up the functions to work perfectly for the left app drawer. I can't figure out how to set up the right drawer.

Basically, I want the same button that is added on the left of the actionbar to appear on the right, and on click the right drawer appears. In the same way that the left app drawer operates? How do I fix?

Code:

MainActivity

Java Code:
    public class MainActivity extends Activity {
    
    	DrawerLayout mDrawerLayout;
    	
    	ListView mDrawerList;
    ActionBarDrawerToggle mDrawerToggle;	
    	
    	String mTitle="";
    
    	@Override
    	protected void onCreate(Bundle savedInstanceState) {
    		
    		super.onCreate(savedInstanceState);
    		setContentView(R.layout.activity_main);
    		
    		
    		mTitle = (String) getTitle();		
    		
    		
    		mDrawerLayout = (DrawerLayout) findViewById(R.id.dlMenu);
    		
    		
    		mDrawerList = (ListView) findViewById(R.id.left_drawer);
    		
    		mDrawerToggle = new ActionBarDrawerToggle(	this, 
    													mDrawerLayout, 
    													R.drawable.ic_drawer, 
    													R.string.drawer_open,
    													R.string.drawer_close){
    			
    			/** Called when drawer is closed */
                public void onDrawerClosed(View view) {
                	getActionBar().setTitle(mTitle);
                	invalidateOptionsMenu();
                    
                }
    
                /** Called when a drawer is opened */
                public void onDrawerOpened(View drawerView) {
                    getActionBar().setTitle("Menu");
                    invalidateOptionsMenu();
                }
    			
    		};
    		
    		
    mDrawerLayout.setDrawerListener(mDrawerToggle);
    		
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(
    					getBaseContext(), 
    					R.layout.drawer_list_item  , 
    					getResources().getStringArray(R.array.rivers) 
    				);
    		
    mDrawerList.setAdapter(adapter);
    		
    		
    getActionBar().setHomeButtonEnabled(true);
    		
    	
    getActionBar().setDisplayHomeAsUpEnabled(true);
    		
    		
    mDrawerList.setOnItemClickListener(new OnItemClickListener() {
    
    			
    			@Override
    			public void onItemClick(AdapterView<?> parent,
    							View view,
    							int position,
    							long id) {			
    				
    				
    String[] rivers = getResources().getStringArray(R.array.rivers);
    				
    				
    mTitle = rivers[position];				
    				
    				
    				
    RiverFragment rFragment = new RiverFragment();
    				
    				
    Bundle data = new Bundle();
    				
    				
    data.putInt("position", position);
    				
    				
    rFragment.setArguments(data);
    				
    				
    FragmentManager fragmentManager  = getFragmentManager();
    				
    				
    FragmentTransaction ft = fragmentManager.beginTransaction();
    				
    				
    ft.replace(R.id.flMainContent, rFragment);
    				
    				
    ft.commit();
    				
    			
    	mDrawerLayout.closeDrawer(mDrawerList);				
    				
    			}
    		});	
    	}
    	
    	
    	 @Override
    	 protected void onPostCreate(Bundle savedInstanceState) {
    		 super.onPostCreate(savedInstanceState);	     
    	     mDrawerToggle.syncState();	
    	 }
    	
    	
    @Override
        public boolean onOptionsItemSelected(MenuItem item) {     
            if (mDrawerToggle.onOptionsItemSelected(item)) {
              return true;
            }
            return super.onOptionsItemSelected(item);
        }
    	
    	
    	
    @Override
        public boolean onPrepareOptionsMenu(Menu menu) {
           
    boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);
            
            menu.findItem(R.id.action_settings).setVisible(!drawerOpen);
            return super.onPrepareOptionsMenu(menu);
        }
    
    	@Override
    	public boolean onCreateOptionsMenu(Menu menu) {
    		
    getMenuInflater().inflate(R.menu.main, menu);
    		return true;
    	}
    }

activity_main.xml

Java Code:
    <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/dlMenu"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity" >
    
        <!-- Main content -->
    
        <FrameLayout
            android:id="@+id/flMainContent"
            android:layout_width="match_parent"
            android:layout_height="match_parent" >
        </FrameLayout>
    
        <!-- Left Drawer Layout -->
    
        <ListView
            android:id="@+id/left_drawer"
            android:layout_width="240dp"
            android:layout_height="match_parent"
            android:layout_gravity="start"
            android:choiceMode="singleChoice"
            android:divider="@android:color/transparent"
            android:dividerHeight="0dp"
            android:background="#111" />
    
        <!-- Right Drawer Layout -->
    
        <ListView
            android:id="@+id/right_drawer"
            android:layout_width="240dp"
            android:layout_height="match_parent"
            android:layout_gravity="end"
            android:choiceMode="singleChoice"
            android:divider="@android:color/transparent"
            android:dividerHeight="0dp"
            android:background="#111" />
    
    </android.support.v4.widget.DrawerLayout>