
The complete code of recyclerview_row.xml is shown below įirst, we create a MyData.java class, and add the following code as shown below. Next, we create a new layout resource file ( recyclerview_row.xml ) inside it, we add a simple ImageView and TextView set. Now, go to app -> res -> layout -> activity_main.xml and add RecyclerView as shown below. Implementation 'androidx.recyclerview:recyclerview:1.2.1'īefore applying any changes to the activity_main.xml file, we need an image and text which we will show in the Recycler View, you can download any images and put the image in the app -> res -> drawable, and give it a suitable name. Go to Gradle Scripts -> adle (Module: app) section and import below dependencies, and click the " sync Now" show at the top: dependencies Now, wait for the project to finish building. Next click on the Finish button after filling in all the details, Open Your Android Studio Click on " Start a new Android Studio project"(Learn how to set up Android Studio and create your first Android project).Ĭhoose " Empty Activity" from the project template window and click Next.Įnter the App Name, Package name, save location, language( Java/ Kotlin, we use Java for this tutorial ), and minimum SDK(we are using API 19: Android 4.4 (KitKat)).

Recycler View is a View in android studio which is similar to Listview but with more controls and features. In this article, we are going to add Recycler View to our android app. Android SDK Manager & required Packages.
