title: How to Add custom menu to Bottom App Bar?
body: <p>I am using new Material Bottom app bar in android. I have implemented it successfully but I don't know how to add custom menu items to the bar. Whenever I add the menu items they shows up as 3 dots only even if I provide the option android:showAsAction="always". </p>
  
  <p>I want specific icons like the screenshot below.<a href="https://i.stack.imgur.com/OvacO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OvacO.png" alt="Wanted result"></a>
  But instead I get result like this.
  <a href="https://i.stack.imgur.com/Bjl6q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bjl6q.png" alt="enter image description here"></a></p>
  
  <p>Here is the layout code.</p>
  
  <pre><code>&lt;com.google.android.material.bottomappbar.BottomAppBar
      android:id="@+id/bottom_app_bar"
      style="@style/Widget.MaterialComponents.BottomAppBar"
      android:layout_width="match_parent"
      android:layout_height="50dp"
      android:layout_gravity="bottom"
      app:backgroundTint="@color/colorPrimaryDark"
      app:fabCradleMargin="5dp"
      app:fabAlignmentMode="center"/&gt;
  
  &lt;com.google.android.material.floatingactionbutton.FloatingActionButton
      android:id="@+id/fab"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:layout_anchor="@id/bottom_app_bar" /&gt;
  </code></pre>
  
  <p>And here is the java code.</p>
  
  <pre><code>BottomAppBar bottomAppBar = (BottomAppBar) findViewById(R.id.bottom_app_bar);
  setSupportActionBar(bottomAppBar);
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.navigation, menu);
      return true;
  }
  </code></pre>
  
  <p>Menu code.</p>
  
  <pre><code>&lt;item
      android:id="@+id/navigation_explore"
      android:icon="@drawable/explore"
      android:title="Explore"
      android:showAsAction="always"/&gt;
  
  &lt;item
      android:id="@+id/navigation_profile"
      android:icon="@drawable/profile"
      android:title="Profile"
      android:showAsAction="always"/&gt;
  </code></pre>