title: How can I change popup item width size?
body: <p>I use popup menu with custom items.Problems like this</p>
  <p>Red lines represents to default width size.</p>
  <p><img src="https://i.stack.imgur.com/7rEBw.png" alt="enter image description here" /></p>
  <p>but i want custom smaller width size of items(represents red lines).</p>
  <p><img src="https://i.stack.imgur.com/0DJ1z.png" alt="enter image description here" /></p>
  <pre><code>public void onClick(View v) {  
      //Creating the instance of PopupMenu  
      PopupMenu popup = new PopupMenu(MainLayout.this, mSikBtn);  
      popup.getMenuInflater().inflate(R.menu.poupup_menu, popup.getMenu());
      popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {  
          public boolean onMenuItemClick(MenuItem item) {  
              
              return true;  
           }  
      });  
  
      popup.show();//showing popup menu  
      }  
  });
  </code></pre>
  <p><strong>Layout xml file</strong></p>
  <pre><code>&lt;ImageView
          android:id=&quot;@+id/popupBtn&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:background=&quot;@android:color/transparent&quot; 
          android:src=&quot;@drawable/selector_sik&quot;
          android:layout_weight=&quot;1&quot;
          android:layout_margin=&quot;10dip&quot;
          /&gt;
  </code></pre>
  <p><strong>popup_menu.xml file</strong></p>
  <pre><code> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &gt;
      &lt;item  
          android:id=&quot;@+id/one&quot;  
          android:title=&quot;A).&quot;/&gt;  
        ...
          
      &lt;item  
          android:id=&quot;@+id/three&quot;  
          android:title=&quot;E).&quot;/&gt;  
  
  &lt;/menu&gt;
  </code></pre>
  <p>Similar  question: <a href="https://stackoverflow.com/q/12257769/1929784">stackoverflow.com</a>
  I need to custom popup menu</p>