title: Android Show DropDown Menu on MenuItem click
body: <p>I want to show <strong>DropDown</strong> menu on <strong>MenuItem</strong> click just like <a href="https://www.google.com.pk/search?q=android%20show%20dropdown%20menu%20on%20menuItem%20click&amp;es_sm=93&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ei=yMA0VZfAFaaE7gaRkoHQBg&amp;ved=0CAgQ_AUoAg&amp;biw=1600&amp;bih=799#tbm=isch&amp;q=android%20drop%20down%20menu%20actionbar&amp;imgrc=IPE0e8hrfFShtM%253A%3BlSyqJVaaYKMIMM%3Bhttp%253A%252F%252Fi.imgur.com%252FZUagC.png%3Bhttp%253A%252F%252Fstackoverflow.com%252Fquestions%252F6562260%252Fhow-do-i-make-a-dropdown-menu-like-this-in-the-evernote-app%3B320%3B480" rel="noreferrer">this</a>.</p>
  
  <p><img src="https://i.stack.imgur.com/L75CE.png" alt="enter image description here"></p>
  
  <p>Like this</p>
  
  <p><img src="https://i.stack.imgur.com/PnqY7.png" alt="enter image description here"></p>
  
  <p>Note that this item was added like:</p>
  
  <pre><code>&lt;item
      android:id="@+id/menu_item_action_parameters"
      android:title="@string/text_parameters"
      android:icon="@drawable/ic_menu_parameter"
      app:showAsAction="ifRoom|withText"/&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>And in my code:</p>
  
  <pre><code>@Override
  public boolean onOptionsItemSelected(MenuItem item) {
      int id = item.getItemId();
      switch (id) {
          case R.id.menu_item_action_parameters:
              // What to do here?
              break;
      }
      return super.onOptionsItemSelected(item);
   }
  </code></pre>
  
  <p>I have seen this <a href="http://www.androidhive.info/2013/11/android-working-with-action-bar/" rel="noreferrer">link</a> but I have came to know that <code>ActionBar.setListNavigationCallbacks()</code> has been deprecated. </p>
  
  <p>Thanks!</p>