1
00:00:00,510 --> 00:00:04,800
So inside this main activity class I just want to declare some objects.

2
00:00:04,800 --> 00:00:05,190
OK.

3
00:00:05,310 --> 00:00:09,780
So here I'm going to paste in some lines of code and then I'm going to explain to you what's going on

4
00:00:09,780 --> 00:00:10,680
here.

5
00:00:10,710 --> 00:00:14,020
So as you can see here these are the lines of code that they actually pasted here.

6
00:00:14,070 --> 00:00:14,580
OK.

7
00:00:14,700 --> 00:00:20,430
First of all I actually created an object of type of type take three chair and the name of this object

8
00:00:20,430 --> 00:00:26,170
is a text switch or one image button PTEN next want an image button between pre-warned.

9
00:00:26,190 --> 00:00:30,620
OK so as you can see here inside this content underline.

10
00:00:30,770 --> 00:00:34,630
I mean that example here as you can see if you have this text we shall hear.

11
00:00:34,800 --> 00:00:39,380
And you have these two image buttons in so it is linearly and horizontal OK.

12
00:00:39,750 --> 00:00:45,700
And here as you can see I created another text through each object and the name of this object is text

13
00:00:45,720 --> 00:00:51,190
wish to and here image button Pythia next to image button between the two.

14
00:00:51,450 --> 00:00:55,030
And here I created another object.

15
00:00:55,110 --> 00:01:01,080
So the name of this object is text to feature free image button BTA next free and image button BATNA

16
00:01:01,260 --> 00:01:02,360
DTN are free.

17
00:01:02,430 --> 00:01:03,160
OK.

18
00:01:03,390 --> 00:01:11,460
So now I want to actually create a free streamed phrase free arrays of types 3 inch inside this main

19
00:01:11,460 --> 00:01:15,690
activity class so here I'm going to actually pasting some lines of code and then I'm going to explain

20
00:01:15,690 --> 00:01:17,350
to you what's going on here.

21
00:01:17,370 --> 00:01:22,840
So as you can see here I created these arrows here inside of this class.

22
00:01:22,890 --> 00:01:26,920
So here let me actually create a newline character so that you can see these values better.

23
00:01:26,950 --> 00:01:27,580
OK.

24
00:01:27,870 --> 00:01:30,240
And as you can see here now.

25
00:01:30,810 --> 00:01:33,560
This is my first Arey string values one.

26
00:01:33,660 --> 00:01:37,300
And as you can see it is out it actually accepts values of type string.

27
00:01:37,320 --> 00:01:37,870
OK.

28
00:01:37,900 --> 00:01:42,090
And inside the array as you can see I only assigned two string values.

29
00:01:42,240 --> 00:01:50,550
So as I said earlier in this tutorial in this video soulis tutorial that these are takes through each

30
00:01:50,550 --> 00:01:53,790
area can only accept two strong values.

31
00:01:53,790 --> 00:01:57,880
Ok so here as you can see I can only switch between two string values.

32
00:01:57,900 --> 00:01:58,460
OK.

33
00:01:58,800 --> 00:02:04,710
For example I can actually assign a free string values to these three and expect that this takes each

34
00:02:04,720 --> 00:02:07,320
have to actually switch between those values.

35
00:02:07,320 --> 00:02:10,590
OK so this takes switcher that this all.

36
00:02:10,670 --> 00:02:12,710
This takes is actually inside that takes.

37
00:02:12,830 --> 00:02:13,860
OK.

38
00:02:14,130 --> 00:02:16,800
This takes so can only accept two string values.

39
00:02:16,920 --> 00:02:23,460
So here as you can see I created a string of values one Arai and I assigned two values of type string

40
00:02:23,460 --> 00:02:24,140
to this.

41
00:02:24,150 --> 00:02:24,840
OK.

42
00:02:25,170 --> 00:02:29,710
And he had actually created another Arey as you can see strength values too.

43
00:02:29,910 --> 00:02:34,680
And here as you can see again I only assigned it to string values to this Aure.

44
00:02:34,890 --> 00:02:37,620
And here we have these three values free.

