So as you can see here these are the lines of code that I pasted here.
So again we have two buttons in the preview you can see these two buttons inside these linearly or horizontal.
And again we have these buttons with the same attributes that we have here for this first linearly or
horizontal.
So again the lay out which is a 0 DP The layout height is the up content delay outwait is zero point
five and lines is number two as you can see here.
So this means that this button can accept two lines of text and the layout margin for each of the directions
left top right and bottom is five deep.
And again we have another button here.
Again the lead out is zero.
DP and the layout height is that content the layout weight is zero point five and lines is number 2.
And the left margin is five right.
So we need another linearly or horizontal here.
So after the end the stack of these linearly Olthuis until now we need to create another linearly or
horizontal here.
So just typing in here linearly out and for the layout we assign the value match parent and for the
layout height assign the value of that content.
And now let's actually specify the orientation.
So the orientation is horizontal and let's specify the ID and the ID is going to be first row filled
a row linear layout.
Right.
But again we didn't specify here that we want to create an ID soap at sign Plus Id slash.
And this is going to be the ID first row linearly out and now inside Enceladus linearly out here we
just need to put two more buttons here so we can actually copy these buttons here as you can see.
I can copy these buttons here and put them here.
Inside is linearly out here.
So as you can see here these are the lines of code that I put in say these ferde rolling out as you
can see here.
So again we have the same attributes play out with is zero the layout height is the content lay out
of it is 0.5 lines and number two and lay out margin is 5 DP.
And again we have another another button here which is that the layout is zero DP The layout height
is Rabbe content the layout of it is 0.5 lines.
Number two and the layout margin is five DP Right.
So hopefully that makes sense.
So now after the end in touch of this linearly out horizontal here.
Now I want to add some lines of code here.
I'm going to paste in 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.
So if we have a text view right and lay out which is that content the layout height is that content.
And here we have a new attribute text appearance.
OK.
So now I have to specify the appearance of my text view.
So I put a question mark here.
OK.
Question mark and throw it colon.
83 R which stands for attributes.
OK.
Slash and now I can specify the appearance of my tastes.
So we have taste.
Appearance Large.
We have taste.
Appearance small.
And we have also taste appearance.
Medium.
OK.
So for our application we choose text.
Appearance Large.
And as you can see here this means that it's going to actually make our taste feel a little bit larger
and we have this taste attribute.
And now as you can see here we are referring to our strange resource inside this inside this thing that
they smell.
So now let's actually open our project structure.
So just click on the view here at the top tool windows and we can project and now double click on this
app here and then double click on this race folder and here double click on these values here and now
inside this as you can see here.
So these values folders we have this file here.
This is a modified strings that ASML right.
So just double click this file here and now as you can see we have this file here.
So now inside this file you have substring resources.
The first one is the name of our application string named app underlined name which is this name animal
quis and we have this name which is actions the settings for the Settings button.
And now I want to add other resources here.
So let's go back to our fragment underline minute example here.
As you can see I refer to this string resource here at science 3 inch slash question text and as you
can see here our project does not recognize this value here right.
Question underlying text.
So now let's actually create our string source with this name here.
So let's go inside the strings that gets them in here and then open attack streams.
And the name is going to be question underlined text and then and the tag as you can see here.
Close the tile here by by putting this piece of code here and now inside this string here inside the
string tag.
I can add my value here.
So now I can't just type indices animal per cent one dollar sign.
D of percent to dollar sign the.
So now what does this mean.
As you can see it says this is animal per cent one dollar Sainty of per cent to Dollar Signs.
So this one as you can see here per cent one dollar sign D is actually an integer value is going to
be.
This is going to be an integer argument actually we have an integer argument as you can see here D right.
So here as you can see because we need to actually provide this format here per cent one dollar sign.
So what is this one here.
This one is actually means that this is actually the first argument.
Right.
And this number two here means this is going to be the second argument.
Right.
So we need to put this format here in order to specify that that this is going to be our first argument
which is going to be of type integer.
Right.
So now let me show you are the emulator here.
Our application is running on this emulator here right.
So now you can see that it says this is animal 1.
So as you can see here our crew is just started.
And this is animal one of 10.
So we have 10 animals 10 questions as you can see here and now this is going to be the first one.
Right.
So as you can see the first one is number one here right.
And the second one is number 10.
So here we are actually code in our application when we are actually providing the logic our application
of for our application in inside the main activity of a file or other dhaba files.
I'll teach you that what is going to be the use of this format here.
OK.
Later you will understand how this format here works.
OK for now just put this here and for now just understand that here this present one dollar sign means
that this is going to be our first argument which is going to be off the integer.
And here this person's two dollar sign D means that the this is going to be our second argument which
is going to be of type integer.
Right.
So hopefully that makes sense.
So now let's actually go inside a fragment underlying minute that example here.
And as you can see here.
So as you can see the error is gone here.
So question underlying text and here I provided an I.D. for this text view.
So the IDs question number takes you right as you can see here we can actually change this ID for example
to TXI the question number right.
This is very good.
The question number and they lay out gravity as you can see here it says Center horizontal.
Right.
So this lay out gravity is going to specify what it's going to be the position of this takes you according
to its parent.
Right.
So the parent of this textbook is this linearly.
Right.
So here it says Center horizontal.
So here this can actually put this takes you Center horizontally inside this linear layout as you can
see here.
So you already know about Lyell's gravity's anti-gravity attribute.
And as you can see we have this lay out marching but him as you can see here you provided a margin bottom
here and now again we need to provide a resource here so let's actually open our project structure so
click on this view here at the top tool windows and then project and then as you can see Enceladus values
fall there.
We have these demons that examined here to just double click on it here and now inside these resources
tagged.
Now we need to provide another dimension here so just to just open attach here and type in deman and
the name is going to be Margene underlined value
and then just close this tag and just provide a value in nine.
DP OK.
Now let's actually go back into our fragment underlayment and examine here and now you can see here
the error is gone.
So now let me double click on this fragment underline militarism and tab here in order to make this
area wider.
And now just a click on this preview here at the right hand side.
And now you can see that you've got free rows with actually buttons inside them.
And as you can see we have also this takes you here right.
So now as you can see here the margin button is much in value which we provided here in say the statements
that they examined here.
As you can see 90.
And now we have also the text color attribute which is actually the value.
White right hash that f f f means white as you can see here.
So now we can actually change this value for example to another value but let's actually change the
background color of this linear layout.
So let's just scroll to the top here.
And as you can see here these are linearly out.
So now I want to add another attribute to this linearly or.
So just type in here Paglen don't.
And as you can see here I just select Ispahan on attributes and now I can't just type in hash tag.
Zero zero zero.
And now as you can see here the background color of my linearly out is now black.
And now I can see this text here.
This is animal per cent one dollar Sainty of person two dollar sign.
Right.
So now scroll down here.
And as you can see here these are tasteful here.
Right.
So now we're going to actually paste in some more lines of code here and then I'm going to explain to
you what's going on here.