So as you can say here in lower number 69 here we have actually this value rose of spottiness in animalcules.
So here as you can see we actually declared this valuable here inside our class as you can see here
rows of spottiness in animalcules in Lima in line number 42.
So this is actually an average of linear layouts right.
An average of linearly else and then Aimee's rows of just spottiness in an animal quiz.
So what do I mean by this.
Let's actually go inside our fragment underly minute minute example here.
As you can see.
So now let me actually go inside this Design tab as you can see here we have some linearly outs here
as you can see this is the first one.
This is the second one and this is the first one.
So as you can see here these are horizontal linearly outs right.
And these linear layouts actually hold buttons each linearly out here actually holds two buttons.
The first one Hold hold.
Actually these two buttons.
The second linearly out here as you can see hold these up these two buttons and the first linear layout
here holds these two buttons.
So if they actually go back inside our main activity AFFREIGHTMENT out of a fight here as you can see
I actually declare an array of these Lilja it's rows of buttons in animalcules.
So now as you can see here in line number 69 I am actually initialising that right here.
So the rows of spottiness in animalcules assignment operator new linearly out and here as you can see
because we are actually initialising and at a minute to actually specify the size right.
So the size of this area is going to be free.
And this means that we can actually assign three values of type linearly out to these three rows of
just spottiness in animalcules right.
So here I am specifying the size of this Auret which actually can actually only hold the values of type
linear left.
This is very important and in line number 70 here.
As you can see again I referred to the name of this at a here.
Rows of good spot in Animal cookies.
And then here.
Inside the brackets I actually assigned value 0.
And this means that it's going to actually go inside the index number zero of this at a loss of just
buttons in animalcules.
So in line number 69 you are actually initializing this at a and b are saying that the size of this
array is going to be free.
But we haven't assigned any values to this area yet.
So this is going to be an empty arayed that can only hold free values of type linear layout.
Right but a low number 70 here I want to actually initialize or I mean to assign a value to the index
zero of this outbreak.
So Rose of spottiness in animalcules Sub-Zero.
So it's going to go inside the index zero of this area here.
Rows of spottiness in animalcules.
And then I put an assignment operator here.
So you want to assign a value here right.
I want to assign a value to the index zero of this ID.
So here I am actually thinking about you two are linearly out view that's fine to view by ID as you
can see here are that Alte that first row linearly out.
So if we actually go back inside are actually a fragment.
Underline many of them in here as you can see the first linearly out here as you can see the idea of
the first linearly and here at the bottom left hand side you can see inside is componentry section.
Here it says first linearly.
So this is the 80 of these linearly out here right.
Or inside the properties section you can see that it says the idea is first row linearly out.
So are you going to actually assign this linearly out here to that as a main activity fragment.
And as you can see I am actually referring to that ID.
So the index 0 of these are a holds this value first roll linearly out and in line number 71.
Again we are doing the same thing.
But instead we want to actually assign a value to their index number one of these at a.
So those of guess spottiness in animal cuius index 0.
Excuse me.
Index number one.
So those of spottiness in animal animalcules index number one assignment operator.
So here I am actually testing disvalue to a linearly out of you that find view by ID or thought Id that
second row linearly out.
So if I go back and say this fragment underline minute example here.
And if I select this second row linearly out here.
Now as you can see the ID is second row linearly out.
So go back inside our main activity frypan that of a file.
And again in line number 72.
I want to actually assign a value to the index number two of this at 8.
So as you can see here this array holds a free reduce right the size of this area is free.
So the index number 0 1 2.
So rows of spottiness in animal animalcules stop number two assignment operator.
Here again I am casting this value into a linear layout view that's fine view by ID are that Id dot
first row linearly out and then here as you can see in line number 73.
I am actually initializing DCX the answer.
CTX the answer assignment operator.
And here I am Chastity's ready to take a few feet view that find your ID are that ID that makes the
answer right.
So hopefully that makes sense.
So now 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.
So as you can see here these are the lines of code that I pasted here.
So here as you can see we have a for loop and I want to either get all of the values that we have inside
these rows of your spottiness in animalcules.
Great as you can see here.
So these are a as you can see Holts values of type linearly.
Right.
So as you can see I want to actually iterate over the values of this area.
So I created a variable here linearly out and the name is a row and this row is going to actually go
inside this array and it's going can actually execute the lines of code inside is for loop here.
Once for each values of dollar inside of this rate this volume is going to be executed right for each
row for each value that we have inside is a loss of your spot hands in animalcules at 8.
This for loop is going to be executed.
And now as you can see again inside this for loop we have another for loop here.
So for into column and index 0 as you can see here so as you can see I actually created a value which
is an integer and initially I assigned the value zero to this valuable.
And then here I am specifying the condition in which in is going to actually determine that how many
times this volume is going to be executed.
So until the value of this column variable here is actually less than the value of the child count of
this row.
So as you can see here if you have a linear layout you're right and linear layouts are actually view
groups.
And that means that view groups that can actually hold tight or loops can actually hold tides and we
can actually refers to those choices.
And as you can see here linearly out and this alone is of type linearly out and it's going to iterate
over the values of this address.
So for example the first value is index 0 right.
The first the first value that we have inside these rows of spottiness in animalcules array is actually
a value that is assigned in index 0 of this at a rate.
So now this row number is zero.
And then it's going to go inside this for loop here.
And as you can see here the column is zero.
And it says until the column is less than the child count of this low.
So this means what is going to be the children of that throw.
So for example let me actually go inside this fragment underline minute exam and here as you can see
for example look at this.
The row here this row actually holds these two buttons.
And this means that this row this linearly and here is the parent of these buttons or in other words
these two buttons are actually highlights of this linearly out of this row.
So we have this throw this rule as you can see here and this through the have three rows here.
So if I actually go inside this main activity fragment out of a fight here I am actually creating a
row.
I am actually creating a for loop in order to go inside that those rows and then I want to go actually
the inside two rows in order to get the children of those rows.
So this column is less than that get child count and after each execution of this for loop it going
actually increment the value of this column by 1.
So for example let's go step by step here for example the first value that we have inside is rows of
guest buttons in animal quiz is actually the value that is assigned in index 0.
So the value that is assigned in index 0 is first row linearly.
Right.
And if I go back inside this fragment on the last minute its image you can see that the first row linearly
is this row.
So now let's go back inside our main activity fragment the job file here and now we have this row here.
So now this row is going to be that first value that first linearly out and then it's going to actually
go inside the loop.
So here we have a column which initially it is assigned the value zero.
And then this is going to this fall appeal is going to be executed until this column is actually less
than the value of the height count of that specific flow of that first linearly out and then it's going
to actually increment discolored by one after each execution of this for loop.
And as you can see here we have this Actually we have created a bottom here about an object so Potten
and the name is PTEN guess assignment operator.
And here I am actually casting this object to a button object.
And now I am referring to this law here.
Right.
Roll that get child at column.
Right.
So for example initially the Cullom is assigned the value zero.
Right.
So a row that gets the child at Cullom means that it's going to actually go inside that.
For example this is first linearly.
Right.
So the first rule in it linearly out here inside is BRAITMAN underline minute exam.
Here we have this first row Linnea lay out and the first child is this part in here.
This is the first right.
This is the child that is actually inside of the index zero of these nonlinearly out.
And this is the child that is actually the inside of the index number of one of these linearly out.
And that's why you can see that inside this main activity fragment that a file.
Here we are saying that the row that a child at index column.
So in this column 0 is this column right.
And it is going to actually do something with that button.
So between guess that said Uncle Nicholas.
And so here I am actually making that button a listener.
So if I go back and say this fragment underline minute it's him in here.
Here I am actually making disputant a listener to the clicks of the user.
And then here I actually put this value so we haven't created a listener for this button here so we
need to create that one later in our code but for now just put this value here and here as you can see
I am saying that PTEN guess that set text size 24.
So here I am actually specifying the size of the spot in this specific spot in the button that is inside
of the index 0 of that actually row.
So between guess that's a text size 24.
And then after the after the end in a code after this for loop is actually executed it's going to actually
to go inside this pull up here and it's going actually to take this condition here.
It's going to actually look at this column here.
And as you can see because the value of the column of value is now incremented by 1.
It's going to check this condition here again.
So number one is less than the value of the Get child count of the throw because each draw has two buttons.
So number one is less than number two right.
So this expression here evaluates to true and then again it's going to execute the lines of code inside
these buttons for the second button that we have inside this row.
This is our second button right.
And now as you can see here after this group is executed again it can actually add one value to the
value of this column.
And then again it's going to check this condition here.
So now because the value of this color is now number two.
Right because the value of this column is now number two and number two is not less than number two
because the child count of each low is to write each of those as you can see here inside this linear
layout as you can see each rose has actually two buttons.
This law has two buttons.
This rule has two buttons and this rule has two buttons.
And as you can see here because now the value of the column is not actually less than the value of the
Get child count two is not the start get to count then then this is not going to be executed.
And again it's going to actually go inside this.
Here this fall loop is the apprentice's of this for a loop and now it's going to increment the value
of these for example.
Now the value of this row is going to be index number one.
Right.
So this for loop here as you can see is going to be executed for each row that we have inside this loads
of spot and guest buttons in animalcules.
So now this row is going to be the road that is inside that is inside of the index number one of this
at.
And then it's going to again check this condition and then it again is going to execute these lines
of code for that specific rule.
Right.
As you can see we have three rows and we need to actually use codes used those codes for these other
those two.
So hopefully that makes sense.