1
00:00:00,950 --> 00:00:01,760
Hello everyone.

2
00:00:01,760 --> 00:00:06,650
So now here in this tutorial we're going to go ahead and we're going to provide an implementation for

3
00:00:06,650 --> 00:00:07,180
this method.

4
00:00:07,190 --> 00:00:08,600
Modify user interface.

5
00:00:08,600 --> 00:00:10,810
He had inside this main activity class.

6
00:00:10,820 --> 00:00:11,260
OK.

7
00:00:11,450 --> 00:00:13,890
So let's go inside the curly braces of this method.

8
00:00:13,920 --> 00:00:20,140
First are going to actually create an add a list of all martial art objects that we have insight or

9
00:00:20,200 --> 00:00:26,120
a skill like database so I can say aerialist and inside the angle brackets we need to specify the data

10
00:00:26,120 --> 00:00:31,580
type of the updates that we have inside these ideas which is going to be martial art the name of this

11
00:00:32,300 --> 00:00:39,500
artist is going to be all martial art objects assignment operator and in here I just need to refer to

12
00:00:39,500 --> 00:00:46,130
this database handler reference that return all objects semicolon.

13
00:00:46,310 --> 00:00:49,880
So let me create a new line here so that you can see what's going on here.

14
00:00:49,940 --> 00:00:52,130
Now I can create an if statement here.

15
00:00:52,130 --> 00:01:00,320
So if all Monserrat objects that size is actually greater than zero so this means that if there is actually

16
00:01:00,440 --> 00:01:06,340
a marshal object inside these Wrigley's here then you can go inside the curly braces of this if statement.

17
00:01:06,560 --> 00:01:11,800
So here first of all you want to refer to this scroll view that you have inside is content on.

18
00:01:11,840 --> 00:01:17,130
In that example scroll view that remove all views in layout.

19
00:01:17,150 --> 00:01:22,440
So why do I call this method here because I want it this actually.

20
00:01:22,520 --> 00:01:29,180
Every time they modify user interface it's called I want the views that are actually inside the scroll

21
00:01:29,180 --> 00:01:30,890
view to be removed first.

22
00:01:30,980 --> 00:01:31,410
OK.

23
00:01:31,430 --> 00:01:38,470
And then I want to add them at the newly actually updated marshal hot buttons to the scroll view.

24
00:01:38,510 --> 00:01:45,740
So after this line of code I can't say here let's create a greedily out secretely out and here the name

25
00:01:45,740 --> 00:01:50,180
is clearly an assignment operator new grittily out Kate.

26
00:01:50,300 --> 00:01:54,930
And here we just need to pass the context which is going to be main activity that this semicolon.

27
00:01:55,220 --> 00:01:59,590
So let's refer to this great layout that sits row count.

28
00:01:59,590 --> 00:02:05,940
Let's specify the number of rows that we're going to have in say discretely out said throw count.

29
00:02:06,320 --> 00:02:11,870
And here you can see that we need to pass a value of type integer as the number of rows of our great

30
00:02:11,870 --> 00:02:12,410
layout.

31
00:02:12,470 --> 00:02:13,090
Right.

32
00:02:13,370 --> 00:02:17,530
But here let me tell you that each row is going to have two columns.

33
00:02:17,630 --> 00:02:18,100
Right.

34
00:02:18,390 --> 00:02:26,810
So this means that many to have actually an even number we don't know how many martial arts actually

35
00:02:26,810 --> 00:02:33,260
emotional buttons we're going to have inside our layout inside our scroll here because we're getting

36
00:02:33,760 --> 00:02:37,640
these modular objects from the database from the SGI like.

37
00:02:37,670 --> 00:02:41,110
We don't know how many monster objects are there.

38
00:02:41,360 --> 00:02:48,080
So in that case this means that in order to specify the number of rows of our greatly out first we need

39
00:02:48,080 --> 00:02:50,740
to access the size of this Aurelia's.

40
00:02:50,780 --> 00:02:56,120
So let's put another pair of practices here and refer to these all martial art objects are a list here

41
00:02:56,990 --> 00:03:03,250
and just type in here that size and just put plus one.

42
00:03:03,850 --> 00:03:09,620
And then here the result of this operation here is going to be divided by two.

43
00:03:09,670 --> 00:03:15,860
That's why I said we need to have an even number for that for the columns of each row.

44
00:03:16,030 --> 00:03:16,490
Right.

