title: android menu icon size
body: <p>I need to set the menu icon programmatically (Not through a layout file), and also I need to load the icon file from file:///android_asset/ (Not load as a compiled Drawable). I found the size of the displayed icon is relatively smaller. It looks like android resize it or something, and I do not want to achieve the same effect with out code.</p>
  
  <p>As you can see in the in the attached screen shot, the menu "globe-36", "globe-48" and "globe-72" is populated using code like, and their image are 36x36, 48x48 and 72x72 : (This is the way I load my icon in my app, I have to)</p>
  
  <pre><code>            MenuItem mi = menu.add(Menu.NONE, i++, i++, icon);
              Drawable d = Drawable.createFromStream(getAssets().open(icon + ".png"), icon);
              mi.setIcon(d);
  </code></pre>
  
  <p>And, the menu "globe-aset" and "barcode-asset" are populated like: </p>
  
  <pre><code>    MenuItem mi = menu.add(Menu.NONE, i++, i++, "globe-asset");
      mi.setIcon(R.drawable.globe);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/g60wa.png" alt="enter image description here"> </p>