title: How can I fill RecyclerView with GridLayoutManager from right to left
body: <p>I'm trying to fill some data into a <code>RecyclerView</code> with <code>GridLayoutManager</code>:</p>
  
  <pre><code>GridLayoutManager layoutManager = new GridLayoutManager(this, 3, GridLayoutManager.VERTICAL, false);
  </code></pre>
  
  <p>This will fill the data into the grid from <strong>left to right</strong>. The first item will be put into top-left place, etc.</p>
  
  <p>But the app I'm developing is designed for an RTL language, so I need to make it fill from <strong>right to left</strong>.</p>
  
  <p>I tried to change the last argument to <code>true</code>. But it just scrolled the <code>RecyclerView</code> all the way down.</p>
  
  <p>Also setting <code>layoutDirection</code> attribute for <code>RecyclerView</code> doesn't work (without considering that my min API is 16 and this attribute is added for API17+):</p>
  
  <pre><code>&lt;android.support.v7.widget.RecyclerView
          android:id="@+id/grid"
          android:layoutDirection="rtl"
          android:layout_width="match_parent"
          android:layout_height="match_parent"/&gt;
  </code></pre>
  
  <p>How can I create a right to left filled grid using <code>RecyclerView</code>?</p>