title: NestedScrollview won't start from top
body: <p>I have a Recyclerview in a NestedScrollview.. everything is working fine except one thig. I have total three view in NestedScrollview First two are LinearLayout then Recyclerview. when i run my app the Activity don't show top two layout it starts from top of the Recyclerview.</p>
  
  <p>How its show my layout:</p>
  
  <p><a href="https://i.stack.imgur.com/4BvgF.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/4BvgF.jpg" alt="How its show my layout"></a></p>
  
  <p>How its suppose to show:</p>
  
  <p><a href="https://i.stack.imgur.com/9GmMp.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/9GmMp.jpg" alt="How its suppose to show"></a></p>
  
  <p>And i am loading this enite layout under a viewpager and my viewpager is a child of Coordinator Layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.NestedScrollView
  android:id="@+id/scrollView"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/home_layout_background"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"&gt;
  
          &lt;com.daimajia.slider.library.SliderLayout
              android:id="@+id/image_slider"
              android:layout_width="match_parent"
              android:layout_height="@dimen/image_slider_height"
              android:layout_marginTop="@dimen/image_slider_top_margin" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="@dimen/popular_fragment_side_padding"
          android:layout_marginRight="@dimen/popular_fragment_side_padding"
          android:layout_marginTop="@dimen/popular_fragment_side_padding"
          android:orientation="horizontal"
          android:weightSum="4"&gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1"&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/free_delivery"
                  android:layout_width="76dp"
                  android:layout_height="76dp"
                  android:layout_centerInParent="true"
                  android:background="@color/white"&gt;
  
                  &lt;RelativeLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerInParent="true"&gt;
  
                      &lt;ImageView
                          android:id="@+id/btnImageViewFreeDelivery"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerHorizontal="true"
                          android:background="@drawable/icon_free_delivery" /&gt;
  
                      &lt;TextView
                          android:id="@+id/btnTextFreeDelivery"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/btnImageViewFreeDelivery"
                          android:layout_centerHorizontal="true"
                          android:layout_marginTop="2dp"
                          android:text="@string/free_delivery_txt"
                          android:textColor="@color/popular_fragment_four_btn_txt"
                          android:textSize="@dimen/popular_fragment_four_btn_txt_size" /&gt;
                  &lt;/RelativeLayout&gt;
  
              &lt;/RelativeLayout&gt;
  
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1"&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/flash_deals"
                  android:layout_width="76dp"
                  android:layout_height="76dp"
                  android:layout_centerInParent="true"
                  android:background="@color/white"&gt;
  
  
                  &lt;RelativeLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerInParent="true"&gt;
  
                      &lt;ImageView
                          android:id="@+id/btnImageViewFlashDeals"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerHorizontal="true"
                          android:background="@drawable/icon_flash_deals" /&gt;
  
                      &lt;TextView
                          android:id="@+id/btnTextFlashDeals"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/btnImageViewFlashDeals"
                          android:layout_centerHorizontal="true"
                          android:layout_marginTop="2dp"
                          android:text="@string/flash_deals_txt"
                          android:textColor="@color/popular_fragment_four_btn_txt"
                          android:textSize="@dimen/popular_fragment_four_btn_txt_size" /&gt;
                  &lt;/RelativeLayout&gt;
  
              &lt;/RelativeLayout&gt;
  
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1"&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/for_you"
                  android:layout_width="76dp"
                  android:layout_height="76dp"
                  android:layout_centerInParent="true"
                  android:background="@color/white"&gt;
  
                  &lt;RelativeLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerInParent="true"&gt;
  
                      &lt;ImageView
                          android:id="@+id/btnImageViewForYou"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerHorizontal="true"
                          android:background="@drawable/icon_for_you" /&gt;
  
                      &lt;TextView
                          android:id="@+id/btnTextForYou"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/btnImageViewForYou"
                          android:layout_centerHorizontal="true"
                          android:layout_marginTop="2dp"
                          android:text="@string/for_you_txt"
                          android:textColor="@color/popular_fragment_four_btn_txt"
                          android:textSize="@dimen/popular_fragment_four_btn_txt_size" /&gt;
                  &lt;/RelativeLayout&gt;
  
  
              &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1"&gt;
  
              &lt;RelativeLayout
                  android:id="@+id/shake_deals"
                  android:layout_width="76dp"
                  android:layout_height="76dp"
                  android:layout_centerInParent="true"
                  android:background="@color/white"&gt;
  
                  &lt;RelativeLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerInParent="true"&gt;
  
                      &lt;ImageView
                          android:id="@+id/btnImageViewShakeDeals"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerHorizontal="true"
                          android:background="@drawable/icon_shake_deals" /&gt;
  
                      &lt;TextView
                          android:id="@+id/btnTextShakeDeals"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/btnImageViewShakeDeals"
                          android:layout_centerHorizontal="true"
                          android:layout_marginTop="2dp"
                          android:text="@string/shake_deals"
                          android:textColor="@color/popular_fragment_four_btn_txt"
                          android:textSize="@dimen/popular_fragment_four_btn_txt_size" /&gt;
                  &lt;/RelativeLayout&gt;
  
              &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
      &lt;/LinearLayout&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recycler_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="@dimen/popular_fragment_side_padding"
          android:layout_marginRight="@dimen/popular_fragment_side_padding"
          android:layout_marginTop="18dp"
          android:scrollbars="none" /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>
  
  <p>My ViewPager 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:tools="http://schemas.android.com/tools"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/main_content"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/viewPager"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/home_layout_background"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"/&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:layout_gravity="center"
          android:background="@drawable/toolbar_background"
          app:layout_scrollFlags="scroll|enterAlways"&gt;
  
          &lt;TextView
              android:id="@+id/toolbar_title"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:text="@string/title_home"
              android:textColor="@color/toolbar_title_txt_color"
              android:textSize="@dimen/toolbar_txt_size"
              android:textStyle="bold" /&gt;
  
      &lt;/android.support.v7.widget.Toolbar&gt;
  
  
      &lt;android.support.design.widget.TabLayout android:id="@+id/tabs"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/white"
          app:tabMode="scrollable"
          app:tabTextColor="@color/tab_bar_txt"
          app:tabIndicatorColor="@color/tab_bar_txt_selected"
          app:tabSelectedTextColor="@color/tab_bar_txt_selected"
          app:tabTextAppearance="@style/TabTextAppeareance"/&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>