So now as you can see here these are the lines of code that I pasted here.
So as you can see here we have an image of you here.
So the layout of this image is much parent the layout height is zero t.p and the layout weight is number
one.
So now because we assigned the value 0 for the layout height and we assign de-value number one for the
layout weight.
This means that this image view is going to take the remaining to a height that is actually remained
here inside our layout.
OK.
So it's going to actually take the remaining height that that is remained inside this Pallant linearly
out.
Right.
So for example we have three rows of buttons as you can see here we have a test tube and we have the
entire space here.
So let's actually go inside this design top here as you can see.
So now as you can see we have these these buttons here.
We have this row.
We have this row and we have this row right.
And we have also this takes you here.
So as you can see if you have the remaining space here right.
So now because I designed the value zero for the layout height of my image view.
And then I assigned the value number one for the lead up to date.
That's going to actually take the entire space.
That is actually the main that's going to take the entire height that is remained here Enceladus linearly
out.
Right.
So let's go back to our text top here.
As you can see the Padam and now I got the idea I assigned the value and the animal for the gravities
as you can see here for the lay out gravity assigned the value center.
So this means that according to the parent as you can see here this image is going to actually positioned
at the center.
OK.
This image is going to be positioned at the center of its parent which is this linearly out.
And we have this attribute margin bottom which I assigned the value modeling value as you can see here
which is number nine 90 P And We have two more attributes margin left and margin right.
Right.
So now as you can see margin left value and modularize value so we need to define these resources inside
our demands that exemplify.
So just as you can see here at the top we have this tab here.
The minister said well I'll open it here and now I just need to create another resource demon.
And the name is going to be Margene left value.
And then I need to close this resource I need to close this tap here as you can see.
And for the value I can assign the value for example 15 DP Right.
And let's create another resource here so demon that name is going to be Margene right value.
And then I need to close this attach here.
And for the value again I can assign the value of 15 DP if we could actually use this value margin less
value twice inside our fragment that exemplified for example for the margin left and for the margin
right.
Because the value is the same 15 DP and 15 DP because.
But I just didn't want to actually make you confused.
OK.
I didn't want you to be confused about these values so I actually created two resources for the margin
left and for the margin.
Right.
So that makes sense.
So let's go back to our fragment underline minute segment here.
And as you can see the error is gone and we have this image view here at the bottom right as you can
see this image is actually taking the entire height that it's remained inside linearly out because he
assigns the value number one for the lay out weight and we assign the value zero for the layout height.
So hopefully that makes sense and we have these state type attribute which is going to specify how our
image is going to be actually put inside our image view.
So I actually chose feed Center which is very good.
It's going to actually put our image inside this at actually at the center of this image and it can
actually position it horizontally and vertically at the center.
It's not going to actually reduce the quality of our image or it's not going to actually match our image
a little bit bad to see this.
This is a very good attribute.
So use this one here feed center.
So it's going to fit our image horizontally and vertically at the center of this image for you.
So hopefully that makes sense.
And now as you can see this is our image you.
So here I'm going to actually pasting some islands of code here inside this linear layout and then I'm
going to explain to you what's going on here.
So as you can see here these are the lines of code that I pasted here.
So we have a takes through and the layout of it is much apparent and the layout height is that content
right.
And as you can see here the idea is to the answer.
So they lay out gravity is cental horizontal or but him.
So as you can see here I actually use this or operator here.
So in order to actually put this operator here you need to actually hold the shift key on your keyboard
and then present the letter back with the slash key on your keyboard.
OK.
This is actually called the OR operator.
So I am actually ordering these two values together.
So cental horizontal and this means that it's going to put this text view according to its parent at
the center of this linearly as reticle as you can see here.
So this is going to be positioned at the center of this linear layout.
Lay out gravity.
And this takes you is going to be at the bottom of this linearly out vertical.
Right.
So now we are inside this linearly as vertical and the state's view is going to be center horizontally.
So it's going to be positioned at the center of this linearly out of vertical horizontally as you can
see here.
And this is going to be at the bottom of this linearly out vertical.
And here we have this gravity attribute so this gravity attribute means the text of this text view.
So the text of this text is actually inside the state's view right.
So describe it he said it is going to position the text of this text view at the center Horizonte all
of this takes you right.
This is really important.
This lay out gravity is according to the linearly out vertical according to the planet.
Actually as you can see here.
So the palette of this thing is linearly out vertical but this gravity is actually related to the children
or the child of this takes which is the text of this text view right.
So gravity center Horizonte what this means is that it's going to position the text of the state's youth
center horizontally.
Right.
And we have also this text style attributes.
So as you can see here in order to use this attribute you can just use this attribute here and with
call and text style.
And then you can actually for example assign some values in order to actually see the options.
I just hold the control here on my keyboard and then person space on my keyboard.
And as as you can see here I can use it Halik bold or not my normal right.
So this one for this one I choose it Halik.
And the text size as you can see here is actually an other attribute.
So here we can specify that that value here.
So again if you need to go inside these demons that will in order to define this resource and set underline
font underline size.
So let's go inside this theme and studies them a modified.
And now I just need to create another resource daemon and the name is going to be answer underlined
font underline size.
Right.
And then I need to close this tag here and then for the value I can assign the value.
For example fifty eight is p.
So remember that for the font size of your text values always use s.p.
This is very important.
So first aid espie and now essentially go back to our fragment underline minute example here and now
as you can see here the error is gone right.
So hopefully that makes sense.
And now as you can see here the design the basic design of the application is actually finished.
So now.