title: onCreateOptionsMenu showing alwasy as action with a menu that i have created programatically
body: <p>Below is how i have created my menu programmatically</p>
  <pre><code>
  @Override
  public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {
          super.onCreateOptionsMenu(menu, inflater);
  
  
   menu.add(0, 0, 0, new SetUpClass().menuInitializer(
       Objects.requireNonNull(ContextCompat.getDrawable(requireActivity(),R.drawable.ic_cart)),
                  getResources().getString(R.string.cart)));
  
  }
  
  </code></pre>
  <p>Below is my menuInitializer method in SetUpClass</p>
  <pre><code>
  public class SetUpClass {
  
  public CharSequence menuInitializer(Drawable drawable, String title) {
  
          drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
          SpannableString spannableString = new SpannableString(&quot;    &quot; + title);
          ImageSpan imageSpan = new ImageSpan(drawable, ImageSpan.ALIGN_BOTTOM);
          spannableString.setSpan(imageSpan, 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
  
          return spannableString;
      }
  
  }
  
  </code></pre>
  <p>How can i make the programmatically created menu to always show as action like when using xml menu like below</p>
  <pre><code>app:showAsAction=&quot;always&quot;
  
  </code></pre>