1
00:00:00,300 --> 00:00:03,630
So Chase chant 5.40.

2
00:00:03,750 --> 00:00:09,970
So if the value of these fonts string value is chunk $5 or T.F. then it's going to execute this for

3
00:00:09,980 --> 00:00:10,640
loop here.

4
00:00:10,740 --> 00:00:18,170
So for linearly out road and it's going to iterate over the values of this at a loss of just spottiness

5
00:00:18,170 --> 00:00:19,170
in an increase.

6
00:00:19,170 --> 00:00:24,650
So this is actually an area of linearly outs and this for loop here is going to be executed for each

7
00:00:24,650 --> 00:00:26,730
flow that we have.

8
00:00:26,940 --> 00:00:29,860
It is at a loss of just spottiness in animalcules.

9
00:00:29,970 --> 00:00:34,730
So the first row is going to be the room that is inside of the index zero of this at a rate.

10
00:00:35,100 --> 00:00:39,890
And then it's going to actually go and it's going to actually execute this a for loop.

11
00:00:39,990 --> 00:00:44,320
So for it's Cullom and the initial value is zero.

12
00:00:44,520 --> 00:00:50,080
And here we are actually creating a condition that actually determines that how many times this year

13
00:00:50,250 --> 00:00:52,010
is going to be executed.

14
00:00:52,110 --> 00:00:54,780
How many times this fall here is going to be executed.

15
00:00:55,040 --> 00:01:00,900
And here we are saying that after each execution of this loop increment the value of this column by

16
00:01:00,900 --> 00:01:01,700
1.

17
00:01:01,740 --> 00:01:07,620
So an insight does follow up here as you can see actually creating a variable of type button and the

18
00:01:07,620 --> 00:01:10,890
name of this value it is but an assignment operator.

19
00:01:11,120 --> 00:01:14,310
And and here I am actually casting this object to a button object.

20
00:01:14,500 --> 00:01:21,590
And here I am actually getting to the button that is inside of the index zero of this break.

21
00:01:21,660 --> 00:01:24,030
So now let me show you the emulator here.

22
00:01:24,150 --> 00:01:28,220
As you can see this is our emulator and here we have two rows right.

23
00:01:28,350 --> 00:01:34,610
And this means that this at a Rose of just buttons in animal is actually contained these two rows here.

24
00:01:34,620 --> 00:01:35,310
Right.

25
00:01:35,340 --> 00:01:36,030
The first throw.

26
00:01:36,050 --> 00:01:37,510
And this is the second row.

27
00:01:37,650 --> 00:01:41,870
And here we are actually iterating over the values of this at 8.

28
00:01:42,090 --> 00:01:45,010
So the first throw as you can see here is going to be this one.

29
00:01:45,010 --> 00:01:47,040
This first throw here that you can see here.

30
00:01:47,040 --> 00:01:47,840
Right.

31
00:01:47,970 --> 00:01:52,290
And then it's going I should execute this for a loop and it's going to look at the column that is inside

32
00:01:52,290 --> 00:01:54,940
of the index zero of this first throw.

33
00:01:54,990 --> 00:01:58,690
So as you can see here the column zero is this one.

34
00:01:58,710 --> 00:02:01,870
This is the button that is inside of this row.

35
00:02:02,070 --> 00:02:03,970
So this is going to be the column 0.

36
00:02:04,210 --> 00:02:10,500
And now as you can see we are actually when we created this condition we said that this for loop here

37
00:02:10,500 --> 00:02:17,130
is going to be executed until the value of this column here is actually less than the value of the child

38
00:02:17,160 --> 00:02:18,720
count of the stroke.

39
00:02:18,840 --> 00:02:24,070
So the child count of this is to write this row here has two buttons.

40
00:02:24,090 --> 00:02:29,780
So now inside this loop we actually first of all get the button as you can see here that is inside of

41
00:02:29,790 --> 00:02:31,700
this index zero of this row.

42
00:02:31,770 --> 00:02:34,460
So roll that your child at Cullom right.

