How To Create Custom Recycler View In Android

RecyclerView is a advanced version of listview. In this tutorial we are going to learn how to create a custom Recycler view in android Create new Project Open android studio =>new =>Project=>Select Empty Activity Adding Dependency Open build.gradle(Module:app) and add below recycler view dependency and rebuild project compile 'com.android.support:recyclerview-v7:25.3.1' Creating Recycler View Design After finishing gradle build Open activity_main.xml file and paste the below code to create a Recycler view widget in your Activity acitvity_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 :layout_width= "match_parent" android :layout_height= "match_parent" tools :context= "com.example. androidheap .rec...