title: RuntimeException: Failed to resolve attribute at index 6
body: <p>I have a button that is in a <strong>fragment</strong>. When I click the button, It should show a <strong>popup menu</strong>. But It doens't. </p>
  
  <p>These are my error messages : </p>
  
  <blockquote>
    <p>E/AndroidRuntime: FATAL EXCEPTION: main
                      Process: com.ias.caniasandroid, PID: 22823
                      java.lang.RuntimeException: Failed to resolve attribute at index 6
                          at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:603)
                          at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:6473)
                          at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:6641)
                          at android.widget.FrameLayout$LayoutParams.(FrameLayout.java:741)
                          at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:685)
                          at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:62)
                          at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
                          at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
                          at android.support.v7.view.menu.MenuPopupHelper$MenuAdapter.getView(MenuPopupHelper.java:374)
                          at android.support.v7.view.menu.MenuPopupHelper.measureContentWidth(MenuPopupHelper.java:223)
                          at android.support.v7.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:157)
                          at android.support.v7.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:129)
                          at android.support.v7.widget.PopupMenu.show(PopupMenu.java:216)</p>
  </blockquote>
  
  <p>My menu XML file: </p>
  
  <pre><code>&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/login_menu_new_item"
          android:orderInCategory="100"
          android:title="@string/new_ias"
          app:showAsAction="ifRoom|withText" /&gt;
      &lt;item
          android:id="@+id/login_menu_edit_item"
          android:orderInCategory="100"
          android:title="@string/edit"
          app:showAsAction="ifRoom|withText" /&gt;
      &lt;item
          android:id="@+id/login_menu_delete_item"
          android:orderInCategory="100"
          android:title="@string/delete"
          app:showAsAction="ifRoom|withText" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>How can I solve this problem ? </p>