‫Welcome back.
‫We created the recycler View and we need to display items in this recycler view.
‫So the first step is to design the layout, the custom layout for each item in this recycler view go
‫to layout.
‫Create a new Layout resource file and I'll name it as Item Layout.
‫Click okay and go to Split Mode.
‫This layout will contain two text views and one image view.
‫One image view to display the image of the item, and two text views to display the title and the description
‫of this item, I'll start with the image view.
‫This is our image view, and I need to change the height of this layout to wrap content.
‫Okay.
‫And you can see it.
‫It's better now.
‫The image view is centered vertically.
‫I'll create the two text views.
‫This is our title.
‫Now I'll create another text and make sure that you set them to white, because the background of the
‫recycler view will be this color.
‫And here we go.
‫This is our layout.
‫You can see it here.
‫It's more clear.
‫This is our image view and two text views, one for the title and one for the description.
‫This layout will act as a template for every item in the recycler view.