Recyclerview steps
in the main activity, add recycler view activity_main.xml <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout 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 =".MainActivity" > <androidx.recyclerview.widget.RecyclerView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/recyclerView" /> </androidx.constraintlayout.widget.ConstraintLayout> in the layout file, add a layout to add the items to display item_list, make the layout as MaterialCardView. Add linear layout and add the required stuffs with match parent, gravity...