title: How to Control Menu Position in Toolbar Android
body: <p>I want to change the gravity of my inflated menu item in android xml code but i could not find any attribute to solve the problem. <strong>i want an item in the <code>left</code> side and another item in <code>right</code> side of corner in <code>Toolbar</code></strong>. </p>
  
  <p>Do you have any idea guys?</p>
  
  <p><strong>Here's my present state:</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/RqcOi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RqcOi.png" alt="screenshot of toolbar"></a></p>
  
  <p><strong>Here's my menu xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
      &lt;item
          android:id="@+id/dismis"
          android:icon="@drawable/close"
          android:title="Done"
          app:showAsAction="always"&gt;&lt;/item&gt;
  
      &lt;item
          android:id="@+id/saveNote"
          android:icon="@drawable/save"
          android:title="Done"
          app:showAsAction="always"&gt;&lt;/item&gt;
  
  
  &lt;/menu&gt;
  </code></pre>