So Chase chant 5.40.
So if the value of these fonts string value is chunk $5 or T.F. then it's going to execute this for
loop here.
So for linearly out road and it's going to iterate over the values of this at a loss of just spottiness
in an increase.
So this is actually an area of linearly outs and this for loop here is going to be executed for each
flow that we have.
It is at a loss of just spottiness in animalcules.
So the first row is going to be the room that is inside of the index zero of this at a rate.
And then it's going to actually go and it's going to actually execute this a for loop.
So for it's Cullom and the initial value is zero.
And here we are actually creating a condition that actually determines that how many times this year
is going to be executed.
How many times this fall here is going to be executed.
And here we are saying that after each execution of this loop increment the value of this column by
1.
So an insight does follow up here as you can see actually creating a variable of type button and the
name of this value it is but an assignment operator.
And and here I am actually casting this object to a button object.
And here I am actually getting to the button that is inside of the index zero of this break.
So now let me show you the emulator here.
As you can see this is our emulator and here we have two rows right.
And this means that this at a Rose of just buttons in animal is actually contained these two rows here.
Right.
The first throw.
And this is the second row.
And here we are actually iterating over the values of this at 8.
So the first throw as you can see here is going to be this one.
This first throw here that you can see here.
Right.
And then it's going I should execute this for a loop and it's going to look at the column that is inside
of the index zero of this first throw.
So as you can see here the column zero is this one.
This is the button that is inside of this row.
So this is going to be the column 0.
And now as you can see we are actually when we created this condition we said that this for loop here
is going to be executed until the value of this column here is actually less than the value of the child
count of the stroke.
So the child count of this is to write this row here has two buttons.
So now inside this loop we actually first of all get the button as you can see here that is inside of
this index zero of this row.
So roll that your child at Cullom right.
So for the first time that this group is going to be executed you can see that at the first throw is
going to be as you can see here this one.
And then at the value of this column is 0 right.
So it's going to look at this spot and peacock.
And then as you can see it is actually getting that button.
And it is actually assigning this button to this button valuable right.
So now I am actually calling the Smurfette button that said type face.
So if you are calling the Smurfette on this button and then you are passing the front main activity
or chant 5.
So we actually get these phones from this main activity file inside this class.
We actually first of all declared these phones inside the class as you can see here and VIDEOCLIP these
phones as tatic.
Right.
So we can actually access these phones but actually using the name of this class.
And then inside this class as you can see here I am actually I actually initialized these phones.
So inside this main activity fragment out of a file I can just refer to that form.
And then I can set that typeface to this to this spot.
And in this way I can set this font to my buttons inside my keys.
Right.
So because it is going to actually look at all of the rows and it's going to look at all of the buttons
inside of those rows and it's going to set the typeface to those buttons right.
So hopefully that makes sense.
So in this case when the actually the value of this phone string value is actually chunk five that ETF
is going to execute these lines of code here.
And as you can see here finally they put this statement right.
If we have another case statement.
So Chase if the value of this string value is actually front Larry the T T F then it's going to execute
this for loop here.
So again we have the same for loop here.
So it's going to iterate over the values of these rows of spottiness in animal quiz as you can see here.
And then we have another follow up here the same as the as the one above.
So for in color 0 and this Luby here is going to be executed until the value of this column is less
than the value of the child count of the throw.
And finally here we say that after each execution of this is going to actually increment the value of
this column by one.
And then again we're actually getting the button that is that we have inside this rule as you can see
here.
And then here we are actually calling the cell type face effect on the spot.
And here we are in passing this phone main activity Fauntleroy or brown as you can see here we are actually
passing this font as the argument of the superfit right.
So in case the value of the thing value is actually forth literally but under TGF it's going to execute
these lines of code here.
And finally we put this break statement and here we have our last case statement.
So in case the value of this phone string value rowdier is actually Vondelpark wonder about space.
Space them that ATF then is going to execute this for a loop here.
So for Linnea lay out road and it can actually iterate over the values of this a rows of spottiness
in any milkweeds.
So this fall of here is going to be executed for each row that we have inside is at a loss of just spottiness
in Animal cookies and then it's going to actually go inside the for loop as you can see here we have
another four Lapeer.
So column.
And initially we assign the value zero to this variable and this full repeal is going to be executed
until the value of this column is actually less than the value of the child count of this row.
As you can see here and then it's going to increment the value of this column by one each time.
This is actually executed after each execution of this for loop here is going to increment the value
of this column by one and here again we have actually dispatched in.
So Button button so we have we actually created a variable of type pattern assignment operator.
And then here we are actually casting this object to a button object.
And here we are actually getting there actually column that is inside of this row.
So row that get child add column so it can actually get the specific column that we have inside that.
So for example we have peacocking elephant and this is our actually second row.
So this row is inside the index number one of these A rows of these buttons in animalcules Chad and
Penguin.
And then here we are actually calling this method set type face on the spot in a button that said typeface.
And then we are actually passing this value to the Smurfette main activity that wonder about them.
As you can see here.
And finally we are actually calling display.
Here is this statement at the end of this case statement.
So now this Meffert is actually finished.
Let's actually create another method in order to change the background color.
So here for example if the user wants to go to the settings activity as you can see here they can actually
choose a background color.
And for example they can actually choose the black colors that the bike and color and they can actually
go back here.
And as you can see the back and uncolored is actually black and they can actually guess the name of
the animal as you can see here.
Right.
So hopefully that makes sense.
And now let's actually create a method for that specific job here for that specific logic.
So 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.