Option menu default gray border removal
<p>in my app i have option menu i try to customize it , i did it by refer it to style ,</p>

<p>what i need is either removal of default gray border around option menu or customize it to another color .</p>

<p>any advice will be appreciated . </p>

<p>as shown below :</p>

<p><img src="http://i.stack.imgur.com/TDamH.png" alt="enter image description here"></p>

<p>My code :</p>

<pre><code> public boolean onCreateOptionsMenu(android.view.Menu menu) {

   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.cool_menu, menu);

   getLayoutInflater().setFactory(new Factory() {
   public View onCreateView(String name, Context context,
   AttributeSet attrs) {

if (name .equalsIgnoreCase("com.android.internal.view.menu.IconMenuItemView")) {
try {

  LayoutInflater li = LayoutInflater.from(context);
  final View view = li.createView(name, null, attrs);

  new Handler().post(new Runnable() {
  public void run() {

  view .setBackgroundResource(R.drawable.border1);

  ((TextView) view).setTextSize(20); 

  ((TextView) view).setTextColor(Color.RED);
                 }
             });
   return view;  }
   catch (InflateException e) {}
   catch (ClassNotFoundException e) {}
        }
   return null; }
      });
   return super.onCreateOptionsMenu(menu);   }
</code></pre>
