So here as you can see our application is running on this emulator.
And here we can see it this takes few.
And here we can see some shadows here.
Right.
And does this attribute is actually because of this attribute here elevation.
And here you referred to this exemplified at St. D-men.
So if we actually hold the common key on my keyboard or if you are if you are using a Windows machine
or a Linux you need to hold the control key on your keyboard and then click on this value here and it's
going to actually guide us to this exemplified.
And we have a domain name is elevation and the value is 15 DP Right.
And here we have some shadows here.
So hopefully that makes sense.
And now as you can see below this takes view when actually pasting some more lines of code here and
then I'm going to explain to you what's going on here.
So as you can see here these are lines of code that I pasted here.
We have a great layout and the layout which is match parent as you can see here and the layout height
is much apparent and the column count as you can see here.
Here we need to specify the column count.
OK.
The number of columns that are going to have inside of each Loew's inside is grittily out.
OK so in this you Tauriel you will be at the end of this tutorial you will be a master of great layout.
You can actually use gradely else later in your projects if you actually are which watch this tutorial
to the end.
So make sure to grasp every Actually every material that I teach you in this ritual really is very important.
A good lay out is a very helpful user interface components that you can use in your projects.
So here I specified the column count so I want two columns inside each row of this layout.
And here it says use default margins and I assign the value true.
So this attribute use default margins is going to actually specify the space between each each column.
OK.
And then it's going to automatically specify that value.
So it's better to assign the value true here because there are going to be some works.
If you want to specify the space between columns.
But if you assign the value to here for this attribute the idea is going to actually specify it's going
to actually solve that issue for you.
And then it's going to specify a perfect space between each columns.
Inside you're clearly out and here as you can see we have an error.
So let's hover over this error here and it says element gradely out is not closed.
So we need to actually close this Gridley out.
OK.
This is this Tartine tag.
Right.
And here I need to put the end in tack.
And here I just need to typing up.
I just need to open up an opening task here and here I just need to put a forward slash here and here
as you can see it actually automatically put this in tag for me here with left.
Right.
So the insight is clearly out.
So this is the actually starting tag.
This is the ending tag right.
So now insight is greatly out.
You want to actually put some other user interface components right.
So now we're going to actually put our user interface components inside our quietly.
As you can see here in the right hand side here inside this preview.
This is our if we actually select this correctly.
It's going to actually highlight this really out for me here or if we actually select this text view
here it's going to highlight this text view here.
Right.
It's going to select this takes you here inside this preview.
So now let's go inside is out and now I'm going to pasting some lines of code here 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.
I put an edit text inside this grid layout.
So first of all as you can see the layout withies match parent.
So hit inside the preview you can see that it's good.
It is actually selecting this as it takes here for me.
Right.
So they lay out with as much apparent delay and height is wrapped content as you can see here the input
type is numbered.
So here I want the user only assign number values to this Eddie Tayseer to this textfield and here because
I actually put this it it takes inside discretely out.
I need to specify the layout column.
OK.
So this editor is going to be inside the layout column zero as you can see here inside the column zero.
And here we have this column span.
So as you can see here when you actually create it discretely out I specify that in each rows of discretely
out there will be two columns.
OK so the columns span is going to actually determine whether you want to actually hand your user interface
components such as this it takes to actually take both of those columns or not.
So I have this edit case as you can see here in inside the column 0 and inside the row 0 as you can
see here we have this play after 0 lay out a row zero.
Right here we have this editrix inside the column zero and inside the low zero of discretely out.
But here inside this column span here I am specifying that you want this edit text to actually take
both of those columns that we have inside this inside this arow zero.
OK.
So it's going to actually expand that Eddie takes here and it's going to take both of those columns
right.
So we have an idea here and read id and the is at same plus ID so you know if you want to specify an
idea inside your XML file first you need to put the at sign plus ID and then a forward slash and then
you can actually specify the name of the ID So the idea is ADT money amount.
This is the EDT or money amount the ID.
And here we have another attribute digits.
OK.
So here as you can see I assign the values 0 1 2 3 4 5 6 7 8 9.
And this means that this edit takes only accepts the values that I've specified here.
OK I want I want to does it it takes only accept these values zero fruit.
Number nine right.
This is very important.
So here it's going to actually only accept these integer values.
So here we can actually limit for example assigning values that you don't want to add.
This it it takes to accept.
Right.
So.
So in this way you can actually put those values here and here I have another attribute Max lenth and
the max length is 6.
So this max length here is going to actually determine what is going to be the line of these editors.
So what that means is Max left attribute can actually determine that you can only assign six numeric
values into this text.
So I actually assign disvalue number 6 into the max length.
This means that we can only assign 6 numeric values into the added text.
Right.
So now when I pasting some more lines of code here insight is greatly out.
And then I'm going to explain to you what's going on here.
So here as you can see these are the lines of code that I pasted here and now as you can see I want
to actually create a text view here in say discreetly out.
So first of all I specify the out Viets.
So the layout is wrapped content as you can see here and the layout height is Lappe content the layout
column is 0 and the layout low is actually zero.
So not just that I actually also put this edited inside at low zero right.
And here I want to again put this takes you to actually inside this editor.
In other words I've done this takes you to overlay this edit takes.
Right.
So because of that I assign the values zero for the lay out row of these takes a view and I want also
this layout Culham to be inside these to be zero.
Right.
And the layout columns span is also number two as you can see here the same as I did for this text.
So it can actually take both of those columns for that specific row which is below zero.
So in this way this takes you is actually overlaying this edit text and here as you can see if you have
an ID attribute.
So the idea is to make the bill amount for the hint attribute.
I actually didn't hard code the value.
So again let's actually open our project structure by just clicking on this view here and into windows
and then click on project here.
So now let's go inside is values folder.
And here this time doubleclick on these strings that exemplified here.
So now as you can see we have a string resources here and here you can see that this is the name of
our application.
So here I can you to change the name of the application so the name of my application is absentee.
So let's go back to an activity underline minute examined.
So here as you can see it says the hint.
So here are takes views can also have a hint attribute.
And here I put this value at sidestream.
Slash ental underline amount here.
So I just need to actually select this value here as you can see I just need to put the mouse cursor
here on disvalue and then hold the the option key or the old key on my keyboard and then press Enter
key on my keyboard here.
So now it says create string resource and tell em out right.
So now as you can see I just need to select this attribute here.
And here I can specify a resource value right.
So for example the resource value is going to be I can just typing entier OK and tear up the amount.
OK.
This is the name of that the name of my resource value.
And here I just need to click on OK here.
So now as you can see the error is gone and if we actually go inside these things that exemplify it
says we have actually a string resource here.
And the name is enter amount and the value is actually entered the amount right.
So if you want to actually only type this value here I just need to select this resource value and that
person energy on my keyboard and here I can I can actually put that value here.
I can actually type that value.
So here I just need to open up a tad here and here I can just type in streambed.
And the name is going to be required.
The name is required.
Enter the amount.
And here I just need to close this tag here.
So between these packs here I can actually just typing enter bid amount.
And now if I actually go back to our activity underlaid minute example here I just need to Typee enter.
So for this that same strange rate I just need to press on.
I just need to hold the controls on my keyboard and then present the space key on my keyboard.
So as you can see here the auto complete feature of the Android studio automatically chose this option
for me and tell Bill out at sidestream slash until I'm out and if I actually hold the comment on my
keyboard and if you are using a Windows machine you need to hold the control chip.
And if I if you if I actually hold the command key on my keyboard and then click on this value here
it's going to guide me to this string that example file.
And here as you can see we have this value and terrible amount.
And and here I made a mistake in it with this extra I see here and still beat em out right.
So let's go back to what activity underlayment is made of these XML here.