43
00:02:34,620 --> 00:02:40,950
So for the first time that this group is going to be executed you can see that at the first throw is

44
00:02:40,950 --> 00:02:43,200
going to be as you can see here this one.

45
00:02:43,200 --> 00:02:45,710
And then at the value of this column is 0 right.

46
00:02:45,710 --> 00:02:47,850
So it's going to look at this spot and peacock.

47
00:02:48,030 --> 00:02:50,330
And then as you can see it is actually getting that button.

48
00:02:50,340 --> 00:02:54,750
And it is actually assigning this button to this button valuable right.

49
00:02:54,750 --> 00:02:59,670
So now I am actually calling the Smurfette button that said type face.

50
00:02:59,670 --> 00:03:05,110
So if you are calling the Smurfette on this button and then you are passing the front main activity

51
00:03:05,160 --> 00:03:06,440
or chant 5.

52
00:03:06,480 --> 00:03:10,560
So we actually get these phones from this main activity file inside this class.

53
00:03:10,590 --> 00:03:15,570
We actually first of all declared these phones inside the class as you can see here and VIDEOCLIP these

54
00:03:15,570 --> 00:03:16,890
phones as tatic.

55
00:03:16,920 --> 00:03:17,440
Right.

56
00:03:17,460 --> 00:03:21,860
So we can actually access these phones but actually using the name of this class.

57
00:03:22,020 --> 00:03:27,110
And then inside this class as you can see here I am actually I actually initialized these phones.

58
00:03:27,240 --> 00:03:31,920
So inside this main activity fragment out of a file I can just refer to that form.

59
00:03:31,980 --> 00:03:34,920
And then I can set that typeface to this to this spot.

60
00:03:35,130 --> 00:03:40,540
And in this way I can set this font to my buttons inside my keys.

61
00:03:40,590 --> 00:03:40,970
Right.

62
00:03:41,010 --> 00:03:46,110
So because it is going to actually look at all of the rows and it's going to look at all of the buttons

63
00:03:46,140 --> 00:03:51,700
inside of those rows and it's going to set the typeface to those buttons right.

64
00:03:51,930 --> 00:03:53,370
So hopefully that makes sense.

65
00:03:53,370 --> 00:04:00,180
So in this case when the actually the value of this phone string value is actually chunk five that ETF

66
00:04:00,180 --> 00:04:02,250
is going to execute these lines of code here.

67
00:04:02,400 --> 00:04:05,880
And as you can see here finally they put this statement right.

68
00:04:05,990 --> 00:04:08,120
If we have another case statement.

69
00:04:08,300 --> 00:04:16,110
So Chase if the value of this string value is actually front Larry the T T F then it's going to execute

70
00:04:16,110 --> 00:04:17,340
this for loop here.

71
00:04:17,340 --> 00:04:19,560
So again we have the same for loop here.

72
00:04:19,560 --> 00:04:24,740
So it's going to iterate over the values of these rows of spottiness in animal quiz as you can see here.

73
00:04:25,020 --> 00:04:29,640
And then we have another follow up here the same as the as the one above.

74
00:04:29,790 --> 00:04:35,940
So for in color 0 and this Luby here is going to be executed until the value of this column is less

75
00:04:35,940 --> 00:04:38,470
than the value of the child count of the throw.

76
00:04:38,640 --> 00:04:44,850
And finally here we say that after each execution of this is going to actually increment the value of

77
00:04:44,850 --> 00:04:46,150
this column by one.

78
00:04:46,320 --> 00:04:52,380
And then again we're actually getting the button that is that we have inside this rule as you can see

79
00:04:52,380 --> 00:04:52,850
here.

80
00:04:53,070 --> 00:04:56,860
And then here we are actually calling the cell type face effect on the spot.

81
00:04:57,030 --> 00:05:03,560
And here we are in passing this phone main activity Fauntleroy or brown as you can see here we are actually

82
00:05:03,560 --> 00:05:07,210
passing this font as the argument of the superfit right.

83
00:05:07,340 --> 00:05:13,220
So in case the value of the thing value is actually forth literally but under TGF it's going to execute

