title: Change positions of menu items and hamburger button for a right-side drawer
body: <p>In my <code>Toolbar</code>, I have a menu with one item "settings", and a <code>DrawerLayout</code> with a hamburger icon aligned to the right.</p>
  
  <p>Now it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/ZLpWO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZLpWO.png" alt="enter image description here"></a></p>
  
  <p>I want the hamburger to be on the right, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/61JVr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/61JVr.png" alt="enter image description here"></a></p>
  
  <p><code>menu.xml</code>:</p>
  
  <pre><code>&lt;menu xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item
          android:id="@+id/settings"
          android:icon="@drawable/ic_settings_black_48dp"
          app:showAsAction="always" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><code>MainActivity</code>:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
      private DrawerLayout mDrawerLayout;
      //EndDrawerToggle is class for setup DrawerLayout with an end-aligned drawer
      private EndDrawerToggle drawerToggle;   
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          context=this;
          mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
          Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);
          myToolbar.setTitle("");
          setSupportActionBar(myToolbar);
          drawerToggle = new EndDrawerToggle(this,
                  mDrawerLayout,
                  myToolbar,
                  R.string.drawer_open,
                  R.string.drawer_close);
          mDrawerLayout.addDrawerListener(drawerToggle);    
          //....
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          int id = item.getItemId();
          if (id == R.id.settings) {
              //do smth
          }
          return super.onOptionsItemSelected(item);
      }
  
  }
  </code></pre>
  
  <p>The <code>EndDrawerToggle</code> class is from <a href="https://stackoverflow.com/a/39136512/6522612">this answer</a>.</p>