‫Hello my friends.
‫In this video we are going to create the layout for our OCR application.
‫I will go into the split mode.
‫I will remove this text view.
‫I'm from here.
‫And now I will add an image of you.
‫So first of all, it would be like a fixed size of 200 DPI, 200 DPI, which is good and 200 DPI.
‫I will drag this.
‫I will infer its constraints by clicking on this button and I will add its ID, which is the image view.
‫So it's good to laugh.
‫I will add two buttons, the first one for choosing an image and the second one is for reading the text.
‫So it would be a like a narrator.
‫Okay, so the first one is the button for choosing.
‫It would be your app content trap content.
‫ID would be an image choose image and.
‫Choose image
‫and I will
‫put the text choose image.
‫And here we go.
‫I will add it right under.
‫This button or the image view.
‫And this is good.
‫Another button here
‫would be rap content.
‫Rap content.
‫ID would be speech and text would be a read text.
‫I will drag it.
‫I will add its constraint under the image and I will add it like this.
‫Okay.
‫So we have now the first button and the second button and we have this image view.
‫Now.
‫The third or the fourth thing that I need to add is a text view.
‫So this text view would be text view.
‫Having rap content and rap content and size.
‫Text size would be 16 XP and the idea would be text.
‫Okay, so where is this text view?
‫It's here.
‫I will.
‫At.
‫Let's constraints.
‫Let me add match parent in order to.
‫To be visible for us.
‫And I will add the.
‫Here I will add margin left as 16 SB and margin right
‫it would be 16 SB and this is good.
‫Text size would be 24 also if you need.
‫Now we have finished our layout.
‫Let's go to our main activity and start adding the function.