title: Trouble with Tab Layout in Navigation Drawer
body: <p>I use android.support:design library for NavigationDrawer and Tabs.
  I have a trouble in fragment with tabs, it's shadow beetwen Toolbar and Tabs.
  <a href="http://i.stack.imgur.com/QBrSj.png" rel="nofollow">Tabs fragment screenshot</a></p>
  
  <p>MainActivity layout:</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:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true"
  android:id="@+id/coordinate"
  tools:context="tabs.com.tabs.com.fragments.items"&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appBar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
  &lt;include layout="@layout/content_main" /&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Fragment tabs layout:</p>
  
  <pre><code>&lt;LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  tools:context="tabs.com.tabs.com.fragments.items"
  android:orientation="vertical"&gt;
  
  
  &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appBar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="@style/AppTheme.AppBarOverlay"
      android:duplicateParentState="true"&gt;
  
  
  &lt;android.support.design.widget.TabLayout
      android:id="@+id/tabs"
      app:tabGravity="fill"
      app:tabMode="fixed"
      android:background="@color/colorPrimary"
      app:tabIndicatorColor="@color/white"
      app:tabSelectedTextColor="@color/white"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:elevation="6dp"&gt;
  &lt;/android.support.design.widget.TabLayout&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/viewpager"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  &lt;/android.support.v4.view.ViewPager&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Tabs code:</p>
  
  <pre><code>public class Items extends Fragment {
  
  
  public static TabLayout tabLayout;
  public static ViewPager viewPager;
  public static int int_items = 2;
  
  
  
  
  public Items() {
  
  }
  
  @Nullable
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
  
      View x =  inflater.inflate(R.layout.fragment_news,null);
      tabLayout = (TabLayout) x.findViewById(R.id.tabs);
      viewPager = (ViewPager) x.findViewById(R.id.viewpager);
  
  
  
      viewPager.setAdapter(new MyAdapter(getChildFragmentManager()));
  
  
  
      tabLayout.post(new Runnable() {
          @Override
          public void run() {
              tabLayout.setupWithViewPager(viewPager);
          }
      });
  
  
      return x;
  }
  
  class MyAdapter extends FragmentPagerAdapter{
  
      public MyAdapter(FragmentManager fm) {
          super(fm);
      }
  
  
  
      @Override
      public Fragment getItem(int position)
      {
          switch (position){
              case 0 : return new PrimaryFragment();
              case 1 : return new SocialFragment();
          }
          return null;
      }
  
      @Override
      public int getCount() {
  
          return int_items;
  
      }
  
      @Override
      public CharSequence getPageTitle(int position) {
  
          switch (position){
              case 0 :
                  return "ONE";
              case 1 :
                  return "TWO";
  
          }
          return null;
      }
  
  
  }
  }
  </code></pre>
  
  <p>How i can solve this trouble?</p>