title: How to dynamically add a BottomNavigationView
body: <p>I added a <code>BottomNavigationView</code> programmatically but it's over the toolbar, how can I fix it?</p>
  
  <pre><code> View parent = (View) container.getParent();
      coordinatorLayout = parent.findViewById(R.id.parent_container);
      bottomNavigationView = new BottomNavigationView(getContext());
  
      BottomNavigationView.LayoutParams params = new BottomNavigationView.LayoutParams(BottomNavigationView.LayoutParams.MATCH_PARENT, BottomNavigationView.LayoutParams.WRAP_CONTENT, Gravity.BOTTOM);
  
      bottomNavigationView.setLayoutParams(params);
      bottomNavigationView.setBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
  
      bottomNavigationView.inflateMenu(R.menu.bottom_navigation_main);
  
      coordinatorLayout.addView(bottomNavigationView, params);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/7ftge.png" alt="Here is a screenshot"></p>