1
00:00:00,460 --> 00:00:06,500
And now as you can see we have this case are that to take box through as you can see here.

2
00:00:06,600 --> 00:00:11,790
So if you are referring to the idea of this checkbox kickboxing as you can see here in say this content

3
00:00:11,850 --> 00:00:17,820
underline minute example if I select this checkbox Wuxi an object as you can see the idea is text box

4
00:00:17,820 --> 00:00:18,230
too.

5
00:00:18,250 --> 00:00:22,590
OK so here it refers to this checkbox here.

6
00:00:22,620 --> 00:00:22,910
OK.

7
00:00:22,950 --> 00:00:29,610
If the ID is checkbox to and if this works is actually checked then it's going to actually execute this

8
00:00:29,610 --> 00:00:34,360
line of code inside of these instead of these curly braces of this statement and break.

9
00:00:34,560 --> 00:00:40,430
And as you can see here we have the other cases here are that ID the checkbox free.

10
00:00:40,500 --> 00:00:45,230
So it's going to actually execute these lines of code here if the idea is six bucks four is going actually

11
00:00:45,270 --> 00:00:46,510
secure these lines of code.

12
00:00:46,680 --> 00:00:51,570
And if the idea is Box 5 checkbox 6 checkbox 7 and tick box.

13
00:00:51,620 --> 00:00:58,320
OK so it's going to actually execute these lines of code inside of these instead of this switch statement.

14
00:00:58,320 --> 00:00:59,180
OK.

15
00:00:59,820 --> 00:01:05,920
So hopefully that makes sense and I think it's actually our project.

16
00:01:06,070 --> 00:01:06,310
OK.

17
00:01:06,330 --> 00:01:07,710
And see what happens.

18
00:01:07,710 --> 00:01:13,610
So now as you can see our application is running on this emulator and if we actually check this checkbox

19
00:01:13,680 --> 00:01:17,760
here that says boxing as you can see it says boxing is checked.

20
00:01:17,760 --> 00:01:18,220
OK.

21
00:01:18,420 --> 00:01:21,680
And if it actually a check of this check box let's see what happens.

22
00:01:21,750 --> 00:01:23,110
As you can see nothing happened.

23
00:01:23,130 --> 00:01:23,770
OK.

24
00:01:24,090 --> 00:01:31,560
So let's actually take this kickboxing checkbooks Kickboxing is checked judo Judo is checked.

25
00:01:31,950 --> 00:01:33,550
I have two.

26
00:01:33,700 --> 00:01:36,920
And here we have a problem for the aikido it actually tossed.

27
00:01:37,220 --> 00:01:39,030
Showed us this football is checked.

28
00:01:39,030 --> 00:01:44,770
So let's actually see what is this value as you can see for the checkbox number four as you can see

29
00:01:44,870 --> 00:01:46,160
one two three four.

30
00:01:46,160 --> 00:01:47,230
So this is our check box.

31
00:01:47,230 --> 00:01:49,870
Number four if you have this football and this is wrong.

32
00:01:49,910 --> 00:01:51,270
We need to actually to change these two.

33
00:01:51,370 --> 00:01:52,360
You do.

34
00:01:53,030 --> 00:01:53,730
OK.

35
00:01:54,280 --> 00:01:58,670
And here as you can see for the checkbox number five we have football.

36
00:01:58,670 --> 00:02:06,080
So this is running community change these two football and for the check box number six we have our

37
00:02:06,080 --> 00:02:07,080
take Wando.

38
00:02:07,370 --> 00:02:10,550
So here we need to change this to take one to

39
00:02:14,090 --> 00:02:18,540
OK and here for the checkbox number seven we have wrestling

40
00:02:22,250 --> 00:02:26,490
and for this checkbox number eight if you have swimming and this is right.

41
00:02:26,510 --> 00:02:27,230
OK.

42
00:02:27,230 --> 00:02:32,090
So let's actually run our project again and see what happens.

43
00:02:32,090 --> 00:02:35,140
So as you can see here now again our application is running.

44
00:02:35,180 --> 00:02:38,580
And if we actually click on this site here that is checked.

45
00:02:38,690 --> 00:02:41,040
Football football is checked.

46
00:02:41,090 --> 00:02:41,850
Take Wando.

47
00:02:41,870 --> 00:02:44,090
Take one that is checked wrestling.

48
00:02:44,090 --> 00:02:47,600
Wrestling is checked and swimming as you can see swimming is Cheikh.

