So now I'm going to paste in a line of code here and then I'm going to explain to you what's going on
here.
So as you can see here this is the line of code that I pasted here.
He asks the question number.
So as you can see here I actually declare that DCX the question number here in line number 43 which
is after it takes.
And then I actually initialized that takes the question number.
Here in line number seventy insight is uncreate view as you can see here.
He asks the question question number and here you referred to the name of that variable.
He asks the question number.
That said text.
So I want to set a text to this DXi question number and as you can see here we need to provide a string
value for these set text Meffert.
So I actually called jet stream method.
As you can see here.
So now if we actually hold the common key on my keyboard and then click on this string in effect here
as you can see now as you can see it gets three Meffert is actually coming from these fragment that
job a file here as you can see here.
So we have this gets through the method and the return value of this method is actually osting value
right.
The return value is going to be of type string and it's going to give us a string value.
Right that's the only job of this string method.
So now if I if you want to you can actually look at the descriptions here and you will get.
You will get an idea about this method.
So let's actually close this file here and we have this thing.
And this is if it actually accepts free arguments.
So let's actually again hold the comment key on a keyboard.
So if you are using a Windows machine hold the control on your keyboard and then click on it's getting
it.
And as you can see here this live it actually accepts some arguments.
The first one is going to be to raise ID which is going to have be an integer.
The second volley is going to be an array of values of type Object.
So you already know about this at here.
And as you can see here.
So let's actually go back inside our main activity fragment that of a file and here as you can see I
actually it's assigned this value as the first argument are thought to think that question on the length
text.
So now let's actually go inside our strings that exemplify.
So now let me show you the structure are the structure of our project.
So that's really kind of view to Lindows and we can project and here DoubleClick and this app folder
here and then DoubleClick and this arrest folder.
And he has definitely shown these values for there.
And then this strength that exemplified so inside these strings that them fight as you can see here
we have this question underlying text string resource.
As you can see here and it says this is animal pearlescent one dollar sign d of person two dollar sign.
So I already told you about these these formats.
This one is going to be the first argument and this one is going to be the second argument.
Right.
So now if I go back and say this me an active man activity fragment here.
So for the first argument as you can see here of this string Merfeld for the first argument of of this
gets string Meffert we need to provide this Thring resource.
So this resource is going to be that stringless source that we have inside studies things that exemplify
question underlying text.
So our thought streams that question underlying text.
Right.
So for the second argument of this gets Thring Mefford as you can see here we have number one.
So what does this number one refer to.
So if we go back inside these strings that exemplified as you can see here I told you that this format
here this dollars these are percent one dollar Sainty is going to be the first argument of these text
value.
And this per cent two dollar sign is going to be the second argument.
So insanity's gets three Meffert inside this main activity affreightment out of a file.
When I assigned the value number one here for the second argument of this string method I said that
this number one is going to be in place of this person to $1 Sainty.
Right.
That is going to be number one here.
Football is about my number one of.
And then it is actually to go back inside.
Our main activity fragment out of a fight here number of animals included increase.
So here inside our Java file as you can see at the top inside Isman activity placement class I actually
created a constant here and I said that that number of animals included included in the quiz which is
number 10.
So we're going to have 10 animals inside Ahlquist So why did I actually put number one here.
As you can see because as you can see here inside this uncreate view for the first time that our application
is actually started disvalue is going to be number one here.
So for example let me show you the emulator as you can see it says this is my number one of 10.
So let me close this application let me close these applications here and now if I actually open this
application here again as you can see again just for the first time that for the first time that this
application is actually started as you can see it says this is LMI number one.
So this rally you always should be one.
So that's why I actually put number one here and this number one is going to be in place of that first
argument that we have here first at this present one dollar sign.
So number one and for the sake of argument we have this number of animals included in inquiries.
So here we have 10 animals as you can see here at the top I specified that we have.
We are going to have ten animals inside our quiz right.
So hopefully that makes sense.
And now you get the idea of that of that formatting.
Right.
First I actually called this object.
The question number that said text.
And then I called this method that we get from the fragment class get strange.
And and as you can see here for the first argument we need to refer to that string the source for the
second argument.
But we are going to specify the first argument of that single source.
As you can see here is a person one dollar sign D.
And for the second argument as against the number of animals including increase this value is going
to be in place of actually this value per cent two dollar sign.
So now you get the idea and hopefully that makes sense.
And now I can just type in here return if you as you can see here.
This uncreate view Meffert needs to return a value of type view.
Right.
So here we created this view here.
And B has done actually.
And we actually worked on that view and we used this if you object here.
And then finally we need to retain this view from the Smurfette.
This is very important.
And now what we are going to do if we're going to ask you to create a listener APTN guest listener here
inside our our class.
So before the end in curly brace of this class here as you can see before the end in calibers of this
main activity frypan class I am going to pasting some more lines of code here and then I'm going to
explain to you what's going on here.