45
00:03:16,510 --> 00:03:23,960
So for example assume that the size of this all Monserrat all Monserrat objects actually are a here.

46
00:03:24,130 --> 00:03:26,220
This radius is going to be for example nine.

47
00:03:26,230 --> 00:03:29,210
We have nine Montral objects inside this radius.

48
00:03:29,230 --> 00:03:29,960
Right.

49
00:03:30,070 --> 00:03:36,220
So according to this operation here nine plus one is going to be 10 right.

50
00:03:36,310 --> 00:03:42,180
So 10 divided by two is going to give us the value number five.

51
00:03:42,190 --> 00:03:49,240
So in this in this case we're going to have five rows that can have two columns each.

52
00:03:49,240 --> 00:03:54,360
So now imagine that we have 10 modular objects which is an even number right.

53
00:03:54,370 --> 00:04:01,530
Imagine that we have 10 martial artists inside this radius so 10 plus one is 11 right.

54
00:04:01,600 --> 00:04:05,620
So 11 divided by two is going to be a 10.

55
00:04:05,650 --> 00:04:09,010
What fight is going to give us 5 rows.

56
00:04:09,010 --> 00:04:09,610
Why.

57
00:04:09,640 --> 00:04:15,040
Because these sets count method needs a value of type integer.

58
00:04:15,040 --> 00:04:19,460
This means that we can only pass on value of that integer to this method.

59
00:04:19,540 --> 00:04:22,350
We cannot pass a value of type float to this method.

60
00:04:22,690 --> 00:04:30,560
And in other words if we pass a value that is actually the decimal decimal value to the Smurfit that

61
00:04:31,000 --> 00:04:35,340
this symbol value after the decimal point is going to be eliminated.

62
00:04:35,590 --> 00:04:37,820
This method needs only a value of type integer.

63
00:04:37,820 --> 00:04:43,530
So 11 divided by two is going to be again 5 and it's going to give us five rows.

64
00:04:43,870 --> 00:04:50,520
Right so that we can actually assign we can actually put our Monserrat buttons in each row.

65
00:04:50,860 --> 00:04:56,600
So for now if this doesn't make sense don't worry I'm going to explain it again later.

66
00:04:56,650 --> 00:05:04,060
For now I just write this formula here and now after this line of code let's specify the number of counts

67
00:05:04,060 --> 00:05:11,470
that actually the number of columns of each row so greatly that sets column count which is going to

68
00:05:11,470 --> 00:05:12,430
be number 2.

69
00:05:12,550 --> 00:05:16,500
And here let's create an array of marshal or partons.

70
00:05:16,510 --> 00:05:23,010
So I can say martial art but in and pulled up out of practice here and here's a snippet here that Button's

71
00:05:23,380 --> 00:05:31,000
assignment operator new martial art foughten and inside the brackets meaning to specify the size of

72
00:05:31,150 --> 00:05:31,960
this at eight.

73
00:05:31,960 --> 00:05:38,770
So according to the martial art objects that we have inside this Aurelia's we are going to specify the

74
00:05:38,890 --> 00:05:42,180
number of elements that we're going to have inside this at 8.

75
00:05:42,250 --> 00:05:49,180
So it is going to be all modular objects that size right semicolon that may create a new line here so

76
00:05:49,180 --> 00:05:55,300
that you can see what's going on here after this line of what I can't say because I want to be notified

77
00:05:55,300 --> 00:06:01,400
because this class main activity class is going to be notified when to use it interacts with the emotional

78
00:06:01,570 --> 00:06:04,870
buttons of this class marshal of this class.

79
00:06:04,890 --> 00:06:09,750
And if the class is good must actually implement the view and click the center interface.

80
00:06:09,760 --> 00:06:16,060
So let's scroll to the top here and here it says main activity extends up compact activity implements

81
00:06:16,390 --> 00:06:21,400
view that Uncle listener on click listener right.

82
00:06:21,430 --> 00:06:26,560
So because this class now is implementing this interface view that Dunkley class and Elvie must provide

83
00:06:26,830 --> 00:06:29,770
an implementation for the move here inside this class.

84
00:06:29,770 --> 00:06:31,140
So let's scroll down here.

85
00:06:31,330 --> 00:06:38,180
And before the end in curly brace of this class here main activity I can't just step in and click.

86
00:06:38,740 --> 00:06:43,480
So now you can see that we actually override this method here on Cleage So let's scroll through it up

