‫Hello, my friends, and welcome back.
‫In this section, we'll start learning about the card views in Android.
‫A card view is a UI element in Android that provides a flexible and customizable container for displaying
‫content.
‫It's part of the Android X Library and is designed to display information in a visually appealing card
‫like format.
‫Card view is often used to group related pieces of information together, such as user profiles, product
‫details or any other type of content.
‫And also it can be used for creating items in list, view or inside recycler view.
‫But the better approach is with using the recycler view.
‫What are the steps to create a card view app?
‫First of all, we need to design the card view item layout, which is an XML layout representing the
‫layout of a single item in the recycler view.
‫The second step is to create the recycler view creating a recycler view in the activity and initializing
‫it.
‫The third step is the modal class representing the data class that acts as a structure for holding the
‫information for every item of recycler view.
‫The fourth step is the adapter class holding all methods dealing with recycler view implementation from
‫creating, binding and determining the count of items.
‫And the last step is the view holder that holds the references to the views within each item's layout.
‫Optimizing View Lookups.
‫Let's jump into Android studio and start learning about the card views.