title: Text align right with icon menu action bar sherlock
body: <p>I've a problem with menu option. I'm using action bar sherlock, when i'm clicking the option menu, the text align on the left side.<br>
  I want my text of option menu align on right side with a icon first.  </p>
  
  <p>the idea:<br>
  <img src="https://i.stack.imgur.com/F3NXR.png" alt="enter image description here"><br>
  Here is the option menu code:   </p>
  
  <pre><code>    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
          super.onCreateOptionsMenu(menu, inflater);
          // TWEAK: FC when inflated from XML
          searchItem = (MenuItem) menu.add(getResources().getString(R.string.menu_search));
          searchItem.setIcon(R.drawable.abs__ic_search);
          searchItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
          // Create the SearchView
          SearchView searchView = new SearchView(getActivity());
          searchView.setQueryHint(getResources().getString(R.string.search_hint));
          searchView.setOnQueryTextListener(this);
          // Collapse when focus lost
          searchView.setOnQueryTextFocusChangeListener(new View.OnFocusChangeListener() {
              @Override
              public void onFocusChange(View v, boolean hasFocus){
                  if(hasFocus) {
                      mListener.OnSearchClickListener();
                  } else {
                      searchItem.collapseActionView();
                  }
              }
          });
          // Assign the SearchView to the menuItem
          searchItem.setActionView(searchView);
          final Context ct = getSherlockActivity().getBaseContext();
          SubMenu subMenu1 = menu.addSubMenu("Action Item");
          subMenu1.add("Sample").setOnMenuItemClickListener(new OnMenuItemClickListener() {
              @Override
              public boolean onMenuItemClick(MenuItem item){
  //              Intent i = new Intent(getApplicationContext(), PlaceActivity.class);
  //              startActivity(i);
                  return false;
              }
          });
          subMenu1.add("Sample2").setOnMenuItemClickListener(new OnMenuItemClickListener() {
              @Override
              public boolean onMenuItemClick(MenuItem item){
                  Intent i = new Intent(getSherlockActivity().getApplicationContext(), FragmentPagerSupport.class);
                  startActivity(i);
                  return false;
              }
          });
          subMenu1.add("Map").setOnMenuItemClickListener(new OnMenuItemClickListener() {
              @Override
              public boolean onMenuItemClick(MenuItem item){
                  FChangeView();
                  return false;
              }
          });
          //blabla
          subMenu1.add("Help").setOnMenuItemClickListener(new OnMenuItemClickListener() {
              @Override
              public boolean onMenuItemClick(MenuItem item){
  //              mMapFragment.FNearMe();
                  return false;
              }
          });
          subMenu1.add("Current Location").setOnMenuItemClickListener(new OnMenuItemClickListener() {
              @Override
              public boolean onMenuItemClick(MenuItem item){
  //              mMapFragment.FCurrentLocation();
                  return false;
              }
          });
          MenuItem subMenu1Item = subMenu1.getItem();
          subMenu1Item.setIcon(R.drawable.menu);
          subMenu1Item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);       
      }
  </code></pre>
  
  <p>any idea for me?<br>
   it's pleasure if has a code example</p>