But you want to actually show you.
Another important point.
So if we actually to go back to our strengths that exemplify.
I could actually click on the open editor here and I can see here we have this key and helping them
out.
And here we have this value it'll be the amount we could actually put that value here.
So if we actually press on this actually here here I can actually specify the key and here I can specify
the default value.
Right.
So hopefully that makes sense.
So let me close this window here and let's go inside this activity and eliminate it in the.
And let's actually open the preview.
So now we have another attribute here.
They lay out gravity.
Right.
So the gravity is actually the field.
So let's look at these tapes for you here.
Right.
This is Arctic's view.
So this test is in sight is grittily out here right.
So discretely is actually the parent of these user interface components that are inside of discretely
out.
Right.
So for example as you can see this area takes here or this takes you are actually the children of this
creature they're clearly out and the parent of this takes few here is actually this grittily out here.
So here when I actually assigned the value field to this lay out gravity of this takes few.
This means that this test is going to actually feel the entire movie and the entire height of it actually
it's padded.
So its parent is clearly out.
And let's look at the value of the tweet and the lay height of discreetly out as you can see that the
body of the left with is much apparent and the value of the lay of height is also much apparent.
So this means that they actually assign the value field to this takes view here as you can see feel
like gravity This means it can actually actually take the entire week and the entire height.
And now I want this takes you only take the entire width of this Pallant of this gradely out.
So I just did it this field here and then I just hold the control key on my keyboard and then press
on space on my keyboard here.
And as you can see here these are the attributes these are the values that they actually that I can
actually choose for this attribute of gravity.
So here I want this takes you only take the entire width of this grid.
So I just assigned a value field horizontally.
OK.
Now as you can see in the preview it is actually showing me that this takes view is actually taking
only the entire width of this layout feel horizontal.
And here we have another attribute back get out.
And yet I actually again refer to this as sign color fight at XM and so let's actually open our project
structure so just click on this view tool windows and then choose this project here.
As you can see and this time in statis values folder as you can see inside these values for that is
actually inside this folder here this time DoubleClick and this colors that examen.
So here inside this color that example we have some colors.
The first one is color primary.
The second one is colored primary dark and the first one is colored axent.
So we can actually edit these colors these values or we can actually put our own colors inside this
exemplified.
So inside this activity and then I mean that example here as you can see it says get out as sign colors
slash amount by back.
Underline background right.
So now let me actually delete this value here.
And now let me actually to delete this value here.
Let's go inside this color that these colors that exemplify here and here I need to actually create
a tag color and the name is going to be for example let's go back to our activity on delaminate example.
And here it says Bagheera on the background of this takes you.
So this takes view is actually the text view of actually being out right.
So now let's go back to our colors examine here and here I can just type in a build a mount background
right.
And I just need to actually close the stack here.
So for the value of countersigned for example of value here for example I put a hash tag here and we
can actually use our G-B colors here.
So the first two values is going to be value red.
So for example for the value that I assign the value to anyone and this the second two of values is
going to be the value green right.
RG B the G stands for green.
So I can assign the value zero for the green and I can and the first two values is going to be for example
blue blue.
So here again I can assign a value for the blue color.
So here I assign the value of 37.
So let's go back to what activity on it.
I mean Eric made the decimal and here for the back out I can't just put in at sign here colors and here
as you can see I can choose one of these colors here.
So if I actually choose this color here.
Now as you can see this is the color that I actually chose here.
Right black.
But this is not what I wanted.
Right.
So I could actually choose other colors.
So here I deleted that color and I actually hold the control key on my keyboard and then press on space
key on my keyboard.
I can get you to choose this color accent color primary or color primary touch if I actually choose
color accent here.
Now as you can see the text is actually pink.
Now the background of this text is pink.
So hopefully that makes sense.
You can actually use your own colors but here I just wanted to show you that you can create colors and
refer to those colors.
And here this is this is the file that you want to actually create your color resources so hopefully
that makes sense.
And here we have this paddings attribute so far the padding attribute as you can see I actually created
another resource inside this at Sainty man as you can see here inside these demands that they smell.
So let's go back let's go inside these demons that is in here as you can see here.
I actually have some attributes.
So for here for the padding attribute for example I can create another type demon and the name is going
to be for example and mount bit amount padding.
Right.
And then I need to close this tank here.
And for the padding I can assign the value.
For example 10 DP Right.
So let's go back to our activity on that a minute example.
And here I just need to delete this value.
And here again just type in Bill amount padding.
So here as you can see in the right Siple in say this preview you can see here we have some padding
around these text.
Right.
The paddings are actually the distances inside these.
It takes you right and the markings are that are the distance is actually outside of this takes view.
So here I am actually specifying the padding.
Right.
The distance is inside takes you around.
This takes inside the states view.
So hopefully that makes sense.
And here we have this elevation.
So again I actually added an elevation attribute to this takes fuel in order to add some shadows to
the state's view.
So elevation and again you referred to this at St. D-men to the the demons that exemplified.
And then you refer to this elevation attribute.
So here as you can see this is that value the text size is actually 18 espie and the lay out Margene
top.
So I actually added a margin attribute to this.
I know you're saying the value of 5 DP for the Margene top of this takes you so hopefully that makes
sense and not going actually pasting some more lines of code here in say discreetly out 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 actually pasted here.
And now we have our Takes here.
So this is our takes and we have some attributes.
The first the first one is actually the text attribute.
So for the text again I didn't hard code the value.
So I actually put that value the text value inside these strings that exemplified.
So if we actually open this string that exemplified here.
So as you can see notice that these values this exemplifies that are actually inside the values folder
of these of the protect structure of the rest folder of your project structure.
And then you can actually find these Semmelweis.
Carlos that example string to resume or dimensions that examined.
And here as you can see inside these strings that exemplified you have a streamed value and terrible
amount and the value ease and terrible amount we can actually create another string resource.
So open a tight Stream.
And for the name let's go back into that activity underline minute example.
So for the name as you can see I can assign the value for example keep percentage right.
So let's go back to our strings for example file.
And here I can just type in teep underline percentage.
Right.
And here I just need to close the stack here.
And for the value let's go back to our activity underline minute example here.
As you can see for the value I could actually just type in 25 persons right for the tip percentage.
So let's go back to the strings that exemplified and he had for this value you could just type in 25
persons.
And if you go back to our activity underline minute example as you can see it's 20.
So let's actually change it to 25.
And now we have this value 25 percent.
So here as you can see daily out which is that content lay out height.
Is that content the layout row is number one.
So as you can see here this text view is going to be inside a low number one of these greatly out these
these two user interface components as you can see.
Here is the editing.
And this takes you are actually inside the row number zero of discretely out.
But this takes you inside the room Number one up discretely out.
So here I specify that value.
And for the layout column I assign the value zero so the stakes is going to be inside the column zero
of this row as you can see here.
And for the column span this time I assigned the value number one.
And this means that this takes you is going to actually hold only the first column.
It's not going to actually take both of the columns that are actually inside of this row.
It's going to actually only take one column.
So that's why they actually specify that value here and they lay out gravity as you can see here.
I actually assign two values for the lay of gravity.
So remember that dealing with gravity attribute is going to determine the position of this user interface
component a courting or regarding to the parent of the sticks.
So the parents of these trees actually gladly out so lay out gravity.
Right.
And this means that this Trex takes you is going to be right justified.
And here we have an old operator here.
So as you can see here we have this all operator and he'll center vertical.
So it's going to test is going to be centered vertical inside its parent.
So as you can see in the right hand side inside this preview you can see that this is actually the right
testified and it is actually center resti called and for the I.D. I assigned the value to 60 percent
plate.