84
00:05:13,220 --> 00:05:14,680
these lines of code here.

85
00:05:14,930 --> 00:05:20,900
And finally we put this break statement and here we have our last case statement.

86
00:05:20,960 --> 00:05:27,370
So in case the value of this phone string value rowdier is actually Vondelpark wonder about space.

87
00:05:27,380 --> 00:05:31,700
Space them that ATF then is going to execute this for a loop here.

88
00:05:32,360 --> 00:05:40,070
So for Linnea lay out road and it can actually iterate over the values of this a rows of spottiness

89
00:05:40,070 --> 00:05:41,120
in any milkweeds.

90
00:05:41,330 --> 00:05:48,290
So this fall of here is going to be executed for each row that we have inside is at a loss of just spottiness

91
00:05:48,290 --> 00:05:52,850
in Animal cookies and then it's going to actually go inside the for loop as you can see here we have

92
00:05:52,910 --> 00:05:54,730
another four Lapeer.

93
00:05:54,780 --> 00:05:56,330
So column.

94
00:05:56,600 --> 00:06:01,880
And initially we assign the value zero to this variable and this full repeal is going to be executed

95
00:06:02,000 --> 00:06:08,390
until the value of this column is actually less than the value of the child count of this row.

96
00:06:08,480 --> 00:06:14,660
As you can see here and then it's going to increment the value of this column by one each time.

97
00:06:14,790 --> 00:06:20,930
This is actually executed after each execution of this for loop here is going to increment the value

98
00:06:20,930 --> 00:06:25,190
of this column by one and here again we have actually dispatched in.

99
00:06:25,250 --> 00:06:31,200
So Button button so we have we actually created a variable of type pattern assignment operator.

100
00:06:31,310 --> 00:06:34,480
And then here we are actually casting this object to a button object.

101
00:06:34,520 --> 00:06:39,060
And here we are actually getting there actually column that is inside of this row.

102
00:06:39,080 --> 00:06:45,490
So row that get child add column so it can actually get the specific column that we have inside that.

103
00:06:45,500 --> 00:06:50,870
So for example we have peacocking elephant and this is our actually second row.

104
00:06:50,900 --> 00:06:57,320
So this row is inside the index number one of these A rows of these buttons in animalcules Chad and

105
00:06:57,320 --> 00:06:58,350
Penguin.

106
00:06:58,910 --> 00:07:04,850
And then here we are actually calling this method set type face on the spot in a button that said typeface.

107
00:07:05,000 --> 00:07:09,560
And then we are actually passing this value to the Smurfette main activity that wonder about them.

108
00:07:09,710 --> 00:07:10,710
As you can see here.

109
00:07:10,940 --> 00:07:13,150
And finally we are actually calling display.

110
00:07:13,370 --> 00:07:16,730
Here is this statement at the end of this case statement.

111
00:07:16,850 --> 00:07:20,640
So now this Meffert is actually finished.

112
00:07:20,810 --> 00:07:25,030
Let's actually create another method in order to change the background color.

113
00:07:25,160 --> 00:07:31,310
So here for example if the user wants to go to the settings activity as you can see here they can actually

114
00:07:31,490 --> 00:07:33,360
choose a background color.

115
00:07:33,470 --> 00:07:38,420
And for example they can actually choose the black colors that the bike and color and they can actually

116
00:07:38,420 --> 00:07:39,540
go back here.

117
00:07:39,740 --> 00:07:45,410
And as you can see the back and uncolored is actually black and they can actually guess the name of

118
00:07:45,410 --> 00:07:47,320
the animal as you can see here.

119
00:07:47,330 --> 00:07:48,320
Right.

120
00:07:48,320 --> 00:07:50,790
So hopefully that makes sense.

121
00:07:50,800 --> 00:07:58,080
And now let's actually create a method for that specific job here for that specific logic.

122
00:07:58,310 --> 00:08:04,520
So now I'm going to pasting some lines of code here and then I'm going to explain to you what's going

123
00:08:04,520 --> 00:08:05,280
on here.

