title: NestedScrollView with RecyclerView
body: <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"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/divider"
      tools:ignore="RtlHardcoded"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/main.appbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/main.collapsing"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"&gt;
              &lt;ImageView
                  android:id="@+id/wall"
                  android:layout_width="match_parent"
                  android:layout_height="300dp"
                  android:scaleType="centerCrop"
  
                  android:tint="#11000000"
                  app:layout_collapseMode="parallax"
                  app:layout_collapseParallaxMultiplier="0.9"/&gt;
              &lt;FrameLayout
                  android:id="@+id/main.framelayout.title"
                  android:layout_width="match_parent"
                  android:layout_height="150dp"
                  android:layout_gravity="bottom|center_horizontal"
                  android:layout_marginBottom="0dp"
                  android:orientation="vertical"
                  app:layout_collapseMode="parallax"
                  app:layout_collapseParallaxMultiplier="0.3"&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/main.linearlayout.title"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center"
                      android:layout_marginTop="0dp"
                      android:orientation="vertical"&gt;
  
                      &lt;TextView
                          android:id="@+id/profile_name"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center_horizontal"
                          android:gravity="bottom|center"
                          android:text="Amit Kumar yadav"
                          android:textColor="@android:color/white"
                          android:textSize="24sp"/&gt;
  
                      &lt;TextView
                          android:id="@+id/profile_status"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center_horizontal"
                          android:layout_marginTop="2dp"
                          android:text="@string/quila_tagline"
                          android:textColor="@android:color/white"/&gt;
                      &lt;LinearLayout
                          android:layout_marginTop="2dp"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:orientation="horizontal"
                          &gt;
  
                          &lt;ImageView
                              android:layout_width="14dp"
                              android:layout_height="14dp"
                              android:layout_gravity="center_horizontal"
                              android:layout_weight="1"
                              android:scaleType="fitEnd"
                              android:src="@drawable/ic_love"/&gt;
  
                          &lt;TextView
                              android:id="@+id/relationship"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:paddingLeft="5dp"
                              android:text="Single"
                              android:textSize="12dp"/&gt;
                      &lt;/LinearLayout&gt;
                  &lt;/LinearLayout&gt;
              &lt;/FrameLayout&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/nestedScroll"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="-20dp"
          android:scrollbars="horizontal"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"
              &gt;
  
              &lt;android.support.v7.widget.CardView
                  android:id="@+id/cardProfileRates"
                  android:layout_marginLeft="5dp"
                  android:layout_marginRight="5dp"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:elevation="8dp"&gt;
  
               // 2-3 linear layout
  
              &lt;/android.support.v7.widget.CardView&gt;
  
              &lt;LinearLayout
                  android:id="@+id/userInfo"
                  android:layout_below="@id/cardProfileRates"
                  android:layout_marginTop="20dp"
                  android:layout_marginBottom="20dp"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"&gt;
  
                     // 2-3 linear layout
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/userPhotos"
                  android:layout_below="@+id/userInfo"
                  android:layout_marginTop="10dp"
                  android:layout_marginBottom="20dp"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:background="@color/white"
                  android:padding="10dp"
                  &gt;
  
  
                  &lt;/LinearLayout&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:layout_below="@+id/userPhotos"
                  android:id="@+id/user_posts"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:nestedScrollingEnabled="false"
               app:layout_behavior="@string/appbar_scrolling_view_behavior"
                  &gt;
  
              &lt;/android.support.v7.widget.RecyclerView&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/main_toolbar99"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
  
          app:layout_anchor="@id/main.framelayout.title"
          app:theme="@style/ThemeOverlay.AppCompat.Dark"
          app:title=""&gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:orientation="horizontal"&gt;
  
              &lt;Space
                  android:layout_width="@dimen/image_final_width"
                  android:layout_height="@dimen/image_final_width"/&gt;
  
              &lt;TextView
                  android:id="@+id/profile_title"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:layout_marginLeft="8dp"
                  android:gravity="center_vertical"
                  android:text="@string/quila_name2"
                  android:textColor="@android:color/white"
                  android:textSize="20sp"/&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  
      &lt;de.hdodenhof.circleimageview.CircleImageView
          android:id="@+id/profilePic"
          android:layout_width="@dimen/image_width"
          android:layout_height="@dimen/image_width"
          android:layout_gravity="center_horizontal"
          android:src="@drawable/face"
          app:civ_border_color="@android:color/white"
          app:civ_border_width="1dp"
          app:finalHeight="@dimen/image_final_width"
          app:finalYPosition="2dp"
          app:layout_behavior="in.fabits.fabits.AvatarImageBehavior"
          app:startHeight="2dp"
          app:startToolbarPosition="2dp"
          app:startXPosition="2dp"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>The problem is that when i open this activity every thing above recyclerview i.e., (1 cardview and 2 LinearLayout) are pushed up and only recyclerview is showing by default.</p>
  
  <p>To see my cardview and linearlayout i have to scrollup to see i.e, recyclerview is getting somehow focus by default.</p>
  
  <p>I have also tried </p>
  
  <pre><code>recyclerView.setNestedScrollingEnabled(false);
  ViewCompat.setNestedScrollingEnabled(recyclerView, false);
  </code></pre>
  
  <p>but it makes no change.</p>
  
  <p>so i trying to get cardview visible(or on focus) because it is above recyclerview is that possible</p>