title: Width of the popup menu - How to change
body: <p>I am using the following code for displaying pop up menus</p>
  
  <pre><code>PopupMenu popupMenu = new PopupMenu(MainActivity.this, v);
                        popupMenu.getMenuInflater().inflate(R.menu.popupmenu, popupMenu.getMenu());
                        popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
  
                     @Override
                     public boolean onMenuItemClick(MenuItem item) {
                      Toast.makeText(MainActivity.this,
                        item.toString(),
                        Toast.LENGTH_LONG).show();
                      return true;
                     }
                    });
  
                        popupMenu.show();
                    }
  </code></pre>
  
  <p>But the menu is covering a lot of my screen area. How to specify the size of the popup menu ?</p>