title: RecyclerView with 2 columns. Not center vertically
body: <p>Here my fragment set recyclerView:</p>
  
  <pre><code>sortRecyclerView.setHasFixedSize(true);
  RecyclerView.LayoutManager rvLayoutManager = new GridLayoutManager(getActivity(), 2);
  sortRecyclerView.setLayoutManager(rvLayoutManager);
  </code></pre>
  
  <p>Here fragment layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/place_holder_color"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/sortRecyclerView"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:scrollbars="vertical"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Here my item 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"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"&gt;
  
      &lt;ImageView
          android:id="@+id/imageViewPhoto"
          android:layout_width="@dimen/preview_image_height"
          android:layout_height="@dimen/preview_image_height"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;ImageView
          android:id="@+id/imageViewFavorite"
          android:layout_width="28dp"
          android:layout_height="28dp"
          android:layout_margin="10dp"
          android:src="@drawable/ic_like_inactive"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;android.support.constraint.ConstraintLayout
          android:id="@+id/bottomContainer"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:background="@drawable/offer_rounded_corner_bottom_bg"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@id/imageViewPhoto"&gt;
  
          &lt;TextView
              android:id="@+id/titleTextView"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:ellipsize="end"
              android:maxLines="1"
              app:layout_constraintEnd_toStartOf="@+id/imageViewDownload"
              app:layout_constraintStart_toStartOf="@id/bottomContainer"
              app:layout_constraintTop_toTopOf="@id/bottomContainer" /&gt;              
  
      &lt;/android.support.constraint.ConstraintLayout&gt;   
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>And here result with 2 columns:</p>
  
  <p><a href="https://i.stack.imgur.com/0T7vY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0T7vY.png" alt="rv"></a></p>
  
  <p>As you can see the items of RecyclerView is align by left side. But I need to center it vertically. </p>
  
  <p>Here result with one column (again not align on center)</p>
  
  <p><a href="https://i.stack.imgur.com/iwcVX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iwcVX.png" alt="one"></a></p>