title: RecyclerView not render cells with 0dp height
body: <p>I made an app with onboarding flow.
  I have a recyclerview in my MainActivity class and I want to update it when onResume hits(Right after the onboarding flow).
  So this how the recycler xml looks:</p>
  
  <pre><code>&lt;android.support.v7.widget.RecyclerView
          android:id="@+id/notifyRecycler"
          android:layout_width="0dp"
          android:layout_height="230dp"
          android:clipToPadding="false"
          android:orientation="horizontal"
          app:layoutManager="android.support.v7.widget.LinearLayoutManager"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  </code></pre>
  
  <p>and this it the cell layout:</p>
  
  <pre><code>    &lt;android.support.constraint.ConstraintLayout 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:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;View
          android:id="@+id/cardDetails"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:orientation="horizontal"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
  &lt;/...&gt;
  </code></pre>
  
  <p>I swap the data within the adapter with clear and add and everything works great when I change the cell layout view height from 0dp to match parent.
  It also works great for the first run from oncreate, but when I try to update from onResume it just not notify the data set changed.
  Here's the code of the adapter called from onResume function:</p>
  
  <pre><code>public void setNewData(ArrayList&lt;Model&gt; models) {
      this.notifications.clear();
      this.notifications.addAll(models);
      notifyDataSetChanged();
  }
  </code></pre>
  
  <p>in onCreate:</p>
  
  <pre><code>adapter = new NotificationsAdapter(new ArrayList&lt;&gt;(), this);
  notifyRecycler.setAdapter(adapter);
  </code></pre>
  
  <p>in onResume,I made boolan var to make it update only when resuming the app:</p>
  
  <pre><code>ArrayList&lt;NotificationModel&gt; notificationsList = new ArrayList&lt;&gt;();
      notificationsList.add(...);
      notificationsList.add(...);
  
      adapter.setNewData(notificationsList);
  </code></pre>