RecyclerView Using StaggeredGridLayout in Android

Please refer RecyclerView before going through this Tutorial. Click Here 1. ADD GRADLE DEPENDENCY IN MODULE BUILD.GRADLE  FILE FOR RECYCLERVIEW AS WELL AS CARDVIEW. compile 'com.android.support:recyclerview-v7:25.0.1' compile 'com.android.support:cardview-v7:23.3.+'   2. GO TO XML FILE AND ADD RECYCLERVIEW. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="eazy.recyclerviewexample.MainActivity"> <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="match_parent" … Continue reading RecyclerView Using StaggeredGridLayout in Android