 <p>The Recycle View supports AutofitRecycleView.</p> <p>You need to add <code>android:numColumns="auto_fit"</code> in your xml file.</p> <p>You can refer to this <a href="http://blog.sqisland.com/2014/12/recyclerview-autofit-grid.html" rel="nofollow">AutofitRecycleViewLink</a></p>