title: Binary XML file line #32: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x7f0300cc a=-1}
body: <p>I want to show PopupMenu it is inside recycerview but
  When i click menuButton app crashing and to finding the issue i removed  showPopupMenuMenu() method calling from setOnClickListener and replaced with toast it is working fine <br>
  The problem is in showPopupMenuMenu() method any one please help me to solve this issue</p>
  
  <pre><code>holder.menuButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                 try{
                     showPopupMenuMenu(holder,position);
                 }catch (Exception e){
                     Log.e("showPopupMenuMenu",e.getMessage()+"");
                 }
              }
          });
  
  private void showPopupMenuMenu(MyViewHolder holder, final int position){
          //creating a popup menu
            PopupMenu popup = new PopupMenu(context, holder.menuButton);
          //inflating menu from xml resource
          popup.inflate(R.menu.recyclerview_option_menu);
          //adding click listener
         try{
             popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
                 @Override
                 public boolean onMenuItemClick(MenuItem item) {
                     switch (item.getItemId()) {
                         case R.id.edit_menu:
                             //handle menu1 click
                             if (context instanceof MyAddressActivity) {
                                 ((MyAddressActivity) context).openEditAddressActivity(position, true);
                             } else if (context instanceof CheckoutLocationActivity) {
                                 ((CheckoutLocationActivity) context).openEditAddressActivity();
                             }
                             break;
                         case R.id.delete_menu:
                             //handle menu2 click
                             if (context instanceof MyAddressActivity) {
                                 ((MyAddressActivity) context).deleteAddressItem(position);
                             } else if (context instanceof CheckoutLocationActivity) {
                                 ((CheckoutLocationActivity) context).mCheckoutLocationActivityPresenter.deleteAddressItem(position);
                             }
                             break;
  
                     }
                     return false;
                 }
             });
         }catch (Exception e){
             Log.e("showPopupMenuMenu","setOnMenuItemClickListener  "+e.getMessage()+"");
         }
          //displaying the popup
          popup.show();
  }
  </code></pre>
  
  <p>Binary XML file line #32: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x7f0300cc a=-1}
  <br><br>
  R.menu.recyclerview_option_menu
  <br><br></p>
  
  
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item
          android:id="@+id/edit_menu"
          android:title="@string/edit" /&gt;
  
      &lt;item
          android:id="@+id/delete_menu"
          android:title="@string/delete" /&gt;
  
  &lt;/menu&gt;
  </code></pre>