87
00:06:43,480 --> 00:06:49,280
here and let's go to this actually to this method for user interface Meffert after distrain of code.

88
00:06:49,420 --> 00:06:54,320
Now feel are actually are greatly out with martial art.

89
00:06:54,410 --> 00:07:00,790
Partons So first let's create a variable of type integer and it is going to be the index assignment

90
00:07:00,790 --> 00:07:03,280
operator zero semicolon.

91
00:07:03,350 --> 00:07:10,760
And now let's create a for loop here so for and here I can say martial arts and the name of this valley

92
00:07:10,760 --> 00:07:20,190
of it is martial art object call an and let's actually iterate over the objects that we have inside

93
00:07:20,190 --> 00:07:22,540
this Aurelia's all objects.

94
00:07:22,560 --> 00:07:25,920
So let's open and closed this for loop by using these curly braces.

95
00:07:26,100 --> 00:07:33,570
So first of all let's create a martial art object for the index here that we created here of this idea

96
00:07:33,630 --> 00:07:35,640
of this martial art.

97
00:07:35,940 --> 00:07:38,580
So I can refer to this monster that buttons at a.

98
00:07:38,880 --> 00:07:42,690
And I put a pair of brackets here and inside the brackets I can refer to this index.

99
00:07:42,690 --> 00:07:43,220
Right.

100
00:07:43,260 --> 00:07:50,590
All you want to create are martial arts a button for the index of this array.

101
00:07:50,760 --> 00:07:53,460
So I can put an assignment operator here.

102
00:07:53,550 --> 00:07:57,520
Space assignment operator new martial art.

103
00:07:57,530 --> 00:08:05,370
But in this instance of type of button needs first we need to pass the context we are calling the constructor

104
00:08:05,370 --> 00:08:06,480
of this class right.

105
00:08:06,480 --> 00:08:11,030
First we need to pass the context which is going to be an activity that does come on.

106
00:08:11,820 --> 00:08:14,980
And then we need to pass the martial art here.

107
00:08:15,070 --> 00:08:19,020
Are specific martial art object which is going to be this one object.

108
00:08:19,020 --> 00:08:20,470
We have this variable here.

109
00:08:20,510 --> 00:08:22,850
So martial object cynical.

110
00:08:23,190 --> 00:08:24,970
Let me create a new line here.

111
00:08:26,600 --> 00:08:27,290
So that's it.

112
00:08:28,410 --> 00:08:38,220
And here let's specify the text of each martial arts button so I can say marshal hot buttons index dots

113
00:08:38,320 --> 00:08:40,960
sit Tick's.

114
00:08:40,970 --> 00:08:46,520
So first we're going to get the text of the martial art object and then we want to output the price

115
00:08:46,520 --> 00:08:47,510
of that martial art.

116
00:08:47,660 --> 00:08:59,950
So first I can say martial object that gets martial art name plus two coats Bideford slash n and then

117
00:08:59,960 --> 00:09:08,900
here I can say plus again Marshall object that get Marshall Price.

118
00:09:09,080 --> 00:09:16,340
And here you can see that if we get the Marshall name and the Marshall Price we also can output the

119
00:09:16,970 --> 00:09:26,840
ID of each module object so I can say a martial art object that gets that ID plus two quotes two quotes

120
00:09:27,110 --> 00:09:31,900
and then put a back for Slash in here and again put another concatenation operator.

121
00:09:31,910 --> 00:09:35,910
Let me create a new line here so that you can see what's going on here exactly.

122
00:09:36,110 --> 00:09:42,770
So you can see that for the text of each Marshlack button with first the output the ID of that martial

123
00:09:42,770 --> 00:09:43,200
art.

124
00:09:43,460 --> 00:09:47,470
And then we put our passports and hid in order to create a new line here.

125
00:09:47,720 --> 00:09:50,140
And then we say we want to output them.

126
00:09:50,200 --> 00:09:53,110
Marshall name Michael net.

127
00:09:53,150 --> 00:09:57,140
And then finally if you want to put there Marshall Price.

128
00:09:57,140 --> 00:10:04,630
So now after this line of code here I want to specify the color of each martial arts Potin.

129
00:10:04,730 --> 00:10:12,350
So I want to change the background color of each Marshall button according to the color that the user

130
00:10:12,350 --> 00:10:14,000
has specified.

131
00:10:14,000 --> 00:10:21,910
For example in say the update activity or inside the for example at marshal or activity class.

132
00:10:21,980 --> 00:10:24,320
So let's see how we can do that.

