So now let's actually go back to our text tab here as you can see just click on this text tab.
And here we have this value right.
Ten people just change the value to add sign at sign D-men And now as you can see we have disvalue just
selected and present and tell key on your keyboard.
So let's go back to our Design tab and here we can see this value.
So hopefully that makes sense.
And here I want to show you another important point.
The main important point is that here let's actually assign the value.
For example number one for the lay out rate of the state's view.
OK.
So let's go back to our take step here just selectees takes top here at the bottom.
And here for this takes you actually add another attribute this time I just want to change the weight
of the stakes with the lay out weight of the states.
So here I'll just put this while you wait.
And here you can see that the autocomplete feature is going to help me to choose this attributes.
And here inside the double quotes I can put a value in number one for the lay out weight of this takes
you.
So let's go back to what is on tap here.
And now as you can see here the height of this text view is actually taking the entire height of this
linearly or vertical.
Right.
But there is a problem here because this takes a view because I assigned the value number one for the
lay out weight of the state's view Vinney to actually give the value number zero for the layout height
of this text view because it's going to actually give us an error if you actually assign a value for
the labeled height for example value other than 0.
OK because we assign the value number one to this for the weight of this text view.
We need to put a value in number 0 for the layout height of the state's view.
Why.
Because the distance really is actually inside a linearly or vertical.
OK.
So remember that in inside a linearly or vertical you need to put your components below each other.
OK.
And assign the value.
Number one for the layout weight of these takes view.
So in that time for that specific case we need to assign the value number 0 for the layout height of
the state's view.
And as you can see here I assigned the value zero for the height of the sticks view.
And this takes view is actually taking the entire height of this linearly and vertical as you can see
here.
Right.
So now let's actually add another component into this linearly Athletica and vertical and see what happens.
So in situs widgets folder as you can see we have these components let's add for example a button or
letters let's let's add another face.
So just select takes you here and here as you can see in say this componentry section we can also track
our components into these componentry section.
So just selectees takes you here and put it here inside this linearly vertical.
Now as you can see here are text view.
Here it is actually inside this linearly as vertical.
So what happened here.
Now we can see this takes you here and we have another takes here right.
So if we actually select this new text with that I added here as you can see for.
And now let's look at the properties of the stakes.
So the idea is takes you to right and now as you can see here the layout to read is match parent but
the layout height is zero.
OK.
So the idea is sumed that because we want to add this component into this linearly or vertical delay
layout height should be zero.
And the layout weight is actually the number one.
OK.
And if we actually select this takes view here.
This place that we actually put here now as you can see the layout of it is number one and the height
is zero.
Right.
So big when I actually add it this takes you into this linearly vertical.
The idea assumed that the layout height is going to be 0 and the lay of the weight is going to be number
one.
So in this way these two takes views.
So let's go back to what is on tap.
These two tables as you can see here.
These two text views as you can see in this way are actually taking only a half of the height of their
parent which is these linearly as vertical as you can see here.
OK.
So now as you can see the layout height of this linearly as vertical is actually much Pallant right.
But as you can see here we have two text views inside are linearly as vertical.
And each of these takes viewers as you can see as you can see here are actually taking only a half of
the height of their parent which is this linearly and vertical and that's of these values that we actually
changed first the assigned the value.
Number one for the lay out weight of our components and the assigned value number is zero for the height
of our user interface components such as these it takes views.
OK.
This is very important.
When you add the value number one for the out weight of these taste views here you'll need to actually
assign the value number to zero for the lay out height.
This takes two views because this takes views are inside a linearly out vertical.
OK.
And this linearly as vertical is going to actually put user interface components below each other.
So hopefully that makes sense.
So if you have any questions please post the discussion in the course and then I'll do my best to answer
all of your questions.
OK.
So if you want to you can actually change the lay out rate of these we used to for example number 50.
So as you can see here I selected both of these takes views.
So if you want to select both of these textbooks you just need to hold the shift key and then select
both of these takes views.
And this time I assign de-value number 50 for the lay out weight of the states views.
So in this way as you can see here it's going to actually only take this takes views are going to only
take only a half of the height of the parent.
So if we actually press an interview on my keyboard now you can see here nothing changed.
So if you put the value in number 50 or number one it doesn't make any difference.
In this case.
OK.
So hopefully that makes sense.
So now let's actually delete this.
It takes view here just select it and then person delete key on your keyboard.
So if you have this text here.
So what happens if we actually run my application for example in a very bigger screen.
For example a 10 inch tablet.
Right.
So in that case I need to actually increase the size of this text view.
So for that specific case I need to actually change that to the size of this text view.
So just selectees takes you here and now let's actually find the text size attribute.
So as you can see here we have these takes these attributes.
And as you can see we have this dot dot dot button here right as you can see here.
Just click on it and he has again see this window is opened and he here at the top right hand side.
We have this value add new resource just click on it and then click on this new D-men value.
So here we need to actually specify the resource name.
So the resource name is going to be the same as the value that we actually specified for that text size.
Right.
Welkom underlined text underlined size.
This is very important.
Disvalue must be the same as that specific value that we put inside these demons that exemplified Welkom
underlined text underlined size and the resource value for for example a bigger screen size such as
a 10 inch tablet of would be for example number one hundred and may and the source said is going to
be made and the filename is going to be demoness that example.
OK.
So here let's actually create an ordered directory for our values that are going to be specified for
bigger screens.
So here I just need to click on the plus button here this ad button here at the bottom.
Click on it and here as you can see this open this new resource directory window is actually open.
Right.
So here for this are available qualifiers.
I just need to select this screen here just select it and then click on the double arrow button here
and here for the screen I just need to specify a value for example Number 600 and this value is going
to determine that at least our device should be as 600 feet that size of the Viets of our device should
be 600.
And and in that specific case the Android is going to actually specify what value is going to be for
the text size about text view.
So at least 600 Okay 600.
Or bigger.
So put this value 600 and now it's actually selectees screen height as you can see here.
Screen height.
So we have this screen read and just select the screen height and then click on this double double arrow
button here.
So for the screen height and at least the height of the device should be 600.
OK.
So now just click on this OK here.
And another item is actually added here as you can see values dash Vitt 600 DP dash height 680 Pete.
So in that case that the size of the Veach of our device is actually 600 and the height of the device
is actually 600.
So on take these values here this values is actually for all devices OK.
But for our specific device with a specific width and height as you can see here.
He had I'm specifying that for devices that have that have at least 680 Peavey's and at least 600 dpi
height for that specific device.
I want to actually put the value 100 is p so as to conceal the source value should be 100 s p.
So remember that I told you for the size of your takes views you should put the value as P.
This is really important.
And he had as he can see the resource name must be the same as that resource name that we put for our
Takes view as you can see here Welkom underline takes on the length size.
So he had checked his checkbox values test values Desch with 600 DP dash height 600 dpi and then click
on OK so now let's actually see what it's going to be the text size of our tastes view in actually bigger
screens.
So here at the top we can see these values just the selectees Nexus 4 here.
As you can see we can see other devices here and here I can actually select this one Nexus 9 with bigger
screen as you can see here.
Now this time the size of the screen of this takes view is actually bigger right.
So let's actually change this device to.
And it's just 10 at here as you can see we can see that disvalue is actually still big enough in it.
Inside this screen here inside is next Nexus 10 screen so hopefully that makes sense.
So this actually change this device to next five or six.
So now now hopefully you can understand how he can actually specify a size four different screens.
And now I want to show you another important point.