title: RecyclerView height wrap_content doesn't work in NestedScrollView
body: <p>So I have <strong>recyclerView</strong> with height <strong>wrap_content</strong> as I understand this means that <strong>recyclerView</strong> should expand and collapse whenever I add items to it or remove, but for some reason in <strong>NestedScrollView</strong> it doesn't behave like that when I add new Objects to it, it stays same size as it was any ideas what could be wrong?
  Tried adding </p>
  
  <blockquote>
    <p>android:fillViewport="true" </p>
  </blockquote>
  
  <p>But no reactions as far as I understand it could be because <strong>RecyclerView</strong> not getting updated when children of it changes, because when I restart app it collapses or expands to proper size.</p>
  
  <p>Here is my xml:</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"
      android:background="@color/icons"
      android:orientation="vertical"&gt;
  
  
  &lt;LinearLayout
      android:id="@+id/main_holder"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fillViewport="true"
      android:orientation="vertical"&gt;
  
      &lt;include layout="@layout/toolbar" /&gt;
  
  
          &lt;android.support.v4.widget.NestedScrollView
              android:id="@+id/nested"
              android:fillViewport="true"
              android:scrollbars="none"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;LinearLayout
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"&gt;
  
                  &lt;RelativeLayout
                      android:id="@+id/empty_group_view"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:orientation="vertical"
                      android:visibility="gone"&gt;
  
                      &lt;RelativeLayout
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerInParent="true"&gt;
  
                          &lt;TextView
                              android:id="@+id/empty_text_first"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_centerVertical="true"
                              android:text="@string/no_group_first"
                              android:textColor="@color/secondary_text"
                              android:textSize="17sp" /&gt;
  
                          &lt;ImageView
                              android:id="@+id/add_icon"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_centerVertical="true"
                              android:layout_toEndOf="@+id/empty_text_first"
                              android:src="@drawable/ic_add_group_gry" /&gt;
  
                          &lt;TextView
                              android:id="@+id/empty_text_second"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_centerVertical="true"
                              android:layout_toEndOf="@+id/add_icon"
                              android:text="@string/no_group_second"
                              android:textColor="@color/secondary_text"
                              android:textSize="17sp" /&gt;
  
                      &lt;/RelativeLayout&gt;
                  &lt;/RelativeLayout&gt;
  
                  &lt;TextView
                      android:textSize="14sp"
                      android:layout_marginStart="6dp"
                      android:layout_marginTop="10dp"
                      android:layout_marginBottom="10dp"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Favorite groups"/&gt;
  
  
                  &lt;android.support.v7.widget.RecyclerView
                      android:id="@+id/favorite_group_list"
                      android:nestedScrollingEnabled="true"
                      android:layout_width="match_parent"
                      android:layout_height="156dp"
                      android:layout_gravity="center"
                      android:background="@color/icons"
                      android:padding="6dp"&gt;
                  &lt;/android.support.v7.widget.RecyclerView&gt;
  
                  &lt;TextView
                      android:textSize="14sp"
                      android:layout_marginBottom="10dp"
                      android:layout_marginTop="10dp"
                      android:layout_marginStart="6dp"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Groups"/&gt;
  
                  &lt;android.support.v7.widget.RecyclerView
                      app:layout_behavior="@string/appbar_scrolling_view_behavior"
                      android:id="@+id/group_list"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:background="@color/background"
                      android:nestedScrollingEnabled="false"
                      android:padding="6dp"&gt;
  
                  &lt;/android.support.v7.widget.RecyclerView&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/android.support.v4.widget.NestedScrollView&gt;
  
  &lt;/LinearLayout&gt;
  
  
  &lt;android.support.design.widget.FloatingActionButton
      android:id="@+id/add_new_group"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom|end"
      android:layout_margin="16dp"
      android:src="@drawable/ic_playlist_add_48px"
      app:behavior_autoHide="true"
      app:layout_anchor="@id/main_holder"
      app:layout_anchorGravity="bottom|right|end" /&gt;
  </code></pre>
  
  <p></p>