I have implemented the Navigation Drawer, ViewPager and ToolBar the old way and i have achieved the Snapping of toolbar but the TabLayout below the toolBar leaves a white space equal to the height of itself and overlaps the RecyclerView(which is inside PagerView).
Kindly any help is appreciating.

My mainActivity XML:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout 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/drawerLayoutMain_ID"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:context="faisal.DroidDev.abc.MainActivity" >

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true"
        android:background="@color/SplashBackground"
        android:orientation="vertical" >

        <LinearLayout
            android:id="@+id/container_tool_bar_ID"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/SplashBackground"
            android:orientation="vertical" >

            <include
                android:id="@+id/appBar_ID"
                layout="@layout/layout_appbar" />

            <faisal.DroidDev.pocketscience.layout_tab.SlidingTabLayout
                android:id="@+id/sliding_tab_layout_ID"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="5dp"
                android:background="@drawable/shadow" />
        </LinearLayout>

        <android.support.v4.view.ViewPager
            android:id="@+id/tab_viewPager_ID"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />
    </LinearLayout>

    <fragment
        android:id="@+id/navDrawer_ID"
        android:name="faisal.DroidDev.abc.layout_navDrawer.FragmentNavigationDrawer"
        android:layout_width="@dimen/DrawerWidth"
        android:layout_height="match_parent"
        android:layout_below="@+id/container_tool_bar_ID"
        android:layout_gravity="start"
        android:layout_marginTop="0dp"
        app:layout="@layout/layout_navigation_drawer"
        tools:layout="@layout/layout_navigation_drawer" />

</android.support.v4.widget.DrawerLayout>


MainActivity:

public class MainActivity extends AppCompatActivity {
 
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

mToolbarContainer = (LinearLayout) findViewById(R.id.container_tool_bar_ID);
mToolbarHeight = Utils.getToolbarHeight(this);
mTabsHeight = Utils.getTabsHeight(this);
       pagerAdapterObject = new PagerAdapter(getSupportFragmentManager(), context);
               viewPager.setAdapter(pagerAdapterObject);
       viewPager.setOffscreenPageLimit(10);

       slidingTabLayout.setDistributeEvenly(true);
       slidingTabLayout.setCustomTabView(R.layout.layout_tabs_holder, R.id.tabs_textView_ID);
       slidingTabLayout.setBackgroundColor(getResources().getColor(R.color.SplashBackground));
       slidingTabLayout.setSelectedIndicatorColors(getResources().getColor(R.color.tabIndicator));
       slidingTabLayout.setViewPager(viewPager);
}


public void moveToolBar(int scrolledHeight){
mToolbarContainer.setTranslationY(-scrolledHeight);
//viewPager.setTranslationY(-scrolledHeight);
//slidingTabLayout.setTranslationY(-scrolledHeight);
//toolBar.setTranslationY(-scrolledHeight);
}

public void hideToolBar(){
mToolbarContainer.animate().translationY(-mToolbarHeight).setInterpolator(new AccelerateInterpolator(2)).start();
//slidingTabLayout.animate().translationY(-mToolbarHeight).setInterpolator(new AccelerateInterpolator(2)).start();
//viewPager.animate().translationY(-mToolbarHeight).setInterpolator(new AccelerateInterpolator(5)).start();

}

public void showToolBar(){
mToolbarContainer.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();
//slidingTabLayout.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();
//viewPager.animate().translationY(0).setInterpolator(new DecelerateInterpolator(5)).start();
}

Code for my RecyclerView onScroll:
mRecyclerView.addOnScrollListener(new HidingToolBar(getActivity()){

@Override
public void onMoved(int distance) {
((MainActivity)getActivity()).moveToolBar(distance);
}

@Override
public void onShow() {
((MainActivity)getActivity()).showToolBar();
}

@Override
public void onHide() {
((MainActivity)getActivity()).hideToolBar();
}
   });

Class for HidingToolBar:

public abstract class HidingToolBar extends RecyclerView.OnScrollListener{

private static final float HIDE_THRESHOLD = 10;
   private static final float SHOW_THRESHOLD = 70;

   private int mToolbarOffset = 0;
   private boolean mControlsVisible = true;
   protected int mToolbarHeight;
   private int mTotalScrolledDistance;

   public HidingToolBar(Context context) {
       mToolbarHeight = Utils.getToolbarHeight(context);
   }

   @Override
   public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
       super.onScrollStateChanged(recyclerView, newState);

       if(newState == RecyclerView.SCROLL_STATE_IDLE) {
        if(mTotalScrolledDistance < mToolbarHeight) {
                setVisible();
            } else {
                if (mControlsVisible) {
                    if (mToolbarOffset > HIDE_THRESHOLD) {
                        setInvisible();
                    } else {
                       setVisible();
                    }
                } else {
                    if ((mToolbarHeight - mToolbarOffset) > SHOW_THRESHOLD) {
                        setVisible();
                    } else {
                        setInvisible();
                    }
                }
            }
        }
    }

   @Override
   public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
       super.onScrolled(recyclerView, dx, dy);

       clipToolbarOffset();
       onMoved(mToolbarOffset);

       if((mToolbarOffset <mToolbarHeight && dy>0) || (mToolbarOffset >0 && dy<0)) {
           mToolbarOffset += dy;
       }
       
       mTotalScrolledDistance +=dy;
   }

   private void clipToolbarOffset() {
       if(mToolbarOffset > mToolbarHeight) {
           mToolbarOffset = mToolbarHeight;
       } else if(mToolbarOffset < 0) {
           mToolbarOffset = 0;
       }
   }

   private void setVisible() {
       if(mToolbarOffset > 0) {
           onShow();
           mToolbarOffset = 0;
       }
       mControlsVisible = true;
   }

   private void setInvisible() {
       if(mToolbarOffset < mToolbarHeight) {
           onHide();
           mToolbarOffset = mToolbarHeight;
       }
       mControlsVisible = false;
   }

   public abstract void onMoved(int distance);
   public abstract void onShow();
   public abstract void onHide();
}

Issue Visual:
/images/forum/upload/2016-01-31/04a43f1743404af577b7500b890e4c41.jpg