45
00:02:37,920 --> 00:02:41,630
And here again I assigned only two string values to this arii.

46
00:02:41,730 --> 00:02:42,220
OK.

47
00:02:42,390 --> 00:02:49,150
So now let's actually go inside this and create Smurfette here and now when i actually are pasting some

48
00:02:49,170 --> 00:02:55,380
lines of code here here I want to actually instantiate these objects that they actually declared inside

49
00:02:55,380 --> 00:02:56,730
these main activity class.

50
00:02:56,760 --> 00:02:57,210
OK.

51
00:02:57,210 --> 00:03:01,440
So here Enceladus uncreate Meffert you want to instantiate those objects.

52
00:03:01,440 --> 00:03:05,380
So as you can see here these are the lines of code that they actually pasted here.

53
00:03:05,550 --> 00:03:06,030
OK.

54
00:03:06,100 --> 00:03:07,100
Takes three to one.

55
00:03:07,200 --> 00:03:12,780
And here are actually a cast that this object will take so we should object find view by our Id thought

56
00:03:13,020 --> 00:03:13,930
takes through each one.

57
00:03:14,040 --> 00:03:20,630
And here again and next one image button and here Pythian next one BT and proven as you can see here

58
00:03:20,640 --> 00:03:23,300
I am actually cast in this object to our image.

59
00:03:23,550 --> 00:03:27,590
But an object find view by ID or the ID that Pythian prevalent.

60
00:03:27,720 --> 00:03:30,060
And here this is for text to each two.

61
00:03:30,120 --> 00:03:36,900
And here you can see that I actually referred to the text SUCIA to PTEN next to here as you can see

62
00:03:37,170 --> 00:03:38,280
between and two.

63
00:03:38,430 --> 00:03:39,980
And this is between and two.

64
00:03:40,200 --> 00:03:45,620
And here we have these texts which are free as you can see I actually do referred to this suture free

65
00:03:45,740 --> 00:03:46,390
ID.

66
00:03:46,460 --> 00:03:47,540
OK.

67
00:03:47,640 --> 00:03:48,100
Yet.

68
00:03:48,130 --> 00:03:54,930
Our next three as you can see are that I did that between Nextly BT and our briefly are that ID data

69
00:03:54,930 --> 00:03:56,100
between apre free.

70
00:03:56,130 --> 00:03:56,720
OK.

71
00:03:58,430 --> 00:04:05,060
So now let's actually create another Meffert inside the main activity class as you can see here.

72
00:04:05,060 --> 00:04:10,130
So after the end in curly braces of this uncreate Meffert and inside of this main activity class you

73
00:04:10,130 --> 00:04:11,590
want to create another method.

74
00:04:11,630 --> 00:04:15,890
So here I'm just gonna pasting this Nevitt here and then I'm going to explain to you what's going on

75
00:04:15,890 --> 00:04:16,820
here.

76
00:04:16,850 --> 00:04:19,630
So as you can see here this is the method that they actually pasted here.

77
00:04:19,730 --> 00:04:24,910
OK so let me actually create a new line here so that he can see these values here.

78
00:04:24,920 --> 00:04:25,530
OK.

79
00:04:25,790 --> 00:04:30,910
And as you can see the axis of this method is private the return type of this method is void.

80
00:04:30,950 --> 00:04:33,940
And this means that this method is going to return nothing.

81
00:04:34,010 --> 00:04:34,490
OK.

82
00:04:34,670 --> 00:04:38,430
And the name of this method is used the animation for text switcher.

83
00:04:38,530 --> 00:04:39,090
OK.

84
00:04:39,110 --> 00:04:43,640
So as you can see here insert is emulator vanille actually click on the next button here.

85
00:04:43,640 --> 00:04:46,340
Now you can see an animation effect here.

86
00:04:46,340 --> 00:04:47,020
OK.

87
00:04:47,150 --> 00:04:49,070
And here as you can see an animation effect.

88
00:04:49,100 --> 00:04:49,490
OK.

89
00:04:49,610 --> 00:04:51,700
So this if it does that job for us.