133
00:10:24,320 --> 00:10:33,490
Let's create an if statement here and I can refer to this modular object that gets martial arts color.

134
00:10:33,650 --> 00:10:40,910
If martial arts that get martial of color is for example equal to and I put on here I want to hard code

135
00:10:40,910 --> 00:10:44,820
this value I can see red I can do something about this one.

136
00:10:44,840 --> 00:10:46,830
Are you open and close this may for this statement.

137
00:10:46,820 --> 00:10:52,970
I use it by using the curly braces but instead of creating an if statement here it's better to create

138
00:10:53,420 --> 00:10:56,860
a switch statement let's delete this statement here.

139
00:10:56,860 --> 00:10:59,820
Now let's create a switch statement switch.

140
00:11:00,120 --> 00:11:07,620
And now I can refer to this monster object that gets martial arts color get rid of color.

141
00:11:07,910 --> 00:11:12,730
So I want to switch between the values of the color of each module object.

142
00:11:12,830 --> 00:11:17,720
Let's create and chase a case statement and here I can see a case and I can put two two quotes here

143
00:11:17,750 --> 00:11:22,110
because the return type of this method get Marshall that color is actually the string.

144
00:11:22,130 --> 00:11:22,940
Right.

145
00:11:22,940 --> 00:11:30,170
So I can't say that if the value the return type of this and that colored my head is actually red which

146
00:11:30,170 --> 00:11:35,620
is the return value actually if the returned value which is of type string is actually red.

147
00:11:35,720 --> 00:11:37,210
I can put a colon here.

148
00:11:37,570 --> 00:11:42,180
And now I can say that the marshal or buttons.

149
00:11:42,440 --> 00:11:52,650
And then I put a pair of brackets index doth sit baculum color set back in the color color.

150
00:11:53,780 --> 00:11:56,520
Dots red right.

151
00:11:56,530 --> 00:11:57,430
That's it.

152
00:11:57,430 --> 00:12:04,390
And that I can for example say bridge break means I actually break out of these suits.

153
00:12:04,480 --> 00:12:08,560
So it's going to go after the ending curly brace of these three separate statements and it's going to

154
00:12:08,560 --> 00:12:10,340
execute the other quotes here.

155
00:12:10,660 --> 00:12:14,270
So now after this case I can create another case.

156
00:12:14,320 --> 00:12:18,670
Case two coats for example blue co-lead.

157
00:12:18,760 --> 00:12:21,030
Here I can see Marshall hot buttons.

158
00:12:21,490 --> 00:12:29,790
And then I put in x year in the brackets that said background color that's a given color for example

159
00:12:29,790 --> 00:12:38,100
colored that's blue color that's blue right and then break.

160
00:12:38,160 --> 00:12:43,100
Let's create another case of statement so case two coats black.

161
00:12:44,940 --> 00:12:57,560
And I put a call in here and I can say martial art patents index that said background color color that's

162
00:12:57,710 --> 00:12:58,420
black.

163
00:12:58,640 --> 00:13:01,220
Break again.

164
00:13:01,300 --> 00:13:05,250
Chase two coats for example.

165
00:13:05,250 --> 00:13:20,390
The color yellow yellow color and Marshall buttons index that sets by color color dots yellow and then

166
00:13:20,390 --> 00:13:21,520
break.

167
00:13:22,340 --> 00:13:24,420
And here I can create another case.

168
00:13:24,440 --> 00:13:27,530
So case two coats.

169
00:13:27,930 --> 00:13:35,360
And for example the color of gray or the color purple I think purple colon.

170
00:13:35,780 --> 00:13:42,460
And here I can see Marshall patent's index that said color color.

171
00:13:42,500 --> 00:13:45,530
That's purple.

172
00:13:46,000 --> 00:13:48,170
So as you can see if you don't have the color purple here.

173
00:13:48,250 --> 00:13:53,110
So let's instead choose these colors you see on break.

174
00:13:54,770 --> 00:13:57,530
And in order to see what colors do we have here.

175
00:13:57,530 --> 00:14:04,610
So I just to refer to this color class that we have the blue green red and Ulfar you can see all these

176
00:14:04,610 --> 00:14:05,360
colors here.

177
00:14:05,370 --> 00:14:14,510
So we can actually create another Chase's segment for that green color so I can say chase two coats

178
00:14:14,960 --> 00:14:17,750
green color.

