title: android: how to change Text size, color of Options Menu Items and options menu height and width
body: <p>I have used the following code to customize the background of options menu successfully.</p>
  
  <pre><code>getLayoutInflater().setFactory(new Factory() {
      @Override
      public View onCreateView(String name, Context context, AttributeSet attrs) {
          if (name.equalsIgnoreCase("com.android.internal.view.menu.IconMenuItemView")) {
              try { // Ask our inflater to create the view
                  LayoutInflater f = getLayoutInflater();
                  final View view = f.createView(name, null, attrs);
                  /*
                   * The background gets refreshed each time a new item is
                   * added the options menu. So each time Android applies
                   * the default background we need to set our own
                   * background. This is done using a thread giving the
                   * background change as runnable object
                   */
                  new Handler().post(new Runnable() {
                      public void run() {
                          view.setBackgroundResource(R.drawable.blue_bg_pixel);
                      }
                  });
                  return view;
              }
              catch (InflateException e) {
              }
              catch (ClassNotFoundException e) {
              }
          }
          return null;
      }
  });
  </code></pre>
  
  <p>Now I have to customize menu size, text size/color. Anybody plz help me in this.</p>
  
  <p>Thanks in advance.</p>