title: BottomNavigationView getmaxitemcount
body: <p>Hello member stackoverflow 
   porblem with bottomnavihationview</p>
  
  <p>in my app I used  BottomNavigationView  with 4 item . it make my app easy and beauty  </p>
  
  <pre><code>  BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation_view);
          bottomNavigationView.inflateMenu(R.menu.menu_bottom_navigation);
          bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
              @Override
              public boolean onNavigationItemSelected(@NonNull MenuItem item) {
                  int id = item.getItemId();
                  switch (id){
                      case R.id.action_one:
  
                          break;
                      case R.id.action_two:
                          FragmentTransaction manger= getSupportFragmentManager().beginTransaction();
                          pop_web_view  pop3 =new pop_web_view();
                          pop3.show(manger,null);
  
                          break;
                      case R.id.action_three:
  
                          break;
                      case R.id.action_four:
  
                          break;
                  }
  
                  return false;
              }
          });
  </code></pre>
  
  <p>in activity_main :</p>
  
  <pre><code>&lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/bottom_navigation_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:layout_anchorGravity="bottom"
          android:paddingTop="560dp"
          app:itemBackground="@color/colorDivider"
          app:itemIconTint="@color/colorPrimaryDark"
          app:itemTextColor="@color/colorPrimaryDark"
          app:menu="@menu/menu_bottom_navigation" /&gt;
  </code></pre>
  
  <p>in menu xml : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:id="@+id/action_one"
          android:icon="@android:drawable/ic_secure"
          android:title="One"/&gt;
      &lt;item
          android:id="@+id/action_two"
          android:icon="@android:drawable/ic_dialog_info"
          android:title="Two"/&gt;
      &lt;item
          android:id="@+id/action_three"
          android:icon="@android:drawable/ic_dialog_email"
          android:title="Three"/&gt;
      &lt;item
          android:id="@+id/action_four"
          android:icon="@android:drawable/ic_popup_reminder"
          android:title="Four"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>BUT I have problem Caused by: </p>
  
  <pre><code>java.lang.IllegalArgumentException: Maximum number of items supported by BottomNavigationView is 5. Limit can be checked with BottomNavigationView#getMaxItemCount()
  </code></pre>