title: How to display the icon of the right side of the Text in an MenuItem in Android?
body: <p>When i use the ActionBar i can add icons to the MenuItems as i would in Android. But the icons are always on the left side of the text. Can i place the icon on the right side somehow? </p>
  
  <p>This my code:   </p>
  
  <pre><code> &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools" &gt;
      &lt;item
       android:id="@+id/forgetpassword"
       android:icon="@drawable/usermodify"
       android:title="@string/Forgetpass"
       app:showAsAction="always|withText"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>custom layout:</p>
  
  <pre><code>&lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="15dp"
          android:layout_marginTop="3dp"
          android:orientation="horizontal" &gt;
  
          &lt;TextView
              android:id="@+id/text1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="1dp"
              android:text="@string/complogo" /&gt;
  
          &lt;ImageView
              android:id="@+id/img1"
              android:layout_width="30dp"
              android:layout_height="30dp"
              android:layout_marginTop="2dp"
              android:scaleType="fitXY"
              android:src="@drawable/ic_launcher" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/4VsU4.png" alt="Menu image"></p>