49
00:02:47,630 --> 00:02:48,270
OK.

50
00:02:48,650 --> 00:02:50,590
So hopefully that makes sense.

51
00:02:50,720 --> 00:02:51,300
OK.

52
00:02:51,560 --> 00:02:55,530
And now we want to actually work on this part here.

53
00:02:55,580 --> 00:02:56,140
OK.

54
00:02:56,390 --> 00:03:00,810
So now let's ask you to go inside this uncreate method here.

55
00:03:00,890 --> 00:03:08,540
So now I want to actually make these out as you can see here we have the secret here and I want to actually

56
00:03:08,540 --> 00:03:10,300
make this sequel a listener.

57
00:03:10,490 --> 00:03:11,350
OK.

58
00:03:11,530 --> 00:03:15,300
They're actually seeking to they're actually actively seeking of the user.

59
00:03:15,380 --> 00:03:15,640
OK.

60
00:03:15,650 --> 00:03:17,930
So when they use that actually six These are six.

61
00:03:17,930 --> 00:03:19,830
But here it's going I should respond.

62
00:03:19,880 --> 00:03:25,670
OK so in order to do that you need to actually call it a listen at a specific listener on this see what

63
00:03:25,730 --> 00:03:26,180
object.

64
00:03:26,180 --> 00:03:30,270
So first of all I need to actually be fair to the name of this sick object OK.

65
00:03:30,350 --> 00:03:33,180
That we actually declared in our class as you can see here.

66
00:03:33,200 --> 00:03:37,020
And then we actually instantiate that object here.

67
00:03:37,220 --> 00:03:45,470
As you can see in line 54 and now I just need to refer to the name of the seat but object that sits

68
00:03:45,860 --> 00:03:49,460
on six bar change listener.

69
00:03:49,490 --> 00:03:54,310
And now inside Apprentice's I need to actually specify the context.

70
00:03:54,330 --> 00:03:56,430
OK main activity that this.

71
00:03:56,500 --> 00:03:57,210
OK.

72
00:03:57,290 --> 00:04:02,750
And as you can see it's showing us and it and we need to actually implement another kind of interface.

73
00:04:02,750 --> 00:04:08,500
So here in order to implement an order in interface in our class.

74
00:04:08,510 --> 00:04:09,070
OK.

75
00:04:09,140 --> 00:04:11,220
So we need to actually put in a comma here.

76
00:04:11,300 --> 00:04:11,970
OK.

77
00:04:12,050 --> 00:04:15,010
And then we need to actually implement that interface here.

78
00:04:15,020 --> 00:04:20,560
So here I just need to typing in on switchboard change listener.

79
00:04:20,820 --> 00:04:21,410
OK.

80
00:04:21,530 --> 00:04:28,760
So when I use it I try to interact with the listener as you can see here in our app if you need to actually

81
00:04:29,210 --> 00:04:33,060
implement this interface part that unsichtbare change listener.

82
00:04:33,110 --> 00:04:33,810
OK.

83
00:04:34,070 --> 00:04:39,290
As you can see here and we need to actually implement it actually the abstract methods that we actually

84
00:04:39,290 --> 00:04:44,980
inherit from this implement is interface.

85
00:04:45,170 --> 00:04:50,520
OK we need to actually implement those abstract methods in our class.

86
00:04:50,570 --> 00:04:56,630
So here are in our class as you can see of we need to actually implement that method.

87
00:04:56,630 --> 00:05:01,580
So here I can actually after the end in curly brace of this uncreate Smurfette I can get you to right

88
00:05:01,580 --> 00:05:07,090
click here click on this generate and then click on employment benefits.

89
00:05:07,250 --> 00:05:12,860
And as you can see here these are the freely acquired the Misfit's that we need to implement in our

90
00:05:12,860 --> 00:05:18,540
class as you can see it says Android that we did that switchboard data on six but changelessness.

91
00:05:18,590 --> 00:05:23,840
So as you can see this is actually an interface and these are the Misfit's that diskless need to actually

92
00:05:23,840 --> 00:05:24,440
implement.

93
00:05:24,440 --> 00:05:25,030
OK.

94
00:05:25,250 --> 00:05:27,620
So here again just click on OK.

95
00:05:27,680 --> 00:05:33,040
So as you can see here now we have free methods that we need to actually overwrite in our class.

96
00:05:33,050 --> 00:05:33,800
OK.

