Set last grid to full width using GridLayoutManager (RecyclerView)
<p>I am using a <code>RecyclerView</code> with <code>GridLayoutManager</code> to show some items in grid pattern. It's working good and showing items in 2 columns inside grid.</p>

<p>But when the number of items is odd, I want that the last item has to be full width (same as width of <code>RecyclerView</code>). </p>

<p>Is there anyway to do it using <code>GridLayoutManager</code> or I have to build custom design?</p>

<p>Please help.</p>