WEBVTT

00:00.200 --> 00:01.260
Welcome back.

00:01.280 --> 00:05.810
In this video, we'll create the layout for the Recycler View items.

00:05.840 --> 00:13.640
Go to Layout New Layout Resource file and I name it as Journal Underscore Row.

00:13.670 --> 00:19.070
This will act as a template for every item in our recycler view.

00:19.100 --> 00:20.300
Go split mode.

00:20.300 --> 00:25.890
And here I need to change the constraint layout into card view.

00:25.910 --> 00:28.310
I'll change the height to Wrapcontent.

00:28.340 --> 00:35.120
Then I need to add some attributes like the card corner radius equal to ADP.

00:35.300 --> 00:40.740
And here I need to use card use compat padding equal to true.

00:40.760 --> 00:45.440
Then I'll create a linear layout that contains a text view and image button.

01:26.280 --> 01:33.510
This is our Linearlayout one text view for the title and one image button for sharing the journal.

01:33.540 --> 01:40.080
Now I need to create another linear layout that contains three text views and one image view.

02:42.610 --> 02:44.260
And this is our layout.

02:44.290 --> 02:50.170
Of course, you can download this layout directly from the resources folder in our section.
