title: How to get listitem id when I click on PopUp menu item?
body: <p>In my application I have attached popup menu with each item in listview. The popup menu has further two items when we click on popup menu icon.I have implemented <code>OnMenuItemClickListener</code> in my activity to listen for popup menu item clicks which is working fine.But the problem is that How do I get to know the listitem id (not popup menu item id) when I click on popup menu icon for any listview item.The popup menu code is below:</p>
  
  <pre><code>public void showPopup(View v) {
          PopupMenu popup = new PopupMenu(this, v);
          popup.setOnMenuItemClickListener(this);
          popup.inflate(R.menu.actions);
          popup.show();
      }
  
      @Override
      public boolean onMenuItemClick(MenuItem item) {
          switch (item.getItemId()) {
              case R.id.menu_play:
                  return true;
              default:
                  return false;
          }
      }
  </code></pre>