ArhamTechMind

Building future while learning

RecyclerView

1 min read

Step 1:build.gradle compile 'com.android.support:cardview-v7:26+' compile 'com.android.support:recyclerview-v7:26.+' Step 2:main_activity.xml <?xml version="1.0" encoding="utf-8"?>  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    tools:context="csdevbin.arham.recyclerviewdemo.MainActivity">    <android.support.v7.widget.RecyclerView        android:id="@+id/my_recycler_view"       ...