title: Nested CoordinaterLayout hides snackbar
body: <p>I have a parent view whose root view is a <code>CoordinatorLayout</code>. The parent layout contains a <code>TabLayout</code> and a <code>ViewPager</code>. The <code>ViewPager</code> contains two child fragments. The child fragment also has a <code>CoordinatorLayout</code> as its root view and contains a <code>RecyclerView</code>. Here are my xml files:</p>
  
  <p>Parent:</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/explore_viewpager"
      android:layout_width="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      android:layout_height="match_parent"/&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/main_activity_appbar"
      android:layout_width="match_parent"
      app:elevation="2dp"
      android:layout_height="wrap_content"&gt;
      &lt;android.support.design.widget.TabLayout
          android:id="@+id/explore_tablayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:layout_scrollFlags="scroll|enterAlways|snap"
          android:background="@color/tab_layout_bg"
          app:tabIndicatorColor="@color/tab_indicator_color"
          app:tabGravity="fill"/&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Child:</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/basic_recycler_view_layout_coordinator_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/recycler_view"
      android:scrollbars="vertical"
      android:clipToPadding="false"
      android:paddingTop="@dimen/single_margin"
      android:paddingBottom="@dimen/single_margin"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Now when I try to show a <code>SnackBar</code> from the child fragment, it doesn't show and is hidden offscreen. If I scroll the child fragment, the <code>TabLayout</code> in the parent collapses (as intended) and the <code>SnackBar</code> appears. I searched around and it is having a similar behavior to this: <a href="https://stackoverflow.com/questions/32969663/android-design-support-library-fab-in-a-viewpager-fragment-with-coordinator-layo">Android Design Support Library FAB in a ViewPager Fragment with Coordinator Layout</a> except that the <code>SnackBar</code> is fully hidden. I think that is because the <code>TabLayout</code> and the <code>SnackBar</code> have the same height. </p>
  
  <p>How do I set up the layouts so that the <code>SnackBar</code> will show?</p>
  
  <p>This was a bit complicated to explain so let me know if I can clarify any parts.</p>