90
00:04:51,710 --> 00:04:52,160
OK.

91
00:04:52,190 --> 00:04:56,120
And this never actually exits an object of type takes through each hour.

92
00:04:56,120 --> 00:04:56,620
OK.

93
00:04:56,810 --> 00:05:02,810
So inside this Meffert as you can see first what I referred to the name of this argument takes the chair

94
00:05:03,020 --> 00:05:04,770
that sits in animation.

95
00:05:04,920 --> 00:05:07,390
OK animation you tell us that animation.

96
00:05:07,400 --> 00:05:09,770
First of all I need to specify the context.

97
00:05:09,770 --> 00:05:14,540
So main activity that this and that here I need to actually specify the type of animation that I want

98
00:05:14,540 --> 00:05:16,520
to actually use on my text through each other.

99
00:05:16,610 --> 00:05:23,960
So the set in animation is fade in and we have another type of animation set out animation as you can

100
00:05:23,960 --> 00:05:25,220
see here the same.

101
00:05:25,700 --> 00:05:27,770
And this one views fade out.

102
00:05:27,830 --> 00:05:28,370
OK.

103
00:05:28,430 --> 00:05:35,090
So Vendi actually when the text is going to appear here and this text creature as you can see you have

104
00:05:35,180 --> 00:05:40,420
a fading effect and when the text is going to actually disappear you have a fade out effect.

105
00:05:40,430 --> 00:05:41,370
OK.

106
00:05:41,810 --> 00:05:44,080
So hopefully that makes sense.

107
00:05:44,120 --> 00:05:49,490
And now let's actually create another to fit inside this main activity class.

108
00:05:49,550 --> 00:05:54,470
So here I'm just gonna are pasting this method here and then I'm going to explain to you what's going

109
00:05:54,470 --> 00:05:55,240
on here.

110
00:05:55,580 --> 00:05:59,090
So as you can see here this is the Meffert that they actually pasted here.

111
00:05:59,210 --> 00:06:04,830
As you can see and here as you can see the Axis modify of this method is private.

112
00:06:04,850 --> 00:06:09,320
The return type of this method is void and this means that this method is going to return nothing and

113
00:06:09,320 --> 00:06:16,850
the name of this method is create takes you by either reading over the values of the A for taste sweeter.

114
00:06:16,850 --> 00:06:17,230
OK.

115
00:06:17,300 --> 00:06:19,790
So as you can see here inside this emulator.

116
00:06:19,880 --> 00:06:20,380
OK.

117
00:06:20,480 --> 00:06:23,200
Now we have takes viewers insight or taste sweeter.

118
00:06:23,270 --> 00:06:23,920
OK.

119
00:06:24,140 --> 00:06:28,220
And here the Spirit is going to actually create toothpicks views as you can see these are the face views

120
00:06:29,450 --> 00:06:32,680
by actually iterating over the values inside these areas.

121
00:06:32,710 --> 00:06:33,220
OK.

122
00:06:33,440 --> 00:06:39,200
So for example as you can see here are the name of this live it is create tasty view but iterating over

123
00:06:39,200 --> 00:06:41,780
the values of the arrow a four takes each hour.

124
00:06:41,780 --> 00:06:48,740
So here I actually specified two arguments as you can see here I specified two arguments for the Smurfette

125
00:06:48,980 --> 00:06:51,890
as you can see the first argument is actually of type String Array.

126
00:06:52,000 --> 00:06:52,440
OK.

127
00:06:52,520 --> 00:06:53,600
String values.

128
00:06:53,690 --> 00:06:59,880
And the second argument is of type taste sweeter and the name of this argument is texture.

129
00:07:00,080 --> 00:07:02,210
So let's see what's going on inside of this.

130
00:07:02,240 --> 00:07:02,850
OK.

131
00:07:03,110 --> 00:07:06,650
And here we have a for loop inside Apprentice's of this for loop.

132
00:07:06,650 --> 00:07:13,490
First of all I actually created an integer value bit of type as you can see the name of this body in

133
00:07:13,490 --> 00:07:14,940
the index index.

