title: Not able to Collapse/Expand the View in Appbarlayout
body: <p>I am using Appbarlayout followed by cordinatorlayout with a RecyclerView to just collapse/expand a simple TextView. But still don't know whats I am doing wrong there. The TextView(textViewMainTop) still not collapsing/expanding .Not able to findout the issue. Please have a look on my 
  xml code. </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"
          android:id="@+id/main_content"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&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:layout_weight="7"
          android:orientation="vertical" &gt;
  
         &lt;!--  &lt;LinearLayout
              android:id="@+id/container"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="3.5" &gt; --&gt;
  
               &lt;android.support.design.widget.AppBarLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
               android:layout_weight="3.5"&gt; 
  
              &lt;com.openskylabs.skymo.components.TypefacedTextView
                  android:id="@+id/textViewMainTop"
                  style="@style/custom_roboto_midium"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:background="@drawable/bubbled_textview"
                  android:gravity="center"
                  app:layout_scrollFlags="scroll|enterAlways"
                  android:text="Good evening, Eric"
                  android:textSize="17dp" /&gt;
  
              &lt;/android.support.design.widget.AppBarLayout&gt;
          &lt;!-- &lt;/LinearLayout&gt; --&gt;
  
          &lt;LinearLayout
              android:id="@+id/llTabLayout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="6.5"
              android:orientation="horizontal"&gt;
  
              &lt;LinearLayout
                  android:id="@+id/llFirstFavTab"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_weight="1"
                  android:gravity="center"
                  android:orientation="horizontal" &gt;
  
                  &lt;ImageView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/ic_fev_small" /&gt;
  
                  &lt;com.openskylabs.skymo.components.TypefacedTextView
                      style="@style/custom_roboto_midium"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="5sp"
                      android:text="Set Fav" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;View
                  android:id="@+id/viewVertical"
                  android:layout_width="0.5sp"
                  android:layout_height="match_parent"
                  android:background="#60000000" /&gt;
  
              &lt;LinearLayout
                  android:id="@+id/llSecondInviteTab"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_weight="1"
                  android:gravity="center"
                  android:orientation="horizontal"
                  android:visibility="visible" &gt;
  
                  &lt;ImageView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/ic_cont_small" /&gt;
  
                  &lt;com.openskylabs.skymo.components.TypefacedTextView
                      style="@style/custom_roboto_midium"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="5sp"
                      android:text="Invite" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
          &lt;View
              android:id="@+id/viewBelowRay"
              android:layout_width="match_parent"
              android:layout_height="1sp"
              android:background="#60000000" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="3"
          android:background="#eaeaea"
          android:gravity="center"
          android:orientation="vertical" &gt;
  
  
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/rvOrderList"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:visibility="gone"
              app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PvVTV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PvVTV.png" alt="enter image description here"></a></p>
  
  <p>Here I want to collapse the first part. In in second part I am using RecyclerView.</p>