97
00:05:34,090 --> 00:05:41,600
You can actually not to overwrite these misfits but what the most important one is this Meffert on progress

98
00:05:41,600 --> 00:05:42,240
changed.

99
00:05:42,320 --> 00:05:47,370
So this lift is going is going to be called Venditte been used use and actually change this.

100
00:05:47,460 --> 00:05:50,730
So people here and they use that is actually seeking on the search bar.

101
00:05:50,750 --> 00:05:51,370
OK.

102
00:05:51,560 --> 00:05:56,400
So now as you can see the Smurfit actually are routine enough.

103
00:05:56,540 --> 00:05:59,110
And this actually accepts free arguments.

104
00:05:59,150 --> 00:06:02,440
The first one is the but itself this but object.

105
00:06:02,480 --> 00:06:04,750
The second one is the progress of the sick bar.

106
00:06:05,000 --> 00:06:05,510
OK.

107
00:06:05,720 --> 00:06:08,810
So then they use that actually change this.

108
00:06:08,900 --> 00:06:11,490
When they use it is actually seeking on this sick part.

109
00:06:11,510 --> 00:06:14,250
As you can see it's going to generate an integer value.

110
00:06:14,250 --> 00:06:14,720
OK.

111
00:06:14,900 --> 00:06:19,620
So we can I truly get that integer value by just referring to this argument to progress.

112
00:06:19,640 --> 00:06:26,250
OK so we can actually access this value by using this progress argument here.

113
00:06:26,510 --> 00:06:31,150
And we have another argument that is of type Boolean and this is from user.

114
00:06:31,270 --> 00:06:31,740
OK.

115
00:06:31,820 --> 00:06:35,620
So insight is our Meffert we can actually put in our own implementations.

116
00:06:35,630 --> 00:06:36,040
OK.

117
00:06:36,200 --> 00:06:41,210
So here I'm going to actually explain that pasting some lines of code here and then I'm going to explain

118
00:06:41,210 --> 00:06:42,600
to you what's going on here.

119
00:06:42,890 --> 00:06:47,550
So as you can see here I actually created a host object and then I called the shawm if it stopped.

120
00:06:47,560 --> 00:06:52,420
So on this toast object in order to actually show this object to the user.

121
00:06:52,580 --> 00:06:57,700
So TOSed that make text on the first argument is the context main activity that this.

122
00:06:57,860 --> 00:06:59,190
And he had of double quotes.

123
00:06:59,240 --> 00:07:07,580
I just typed in that the current value of the C Barby's colon space and he had actually used up plus

124
00:07:07,580 --> 00:07:11,210
operator in order to concatenate this value with the value of the program.

125
00:07:11,210 --> 00:07:16,820
OK so when the user is actually seeking undischarged we can see that specific value.

126
00:07:16,820 --> 00:07:21,460
And here this is the actually the duration of the text that is going shown to the user.

127
00:07:21,590 --> 00:07:23,800
And here we are calling this show.

128
00:07:23,860 --> 00:07:28,240
And this object in order to show it is up to us object to the use that.

129
00:07:28,240 --> 00:07:28,620
OK.

130
00:07:28,660 --> 00:07:30,990
So as you can see here this is the tallest object.

131
00:07:31,210 --> 00:07:36,210
And now we have this on started tracking touch.

132
00:07:36,240 --> 00:07:39,530
OK this is another method from the search bar interface.

133
00:07:39,610 --> 00:07:40,210
OK.

134
00:07:40,210 --> 00:07:44,930
And this is going to be called when the user actually starts to actually see.

135
00:07:45,190 --> 00:07:48,700
OK Vinnie use starts to seek this in if it is going to be called.

136
00:07:48,820 --> 00:07:49,280
OK.

137
00:07:49,390 --> 00:07:55,000
And we can actually create a tossed object here and it'll And we can actually show that object to the

138
00:07:55,000 --> 00:07:55,590
user.

139
00:07:55,750 --> 00:07:59,770
So here I'm going to actually paste in a toast object and then I'm going to explain to you what's going

140
00:07:59,770 --> 00:08:00,270
on here.

141
00:08:00,310 --> 00:08:04,480
So as you can see here this is the line of code that actually pasted here.

142
00:08:04,780 --> 00:08:06,400
These tools that make text.

143
00:08:06,400 --> 00:08:12,000
So first of all I specified the context main activity that this and he had instead of double quotes

