title: How to replace the actionbar by a popup menu?
body: <p>I want to achieve 1 of these options for my EditText :</p>
  
  <ul>
  <li>Replace the actionbar that appear on the top by a <strong>popup menu</strong> instead. Something like this for exemple: </li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/kptvE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kptvE.png" alt="enter image description here"></a></p>
  
  <ul>
  <li>Or make the actionbar floating and child of my current view (in some way same a first option) </li>
  </ul>
  
  <p>i need this because i add my view via windowManager.addView(view, Layout_Params); and in this way i have some trouble with the actionbar on the top (it is displayed blank)</p>
  
  <p>actually i do this to show the actionbar :</p>
  
  <pre><code>@Override
  public ActionMode startActionMode(ActionMode.Callback callback) {
      Activity host = (Activity) this.getContext();    
      return host.getWindow().getDecorView().startActionMode(callback); 
  }
  </code></pre>
  
  <p>but it's don't work, it's show me an empty white actionbar on the stop instead :( i think i need to create myself the ActionMode but i don't know how to do it.</p>