title: CoordinatorLayout inside another CoordinatorLayout
body: <p><code>CorodinatorLayout</code> inside another <code>CoordinatorLayout</code> such that scrolling the child-view should also scroll the Parent <code>CoordinatorLayout</code>.</p>
  
  <p>I have a <code>coordinatorLayout</code> with <code>ViewPager</code> that contains different <code>Fragment</code> such that on <code>Scroll</code> will hide the <code>tabLayout</code></p>
  
  <p>I have another <code>coordinatorLayout</code> that has a <code>viewPager</code>. This <code>fragment</code> is inflated in <code>ViewPager</code> of parent fragment(parent <code>Coordinator layout</code>).</p>
  
  <p>The problem is <code>onScrolling</code> the child fragment in <code>childViewpager</code> only reflects in <code>coordinator layout</code> of child <code>fragment</code> and not in the Parent <code>coordinator layout</code> that I need to do to hide the <code>tablayout</code>.</p>
  
  <p>the structure is:</p>
  
  <pre><code>CoordinatorLayout(p) -&gt;(tablayout(p) &amp; ViewPager(p) -&gt; CoordinatorLayout(c)  -&gt;(tablayout(c) &amp; ViewPAger(c) -&gt;recyclerView(cc)))
  
  p -&gt; parent;
  
  c -&gt; child; cc -&gt; child to child
  </code></pre>
  
  <p>How to make on scrolling recycler view will affect both <strong>coordinator layout</strong> so that the <strong>toolbar tablayout(p)</strong> will be get hides.</p>