title: PopupMenu submenu doesn't respect the gravity alignment
body: <p>In Android API 23, I have a Popup menu with submenu items. I have defined the gravity to the end, as shown</p>
  
  <pre><code>popupMenu = new PopupMenu(this, v, Gravity.END);
  popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
  @Override
      public boolean onMenuItemClick(MenuItem item) {
          switch (item.getItemId()) {
              case R.id.action_add_reminder:
                  // Option1
                  // ... other options / not relevant for the question    
  popupMenu.inflate(R.menu.menu_contact_context);
  popupMenu.show();
  </code></pre>
  
  <p>The menu has several submenus, as defined in xml</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"
          tools:context="es.goodsal.mobile.ContactActivity"&gt;
  &lt;item
      android:id="@+id/add"
      android:icon="@android:drawable/ic_menu_add"
      android:title="@string/action_add"
      &gt;
      &lt;menu&gt;
          &lt;item
              android:id="@+id/action_add_reminder"
              android:icon="@drawable/ic_action_add_reminder"
              android:orderInCategory="100"
              android:title="@string/action_add_reminder"
              /&gt;
          &lt;item
              android:id="@+id/action_add_note"
              android:icon="@drawable/ic_action_add_note"
              android:orderInCategory="100"
              android:title="@string/action_add_note"/&gt;
          &lt;item
              android:id="@+id/action_add_opportunity"
              android:icon="@drawable/ic_action_add_opportunity"
              android:orderInCategory="100"
              android:title="@string/action_add_opportunity"/&gt;
          &lt;item
              android:id="@+id/action_add_agenda"
              android:icon="@drawable/ic_action_add_agenda"
              android:orderInCategory="100"
              android:title="@string/action_add_agenda"/&gt;
          &lt;item
              android:id="@+id/action_add_task"
              android:icon="@drawable/ic_action_add_task"
              android:orderInCategory="100"
              android:title="@string/action_add_task"/&gt;
      &lt;/menu&gt;
  &lt;/item&gt;
  &lt;item
      android:id="@+id/action_contact_edit"
      android:icon="@android:drawable/ic_menu_edit"
      android:title="@string/action_edit"/&gt;
  &lt;item
      android:id="@+id/action_contact_record"
      android:icon="@drawable/ic_contact_default"
      android:title="@string/action_contact"/&gt;
  &lt;item
      android:id="@+id/action_report"
      android:title="@string/action_report"/&gt;
  &lt;item
      android:id="@+id/funnel"
      android:icon="@drawable/ic_action_funnel"
      android:title="@string/action_funnel"
      &gt;
      &lt;menu&gt;
          &lt;item
              android:id="@+id/action_funnel_progress"
              android:orderInCategory="100"
              android:title="@string/action_funnel_progress"
              /&gt;
          &lt;item
              android:id="@+id/action_funnel_regress"
              android:orderInCategory="100"
              android:title="@string/action_funnel_regress"
              /&gt;
      &lt;/menu&gt;
  &lt;/item&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>My problem is when the menu is show. The original menu is well aligned to the right (=Gravity.END), but the submenus are aligned to the left, and I don't find a way to define gravity for submenus (and, why is not the same?!?)</p>