134
00:07:15,050 --> 00:07:17,750
And then I assigned the value zero to this valuable.

135
00:07:17,840 --> 00:07:24,770
And then here I actually created created a condition in which determines that how many times this group

136
00:07:24,770 --> 00:07:26,150
is going to be executed.

137
00:07:26,240 --> 00:07:31,370
And here had specified that after each execution of after each execution of this follow or the value

138
00:07:31,370 --> 00:07:34,640
of this index value is going to be incremented by one.

139
00:07:34,700 --> 00:07:35,230
OK.

140
00:07:35,420 --> 00:07:36,600
And insert is for loop.

141
00:07:36,740 --> 00:07:42,120
First of all Flight 77 as you can see I created an object of type text view.

142
00:07:42,230 --> 00:07:42,890
OK.

143
00:07:43,250 --> 00:07:46,520
And the name of this object is the view.

144
00:07:46,520 --> 00:07:51,800
And as you can see here by putting this new keyword here I am actually instantiating this object and

145
00:07:51,800 --> 00:07:53,750
then here for the constructor of a text.

146
00:07:53,750 --> 00:07:59,990
View our class as you can see I need to actually pass the context so the context would be diskless main

147
00:07:59,990 --> 00:08:01,250
activity that this.

148
00:08:01,460 --> 00:08:06,130
And then here I actually referred to the name of this object DXi that set text.

149
00:08:06,140 --> 00:08:10,030
So here I want to actually assign a value to this text view.

150
00:08:10,070 --> 00:08:12,590
So excited that a text string values.

151
00:08:12,590 --> 00:08:14,480
So here I'll refer to this.

152
00:08:14,540 --> 00:08:18,900
I agree this argument as you can see is this argument is of type string.

153
00:08:18,920 --> 00:08:19,400
OK.

154
00:08:19,460 --> 00:08:21,510
String values sup index.

155
00:08:21,530 --> 00:08:27,860
So here it's going to iterate over the values that are inside of this string values array which is going

156
00:08:27,860 --> 00:08:32,510
to pass through this method as an argument as you can see here and then it's going to assign those values

157
00:08:32,510 --> 00:08:37,430
to these takes the view object as you can see here text view.

158
00:08:37,640 --> 00:08:42,380
And we have again inline 1796 the view that said color color that's blue.

159
00:08:42,460 --> 00:08:42,980
OK.

160
00:08:43,010 --> 00:08:45,770
Or here I can actually change this colors for example to red.

161
00:08:45,950 --> 00:08:46,940
OK.

162
00:08:46,940 --> 00:08:50,730
And here we have this Meffert takes the view that said text size.

163
00:08:50,840 --> 00:08:54,790
So here I can I try to change this size to what for example Fretty.

164
00:08:55,020 --> 00:08:55,390
OK.

165
00:08:55,430 --> 00:08:57,420
I am setting the size of this text view.

166
00:08:57,760 --> 00:08:59,740
And here we have this text through chair.

167
00:08:59,750 --> 00:09:02,160
This is really important this line of code here.

168
00:09:02,240 --> 00:09:09,290
We actually referred to this text 3 to object as you can see here that we actually receive as an argument

169
00:09:09,290 --> 00:09:12,550
from the Smurfit OK take switches that add value.

170
00:09:12,870 --> 00:09:14,280
OK take the view.

171
00:09:14,390 --> 00:09:19,820
So here you are actually adding these takes views that actually are created inside of this for loop

172
00:09:19,920 --> 00:09:23,020
if you are actually adding to text views to this text to each other.

173
00:09:23,030 --> 00:09:26,970
And that's why we can see those values here when we actually create.

174
00:09:26,960 --> 00:09:30,510
Click on this next spot and we can actually switch between those values.

175
00:09:30,560 --> 00:09:34,760
So these are these are the text views that are inside of this are take switcher.

176
00:09:34,820 --> 00:09:35,630
OK.

177
00:09:36,140 --> 00:09:38,190
So hopefully that makes sense.

178
00:09:38,200 --> 00:09:39,200
And now.

