title: Implementing popUp menu with appcompat 7 library
body: <p>So my popup Menu works fine on 4.0 phones but throws this exception on lower versions. 
  I've been trying to figure out something for hours now, with no solution.</p>
  
  <p>Here's the Menu XML, I'm not sure if I'm supposed to be looking at another layout file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
          &gt;
    &lt;group android:id="@+id/group_popupmenu"&gt;
       &lt;item android:id="@+id/menu1"
           android:title="@string/remove_recipient"/&gt;
      &lt;item android:id="@+id/menu2"
         android:title="@string/assign_resp"/&gt;
    &lt;/group&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>Here is where it's set:</p>
  
  <pre><code>public void showPopupMenu(final RecipientChip chip) {
  
      PopupMenu popupMenu = new PopupMenu(_cont, this);
      popupMenu.getMenuInflater().inflate(
              R.menu.resp_popupmenu, popupMenu.getMenu());
  
      if (!_responsibilityEnabled)
          hideOption(R.id.menu2, popupMenu.getMenu());
  
                        ...
  </code></pre>
  
  <p>I'm really not sure what I'm doing wrong. I seem to have looked through the XML files for a cause:</p>
  
  <pre><code> FATAL EXCEPTION: main
   java.lang.RuntimeException: Binary XML file line #17: You must supply a layout_height attribute.
  at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
  at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3599)
  at android.view.ViewGroup$MarginLayoutParams.&lt;init&gt;(ViewGroup.java:3678)
  at android.widget.FrameLayout$LayoutParams.&lt;init&gt;(FrameLayout.java:457)
  at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:423)
  at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:47)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
   at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
  at android.support.v7.internal.view.menu.MenuPopupHelper$MenuAdapter.getView(MenuPopupHelper.java:335)
  at android.support.v7.internal.view.menu.MenuPopupHelper.measureContentWidth(MenuPopupHelper.java:190)
  at android.support.v7.internal.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:128)
  at android.support.v7.internal.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:102)
  at android.support.v7.widget.PopupMenu.show(PopupMenu.java:108)
  at com.path.ChipTextView.showPopupMenu(ChipTextView.java:420)
  at com.path.RecipientChip$1.onClick(RecipientChip.java:233)
  at com.path.ChipTextView$MyMovementMethod.onTouchEvent(ChipTextView.java:610)
  at android.widget.TextView.onTouchEvent(TextView.java:6863)
  at android.view.View.dispatchTouchEvent(View.java:3885)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
      at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
      at   com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1691)
  at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1125)
  at android.app.Activity.dispatchTouchEvent(Activity.java:2096)
  at com.path.FragmentActivity.dispatchTouchEvent(FragmentActivity.java:97)
  at   com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1675)
  at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2194)
  at android.view.ViewRoot.handleMessage(ViewRoot.java:1878)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:130)
  at android.app.ActivityThread.main(ActivityThread.java:3683)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:507)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>