title: How to show Snackbar above Bottombar?
body: <p>I'm using roughike's BottomBar 2.0: <a href="https://github.com/roughike/BottomBar/" rel="nofollow noreferrer">https://github.com/roughike/BottomBar/</a></p>
  
  <p>When I display a SnackBar, it shows up on the BottomBar itself.</p>
  
  <p>I want it to be drawn above the BottomBar.</p>
  
  <p><strong>activity_main.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/main_activity"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:id="@+id/here"
          android:background="#fff"&gt;
  
          &lt;FrameLayout
              android:id="@+id/contentContainer"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_above="@+id/bottomBar"&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:textAppearance="?android:attr/textAppearanceLarge"
                  android:text="Three Buttons Bar"
                  android:id="@+id/textView"
                  android:layout_centerVertical="true"
                  android:layout_centerHorizontal="true"
                  android:textColor="@color/colorPrimary"
                  android:textSize="35sp" /&gt;
  
          &lt;/FrameLayout&gt;
  
          &lt;com.roughike.bottombar.BottomBar
              android:id="@+id/bottomBar"
              android:layout_width="match_parent"
              android:layout_height="60dp"
              android:layout_alignParentBottom="true"
              app:bb_tabXmlResource="@xml/bottombar_tabs" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><strong>MainActivity.java:</strong></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          BottomBar bottomBar = (BottomBar) findViewById(R.id.bottomBar);
          bottomBar.setOnTabSelectListener(new OnTabSelectListener() {
              @Override
              public void onTabSelected(int tabId) {
                  switch (tabId) {
                      case R.id.recent_item:
                          Snackbar.make(findViewById(R.id.main_activity), "Recent Item Selected", Snackbar.LENGTH_LONG).show();
                          break;
                      case R.id.favorite_item:
                          Snackbar.make(findViewById(R.id.main_activity), "Favorite Item Selected", Snackbar.LENGTH_LONG).show();
                          break;
                      case R.id.location_item:
                          Snackbar.make(findViewById(R.id.main_activity), "Location Item Selected", Snackbar.LENGTH_LONG).show();
                          break;
                  }
              }
          });
      }
  }
  </code></pre>
  
  <p><strong>Screenshots:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/QdP4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QdP4u.png" alt="BottomBar Only"></a>
  <a href="https://i.stack.imgur.com/h2lX2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h2lX2.png" alt="BottomBar hidden when SnackBar appears"></a></p>
  
  <p>Is anything wrong with the layout file??<br>
  What am I missing??</p>
  
  <p>I also checked this: <a href="https://stackoverflow.com/questions/36332487/move-snackbar-above-the-bottom-bar">Move snackbar above the bottom bar</a>, but it didn't help..</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried <a href="https://stackoverflow.com/a/40093681/5002496">as Abtin said</a>:</p>
  
  <pre><code>Snackbar.make(bottomBar, "Location Item Selected", Snackbar.LENGTH_LONG).show();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;com.roughike.bottombar.BottomBar
              android:id="@+id/bottomBar"
              android:layout_width="match_parent"
              android:layout_height="60dp"
              android:layout_alignParentBottom="true"
              app:bb_tabXmlResource="@xml/bottombar_tabs"
              app:bb_behavior="underNavbar"/&gt;
  </code></pre>
  
  <p>Now it has become like this:</p>
  
  <p><a href="https://i.stack.imgur.com/IhcmZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IhcmZ.png" alt="Bottom Bar with extra space below"></a>
  <a href="https://i.stack.imgur.com/N06ht.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N06ht.png" alt="That space filled by Snackbar"></a></p>
  
  <p>As you can see, there's this unused space below the BottomBar when I set <code>app:bb_behavior="underNavbar"</code>, which is not I want..</p>