144
00:08:12,070 --> 00:08:13,200
I just typed in.

145
00:08:13,210 --> 00:08:15,520
Now that bar is started.

146
00:08:15,670 --> 00:08:21,300
And here you are specifying the activity the duration of the text that is going to be shown to the user.

147
00:08:21,310 --> 00:08:24,060
And we are calling this method show my foot on this object.

148
00:08:24,100 --> 00:08:24,660
OK.

149
00:08:24,880 --> 00:08:28,110
And we have this effect on a stop a tracking touch.

150
00:08:28,120 --> 00:08:33,110
So the Smurfette as you can see here this on start liking touchier is going to be called when the user

151
00:08:33,130 --> 00:08:35,950
is Tharp's actually seeking under siege.

152
00:08:35,980 --> 00:08:42,550
OK so as you can see here I am actually sitting on the bar and when I actually stop then decide if it

153
00:08:42,550 --> 00:08:43,770
is going to be called.

154
00:08:44,000 --> 00:08:48,660
Ok so now we can actually create another object here.

155
00:08:48,730 --> 00:08:51,360
So as you can see here this is my toast object.

156
00:08:51,370 --> 00:08:51,890
OK.

157
00:08:51,910 --> 00:08:56,550
First of all I specified the context and then this is the text that I want to show to the user.

158
00:08:56,560 --> 00:08:58,420
Now the bar is stopped.

159
00:08:58,510 --> 00:08:59,110
OK.

160
00:08:59,230 --> 00:09:02,510
And we have these tostada length short and tacho.

161
00:09:02,620 --> 00:09:07,210
OK so now let's actually run our project and see what happens.

162
00:09:07,210 --> 00:09:12,050
So now as you can see our application is actually running on DS emulator.

163
00:09:12,120 --> 00:09:12,670
OK.

164
00:09:12,790 --> 00:09:17,560
And now if we actually want to change the value of the search bar let's see what happens.

165
00:09:17,560 --> 00:09:19,960
OK so I'm just going to start it here.

166
00:09:19,960 --> 00:09:22,510
I'm just going to start here and now.

167
00:09:22,540 --> 00:09:28,210
Now the bar is started and now as you can see the current value of the bar is number free.

168
00:09:28,210 --> 00:09:29,990
Now the pot is stopped.

169
00:09:30,070 --> 00:09:31,010
OK.

170
00:09:31,180 --> 00:09:36,060
So as you can see here these are three kinds of methods actually called here.

171
00:09:36,070 --> 00:09:37,040
OK.

172
00:09:37,120 --> 00:09:40,360
So hopefully that makes sense.

173
00:09:40,360 --> 00:09:41,040
OK.

174
00:09:41,170 --> 00:09:47,770
And now we have these orating bar here and we have these are radio buttons that are actually the inside

175
00:09:47,830 --> 00:09:49,830
of another radio group.

176
00:09:49,840 --> 00:09:50,410
OK.

177
00:09:50,620 --> 00:09:51,680
So let's actually work on this.

178
00:09:51,680 --> 00:09:52,660
Orating bar here.

179
00:09:52,810 --> 00:09:53,390
OK.

180
00:09:53,460 --> 00:09:54,430
And let's actually go inside.

181
00:09:54,430 --> 00:09:56,120
These are uncreate Mefford.

182
00:09:56,170 --> 00:09:56,690
OK.

183
00:09:56,860 --> 00:10:01,370
So first of all now I want to actually make this a rating for our listener.

184
00:10:01,450 --> 00:10:01,980
OK.

185
00:10:02,110 --> 00:10:03,120
Or two the clicks of the user.

186
00:10:03,130 --> 00:10:08,210
OK so for example when the user wants to actually change the value of this routine.

187
00:10:08,260 --> 00:10:12,580
You hear this rating but you can actually do something with those values.

188
00:10:12,580 --> 00:10:13,070
OK.

189
00:10:13,360 --> 00:10:16,950
So here I just need to refer to the name of this object rating bar.

190
00:10:17,260 --> 00:10:17,750
OK.

191
00:10:17,860 --> 00:10:22,840
As you can see if you declare this object in class and then be instantiated this object here in this

192
00:10:23,140 --> 00:10:23,850
uncreate Meffert.

193
00:10:23,860 --> 00:10:24,350
OK.

194
00:10:24,430 --> 00:10:30,430
So letting bar dots sets on rating board change listener.