179
00:14:18,210 --> 00:14:25,800
I can't say Marsha that buttons index that sets the color color that green color.

180
00:14:25,820 --> 00:14:26,710
That's.

181
00:14:27,240 --> 00:14:30,310
And then here I just need to put a break statement here semicolon.

182
00:14:30,510 --> 00:14:33,390
And finally let's create a default case here.

183
00:14:33,390 --> 00:14:42,420
So default and if none of the cases above is actually true here I'm going to specify that the color

184
00:14:42,690 --> 00:14:45,100
of the pattern is going to be gray.

185
00:14:45,150 --> 00:14:53,450
So I can't say much about Patten's index that sits by Guaran color and here I can say color.

186
00:14:53,670 --> 00:14:54,570
That's great.

187
00:14:54,840 --> 00:14:56,110
That's it break.

188
00:14:58,100 --> 00:15:04,550
So now we can also create another case statement so before this default statement here I can see a case

189
00:15:05,390 --> 00:15:15,760
for example color two coats and the color is going to be for example white light white color Marshall

190
00:15:15,770 --> 00:15:27,480
pitance index that sits on color colored that flight.

191
00:15:27,530 --> 00:15:28,290
That's it.

192
00:15:28,340 --> 00:15:34,860
And then fraiche so I specify these colors here for each martial art pattern.

193
00:15:35,060 --> 00:15:41,930
So after the ending curly brace of these suits me here I can actually create some logic here.

194
00:15:41,930 --> 00:15:49,100
So here I specify the colors of each monster that pattern that I am still inside these for in loop here.

195
00:15:49,160 --> 00:15:49,500
OK.

196
00:15:49,520 --> 00:15:52,420
This is the ending curly brace of this for in loop here right.

197
00:15:52,640 --> 00:15:58,340
So before the ending calibers of this for in do you want to actually create a listener for each Marshall

198
00:15:58,460 --> 00:15:59,090
button.

199
00:15:59,270 --> 00:16:10,950
So I can see Marshlack buttons index that sits sits unclick listener and when it was past the context

200
00:16:10,950 --> 00:16:15,480
which is going to be main activity that this because this main activity class is implementing the view

201
00:16:15,480 --> 00:16:19,500
that unclick listener interface so we can pass this context here.

202
00:16:19,530 --> 00:16:24,210
And finally we need to add these Marshlack buttons to our great view.

203
00:16:24,240 --> 00:16:29,690
So I can say great view and truly great play out that view.

204
00:16:29,730 --> 00:16:34,930
So first we need to pass the child is going to be Monserrat buttons index.

205
00:16:35,400 --> 00:16:36,010
Right.

206
00:16:36,120 --> 00:16:37,220
And then we need to specify.

207
00:16:37,230 --> 00:16:38,400
So just put a comma here.

208
00:16:38,400 --> 00:16:41,850
Here we need to specify the width of each Marshlack button.

209
00:16:41,850 --> 00:16:48,910
So I already created a variable that actually holds the veto of the button so I can refer to that Monserrat

210
00:16:48,930 --> 00:16:52,820
button with Marshman or button with comma.

211
00:16:53,010 --> 00:16:57,670
And here I just need to specify the height of the martial art button so I change.

212
00:16:57,720 --> 00:17:04,670
I can see View group thoughts lay out perhaps thoughts wrapped content.

213
00:17:04,770 --> 00:17:09,420
So let me create a new line here so that you can see what's going on here exactly.

214
00:17:09,450 --> 00:17:15,420
First we specified that if are going to have a listener for each marginal object he had the button actually

215
00:17:15,740 --> 00:17:22,530
and that if we added these martial artists these martial patents to are greatly out here and we specify

216
00:17:22,560 --> 00:17:30,200
the beat and the height and here after the end and curly brace of this for in loop here I'm going to

217
00:17:30,200 --> 00:17:34,990
add this great play out this great you to our scroll view.

218
00:17:35,090 --> 00:17:40,700
So I can say scroll view that I view greed left.

219
00:17:40,740 --> 00:17:47,040
So before the end in curly brace of this if statement here the at this line of code here.

220
00:17:47,070 --> 00:17:47,820
Right.

221
00:17:47,820 --> 00:17:51,320
So this is RMF it modify user interface Smurfette.

222
00:17:51,360 --> 00:17:58,140
So let me tell you that we call this method inside the uncreate Smurfette modify user interface and

223
00:17:58,290 --> 00:18:03,230
we also want to call this method inside the resume method.

