title: Recyclerview doesn't resize after rotate screen
body: <p>I have a Recyclerview populated with items inserted by the user. I'm implementing the funtionality of rotation, because when i turn the device, the recyclerview shows empty. </p>
  
  <p>Debugging the app, i already check the integrity after and before the rotate and the ArrayList have the same size. I think that the problem is the <code>setNestedScrollingEnabled(false)</code> of the Recyclerview, i set this because i don't want to show a scroll in the rv.</p>
  
  <p><strong>The problem is</strong>: i'm in portrait mode and i add 3 items, it shows me perfect in the recyclerview. Check the image:</p>
  
  <p><a href="https://i.stack.imgur.com/vzS4C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vzS4C.png" alt="Portrait"></a></p>
  
  <p>When i rotate the screen to landscape, the arraylist of the recyclerview have the 3 items but the height doesn't change so it apppears to have only one item. </p>
  
  <p><a href="https://i.stack.imgur.com/5XS97.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5XS97.png" alt="enter image description here"></a></p>
  
  <p>So, How i resolve this? </p>
  
  <p><strong>Recyclerview:</strong></p>
  
  <pre><code>itemsRv = (RecyclerView) findViewById(R.id.itemsRv);
  itemsRv.setNestedScrollingEnabled(false);
  itemAutoCompleteAdapter = new ItemAutoCompleteAdapter(this);
  if(items ==null){
     items = new ArrayList&lt;&gt;();
  }
  itemsAdapter = new ItemsRowAdapter(this, items, new ItemsRowAdapter.itemsRowListener() {
    @Override
    public void editarItemOnClick(View v, int position) {
    editar_item(items.get(position), position);
    }
  
    @Override
    public void eliminarItemOnClick(View v, final int position) {
  
    }
  });
  itemsRv.setHasFixedSize(true);
  LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);
  itemsRv.setLayoutManager(mLayoutManager);
  itemsRv.setAdapter(itemsAdapter);
  </code></pre>
  
  <p><strong>Layout:</strong></p>
  
  <pre><code>  &lt;android.support.v7.widget.CardView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_margin="8dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:padding="8dp"&gt;
  
                  &lt;android.support.v7.widget.AppCompatTextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="left"
                      android:layout_marginBottom="4dp"
                      android:text="Items"
                      android:textSize="16sp"
                      android:textStyle="bold" /&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/header_rv_items"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="vertical"
                      android:visibility="visible"&gt;
  
                      &lt;LinearLayout
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:orientation="horizontal"
                          android:weightSum="4"&gt;
  
                          &lt;TextView
                              android:id="@+id/textView3"
                              android:layout_width="@dimen/widthColumnTable"
                              android:layout_height="wrap_content"
                              android:layout_weight="2.8"
                              android:textStyle="bold"
                              android:text="Descripción" /&gt;
  
                          &lt;TextView
                              android:id="@+id/textView5"
                              android:layout_width="@dimen/widthColumnTable"
                              android:layout_height="wrap_content"
                              android:layout_weight="0.5"
                              android:gravity="right"
                              android:textStyle="bold"
                              android:text="Cantidad" /&gt;
  
                          &lt;TextView
                              android:id="@+id/textView8"
                              android:layout_width="@dimen/widthColumnTable"
                              android:layout_height="wrap_content"
                              android:layout_weight="0.7"
                              android:gravity="right"
                              android:textStyle="bold"
                              android:text="Precio total" /&gt;
                          &lt;TextView
                              android:text="Acciones"
                              android:textStyle="bold"
                              android:layout_width="100dp"
                              android:gravity="right"
                              android:layout_height="wrap_content"
                              /&gt;
  
  
                      &lt;/LinearLayout&gt;
  
  
                  &lt;/LinearLayout&gt;
  
                  &lt;android.support.v7.widget.RecyclerView   &lt;----- HERE IT IS
                      android:id="@+id/itemsRv"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                       /&gt;
  
  
                  &lt;Button
                      android:id="@+id/btn_01_agregar_item"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_gravity="left"
                      android:layout_marginTop="20dp"
                      android:background="@drawable/border_spinner"
                      android:gravity="left|center_vertical"
                      android:paddingLeft="16dp"
                      android:paddingRight="16dp"
                      android:text="Ingrese el código o descrpción del producto"
                      android:textAllCaps="false"
                      android:textColor="#616161" /&gt;
  
  
              &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>i've tried to change the  <code>android:layout_height</code> to <code>wrap_content</code> and <code>match_parent</code> without success.</p>
  
  <p>Thank you very much!</p>