No good example about RecyclerView and StaggeredGridLayoutManager in Android Docs

For those who are still landing up on this question. You could modify the following code as per your needs: First add dependency libraries for Android RecyclerView and CardView compile ‘com.android.support:appcompat-v7:23.4.0’ compile ‘com.android.support:cardview-v7:23.4.0’ compile ‘com.android.support:recyclerview-v7:23.4.0’ Your main activity layout activity_main.xml will simply be like <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:padding=”7dp” tools:context=”.MainActivity”> <android.support.v7.widget.RecyclerView android:id=”@+id/recycler_view” android:layout_width=”match_parent” android:layout_height=”match_parent” … Read more