224
00:18:03,390 --> 00:18:08,880
So why do you want to call this method inside the presumed effect because when we actually for example

225
00:18:08,880 --> 00:18:16,080
transition to a delete activity there we can delete for example some of the objects some of the objects

226
00:18:16,350 --> 00:18:18,210
that we have inside our database.

227
00:18:18,450 --> 00:18:24,510
So in that case if the user goes back to the main activity there the uncreate method is not going to

228
00:18:24,510 --> 00:18:28,370
be called the did they all resume if it is going to be called.

229
00:18:28,370 --> 00:18:34,320
So you are already familiar with the app and realize lifecycle methods the uncreate and if it is going

230
00:18:34,320 --> 00:18:39,510
to be called for the first time for all or for example when the user actually runs the application.

231
00:18:39,510 --> 00:18:42,050
There are uncreate if it is going to be caught.

232
00:18:42,240 --> 00:18:48,090
But when the user transitions to other activities and goes back to their main activity the uncreate

233
00:18:48,090 --> 00:18:49,600
of it is not going to be caught.

234
00:18:49,620 --> 00:18:57,750
So the old resume if it is going to be called so we want to actually at the Create want to modify the

235
00:18:57,750 --> 00:19:06,150
user interface inside the resume effort when the user actually transitions to for example other activities

236
00:19:06,190 --> 00:19:08,010
and then goes back to the main activity.

237
00:19:08,220 --> 00:19:13,490
So it's better it's better to actually call this method inside our own resume if it too.

238
00:19:13,560 --> 00:19:14,940
So here let's scroll down here.

239
00:19:14,970 --> 00:19:22,500
And before the end in curly brace of this main activity class I can just step in here and resume.

240
00:19:22,710 --> 00:19:28,990
And here we can see that I override it this method on resume if this is a lifecycle method of Android.

241
00:19:29,190 --> 00:19:31,700
And here I can say modify user interface.

242
00:19:31,890 --> 00:19:32,480
Right.

243
00:19:32,520 --> 00:19:37,610
So if you don't understand why I actually called this misfitting So it is a resume if it don't already.

244
00:19:37,710 --> 00:19:40,260
Let me run the application and then I'm going to explain it again.

245
00:19:40,260 --> 00:19:46,110
So let's run the app now and here let's select one of these devices and then click on OK.

246
00:19:46,110 --> 00:19:49,650
So here you can see that our application is running on the simulator.

247
00:19:49,660 --> 00:19:56,010
I can actually scroll between these buttons here as you can see we have Marshall buttons and we can

248
00:19:56,010 --> 00:19:57,170
actually click on them here.

249
00:19:57,180 --> 00:19:57,950
Right.

250
00:19:57,960 --> 00:20:02,300
So you can see that the back end uncolored of all these modular buttons actually blue.

251
00:20:02,520 --> 00:20:06,110
Let's go to the update at demodulate activities here.

252
00:20:06,330 --> 00:20:09,450
So let's change for example the color of this one to.

253
00:20:10,370 --> 00:20:10,840
Right.

254
00:20:11,030 --> 00:20:17,260
And let's see we can modify and let's actually go back to our main activity here you can see that now

255
00:20:17,290 --> 00:20:20,500
the background color of this Marshlack pattern is red.

256
00:20:20,500 --> 00:20:21,010
Why.

257
00:20:21,130 --> 00:20:22,420
Because we call it.

258
00:20:22,440 --> 00:20:24,780
This may fit inside this honorees method.

259
00:20:24,880 --> 00:20:25,820
Right.

260
00:20:25,840 --> 00:20:32,970
So when we for example go to the update marshal activity class here if I click back here now and resume

261
00:20:32,970 --> 00:20:36,580
if it is called not the uncreate method but the resume if it is called.

262
00:20:36,730 --> 00:20:43,170
So that's why it is actually necessary to call this method modify user interface inside this on resume

263
00:20:43,170 --> 00:20:44,230
effort.

264
00:20:44,440 --> 00:20:52,450
So for example here as you can see when we actually click on these modular buttons here nothing happens

265
00:20:52,540 --> 00:20:53,260
right.

266
00:20:53,260 --> 00:20:58,060
So let's go back to android studio and let's pro-white and implementation some implementations here

267
00:20:58,060 --> 00:20:59,830
for this Anklage method.

268
00:20:59,860 --> 00:21:02,020
So let's go inside the Smurfit here.

