title: GridLayoutManager set column and row count
body: <p>I used <code>GridLayoutManager</code> for <code>RecyclerView</code> with <code>GridLayoutManager.HORIZONTAL</code> orientation. SpanCount is not work correctly for me, because it depend from layout orientation, but i know how much columns and rows i need. How i can do it?</p>
  
  <p>From documentation to <code>setSpanCount(int spanCount)</code>:</p>
  
  <pre><code>/**
   * Sets the number of spans to be laid out.
   * &lt;p&gt;
   * If {@link #getOrientation()} is {@link #VERTICAL}, this is the number of columns.
   * If {@link #getOrientation()} is {@link #HORIZONTAL}, this is the number of rows.
   *
   * @param spanCount The total number of spans in the grid
   * @see #getSpanCount()
   */
  </code></pre>
  
  <p>Example: My <code>RecyclerView</code> size is <code>match_parent</code>, if i have 9 items, i have grid 3x3, if i have 5 items, i have grid 3x2, but i want 2x3.</p>
  
  <p>P.S. I dont want set <code>GridLayoutManager.VERTICAL</code> layout orientation.</p>
  
  <p>In screenshot is not correctly, i want grid 2x3.</p>
  
  <p><a href="https://i.stack.imgur.com/XyPMj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XyPMj.png" alt="it is not correct for me"></a></p>