title: How to hide the actionbar menu item based on tab layout?
body: <p>I have a actionbar_layout and three tabs in my android application.The actionbar_layout is common for all the three tabs(Event tab,Invitation tab,Groupchat tab).The actionbar_layout have 3 icons(dropdown,event icon &amp; settings icon). I need to visible that icons based on tab click,for example when ontap invitation tab "settings icon" only visible in actionbar layout,if click event tab only "event icon" need to be visible.Similarly when on tap Groupchat tab i need to visible "dropdown icon".</p>
  
  <p>How to achieve this please help me</p>
  
  <p>My menu_user_dashboard.xml code is below</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:appmunu="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context="ringee.app.com.ringeeapp.UserDashBoard"&gt;
  
      &lt;item
          android:id="@+id/dropdown"
          android:icon="@drawable/dropdown_icon"
          android:title="Dropdown"
          appmunu:showAsAction="always"&gt;
          &lt;menu&gt;
              &lt;item
                  android:id="@+id/all"
                  android:title="All" /&gt;
              &lt;item
                  android:id="@+id/event"
                  android:title="Event" /&gt;
              &lt;item
                  android:id="@+id/invitation"
                  android:title="Invitation" /&gt;
          &lt;/menu&gt;
      &lt;/item&gt;
  
      &lt;item
          android:id="@+id/create_occasion"
          android:icon="@drawable/ic_action_event"
          android:title="Create Occasion"
          appmunu:showAsAction="always" /&gt;
  
      &lt;item
          android:id="@+id/account_settings"
          android:orderInCategory="100"
          android:title="@string/action_settings" /&gt;
  
      &lt;item
          android:id="@+id/profile"
          android:orderInCategory="100"
          android:title="@string/profile_image" /&gt;
  
  &lt;/menu&gt;
  </code></pre>