195
00:10:30,430 --> 00:10:30,980
OK.

196
00:10:31,120 --> 00:10:37,510
So in this way we are actually making this retty but a listener today actually the clips up the user

197
00:10:37,690 --> 00:10:40,430
so that the user can actually change the value of the rating.

198
00:10:40,450 --> 00:10:43,090
And then we can actually do something with those values.

199
00:10:43,090 --> 00:10:43,550
OK.

200
00:10:43,780 --> 00:10:50,910
So here lately but that said sit on rating will change the center and that he had Vinita actually specify.

201
00:10:51,130 --> 00:10:54,640
Actually the class that this listener actually belongs to.

202
00:10:54,700 --> 00:11:02,200
So he had just that main activity thought this and now we need to actually implement the under-18 bar

203
00:11:02,350 --> 00:11:03,230
change the center.

204
00:11:03,280 --> 00:11:03,830
OK.

205
00:11:03,970 --> 00:11:10,840
So here in our class as you can see if you need to actually put another comma here and here I can just

206
00:11:10,840 --> 00:11:12,120
type in rating board.

207
00:11:12,340 --> 00:11:12,760
OK.

208
00:11:12,800 --> 00:11:17,220
Dot under-rating bar change listener.

209
00:11:17,420 --> 00:11:21,650
So as you can see here Rating Board darts under-18 bar change listener.

210
00:11:21,650 --> 00:11:22,160
OK.

211
00:11:22,340 --> 00:11:25,480
And now we can actually scroll down here.

212
00:11:25,490 --> 00:11:30,890
And after the end in brace of this uncreate Meffert I can actually right click here.

213
00:11:31,130 --> 00:11:33,450
And then I can actually click on generate.

214
00:11:33,800 --> 00:11:37,090
And here I can actually kind of implement Moffats.

215
00:11:37,130 --> 00:11:42,240
So this is the method that we need to implement locate and do that which is that rating board that aren't

216
00:11:42,250 --> 00:11:43,810
rating board change to the center.

217
00:11:43,830 --> 00:11:48,740
And this is actually inside these interface OK under-18 changed.

218
00:11:48,800 --> 00:11:52,000
So here I can actually click on OK.

219
00:11:52,280 --> 00:11:54,390
And now as you can see the error is gone.

220
00:11:54,390 --> 00:11:58,460
And now we can actually overwrite this R-rating changed the Senate here.

221
00:11:58,460 --> 00:11:59,020
OK.

222
00:11:59,300 --> 00:12:03,920
So in so far as you can see if you have this buffer it actually returns nothing.

223
00:12:03,980 --> 00:12:09,080
And this if it actually exits free arguments the first one is the rating rating but object so the slaking

224
00:12:09,080 --> 00:12:12,540
bar here and the next one is the value of the rating.

225
00:12:12,540 --> 00:12:17,210
So here for example are four stars of four point one five stars.

226
00:12:17,210 --> 00:12:28,790
As you can see here for example three point one four stars 4.1 five stars or even one star two star

227
00:12:28,850 --> 00:12:29,840
or other values.

228
00:12:29,870 --> 00:12:36,500
So this is that value rating which is of type float and we have this Boullion argument from use it.

229
00:12:36,530 --> 00:12:37,040
OK.

230
00:12:37,160 --> 00:12:42,080
So now inside this under-rating changed I want you to paste in a line of code and then I'm going explain

231
00:12:42,080 --> 00:12:43,320
to you what's going on here.

232
00:12:43,460 --> 00:12:47,930
So this is the line of code that they actually pasted here TOSed that make text.

233
00:12:47,930 --> 00:12:51,680
First of all I actually specified the context of our application.

234
00:12:51,680 --> 00:12:56,120
The second argument is actually the text that I want to show to the use that the number of stars are

235
00:12:56,540 --> 00:12:57,170
rating.

236
00:12:57,290 --> 00:13:04,730
OK so that can we can actually understand we can actually get the value of these rating but here for

237
00:13:04,730 --> 00:13:07,630
example four stars three point one or five stars.

238
00:13:07,760 --> 00:13:12,260
OK so with this rating the number of stars are in space rating.

239
00:13:12,470 --> 00:13:16,880
And here it says it was started in short so this is that the ration of the text that we want to show

240
00:13:16,880 --> 00:13:18,620
to the user that's sure.

241
00:13:18,860 --> 00:13:23,740
OK so now let's actually run our project and see what happens.

