1
00:00:00,760 --> 00:00:06,600
So this is the effort that we needed to actually override inside of this main activity class.

2
00:00:06,600 --> 00:00:06,870
OK.

3
00:00:06,890 --> 00:00:11,440
OK because you are actually implementing this on item calculus in an interface.

4
00:00:11,460 --> 00:00:17,550
So inside of the Smurfette of we're going to actually put in our own implementations and decide if it

5
00:00:17,550 --> 00:00:23,400
is going to be called every time the user clicks on one of these items inside of this list.

6
00:00:23,460 --> 00:00:24,470
As you can see here.

7
00:00:24,480 --> 00:00:24,950
OK.

8
00:00:25,050 --> 00:00:31,110
So now inside of this method as you can see here let's actually create a string object a key strength

9
00:00:31,680 --> 00:00:34,580
and the name of this object is item value.

10
00:00:34,590 --> 00:00:39,780
So just type in here item value assignment operator.

11
00:00:39,930 --> 00:00:44,340
So now I want to actually get the values that are inside of the list view.

12
00:00:44,340 --> 00:00:48,960
For example the value that is inside of this item is Android developer of course.

13
00:00:48,960 --> 00:00:49,390
OK.

14
00:00:49,500 --> 00:00:51,000
So in order to get this value.

15
00:00:51,000 --> 00:00:54,290
First of all I need to refer to this list view.

16
00:00:54,300 --> 00:00:54,810
OK.

17
00:00:54,930 --> 00:01:01,350
So this we at least view is actually given to us as an argument as you can see here this patent argument

18
00:01:01,620 --> 00:01:04,590
is actually does list view here as you can see here.

19
00:01:04,680 --> 00:01:06,660
This is of type after view here.

20
00:01:06,660 --> 00:01:07,350
OK.

21
00:01:07,770 --> 00:01:10,110
So this parent argument is this this view.

22
00:01:10,230 --> 00:01:14,580
So I can just first of all refer to then to this list you just parent.

23
00:01:14,750 --> 00:01:15,210
OK.

24
00:01:15,360 --> 00:01:16,980
So this is our argument.

25
00:01:17,040 --> 00:01:17,410
OK.

26
00:01:17,460 --> 00:01:21,360
So now I can actually call a method on this parent here.

27
00:01:21,360 --> 00:01:21,770
OK.

28
00:01:21,810 --> 00:01:27,840
So parent that gets item at the position.

29
00:01:27,840 --> 00:01:34,400
So now we want to actually get the item add up at a specific position inside of this list.

30
00:01:34,410 --> 00:01:34,890
OK.

31
00:01:35,040 --> 00:01:40,670
So for example this item is actually the position 0 this item is at position 1.

32
00:01:40,680 --> 00:01:47,100
This item is a position too and this item is position free and this item is that position for.

33
00:01:47,280 --> 00:01:50,790
So here we want to actually get the item at a specific position.

34
00:01:50,790 --> 00:01:56,900
So we actually also have this position as an argument or to dismiss it as you can see here.

35
00:01:56,940 --> 00:02:03,590
So we have the item that is actually the inside of this specific position inside of this list.

36
00:02:03,660 --> 00:02:04,140
OK.

37
00:02:04,230 --> 00:02:09,710
So if you have that value here as you can see as an argument called position OK.

38
00:02:09,870 --> 00:02:12,750
So I can just put that value here position.

39
00:02:13,280 --> 00:02:14,070
OK.

40
00:02:14,290 --> 00:02:18,970
And now let's actually call them if it is trained on this method.

41
00:02:19,050 --> 00:02:21,750
So it can actually convert that value to a string value.

42
00:02:21,870 --> 00:02:26,440
And then we can actually assign that value to the item value string object.

43
00:02:26,480 --> 00:02:28,350
OK so let me explain again.

44
00:02:28,350 --> 00:02:31,240
First of all with the fed through the patent argument.

45
00:02:31,260 --> 00:02:33,460
So this patent argument is this this view.

46
00:02:33,530 --> 00:02:34,150
OK.

47
00:02:34,320 --> 00:02:34,840
And we are.

48
00:02:34,890 --> 00:02:41,130
You are actually calling MF at on this argument get item at position so it can actually get a specific

49
00:02:41,190 --> 00:02:44,510
item inside of this specific position inside of this list.

50
00:02:44,520 --> 00:02:45,180
This you.

51
00:02:45,210 --> 00:02:50,400
OK so here we need to actually assign an argument to the Smurfette.

52
00:02:50,400 --> 00:02:53,640
So it's going actually asked us which identity you want.

53
00:02:53,640 --> 00:02:59,710
So we want this specific item that is inside of this specific position that is inside of this area.

54
00:02:59,850 --> 00:03:04,420
So we have that position as an argument to this click on item please.

55
00:03:04,520 --> 00:03:04,950
OK.

56
00:03:05,040 --> 00:03:08,580
So position so it get item at position position.

57
00:03:08,740 --> 00:03:09,330
Okay.

58
00:03:09,680 --> 00:03:10,550
Datastream.

59
00:03:10,830 --> 00:03:11,420
OK.

60
00:03:11,700 --> 00:03:17,630
So now let's actually create a tossed object so TOSed that makes text.

61
00:03:17,880 --> 00:03:21,830
And here we need to actually specify our free arguments to this.

62
00:03:21,830 --> 00:03:22,470
Our method here.

63
00:03:22,470 --> 00:03:24,670
First of all we need to specify the context.

64
00:03:24,810 --> 00:03:29,540
So the context is diskless main activity that this comma.

65
00:03:29,970 --> 00:03:36,180
And here we need to actually put in the value the text that we want to show the user whenever the user

66
00:03:36,180 --> 00:03:37,940
clicks on one of these items here.

67
00:03:37,980 --> 00:03:38,630
OK.

68
00:03:38,760 --> 00:03:42,010
So I can just referred to the name of this item value here.

69
00:03:42,200 --> 00:03:45,210
Okay item value karma.

70
00:03:45,960 --> 00:03:54,450
And then we need to actually specify the duration of the time that this message is going to be shown

71
00:03:54,450 --> 00:03:54,960
to the user.

72
00:03:54,990 --> 00:04:03,780
OK so now again just typing are toast that lenth short.

73
00:04:04,200 --> 00:04:07,470
And he had to actually call the show method undismayed.

74
00:04:07,500 --> 00:04:10,530
In order to show this value to the user.

75
00:04:10,580 --> 00:04:15,210
OK so now let's actually run our project and see what happens.

76
00:04:15,210 --> 00:04:20,410
So as you can see here now our application is actually running on the emulator here.

77
00:04:20,490 --> 00:04:25,030
And let's actually click on one of these items inside of this list for you.

78
00:04:25,080 --> 00:04:28,380
So as you can see here it says objective Seitel will appear of course.

79
00:04:28,380 --> 00:04:36,510
So here I can just click on this item here are U.S. developer of course here Android developers of course.

80
00:04:36,580 --> 00:04:44,430
OK so now let's actually increase the size of these values of these items inside of this list view.

81
00:04:44,430 --> 00:04:50,010
So let's actually go back and say this content underline in that example and we can either put this

82
00:04:50,100 --> 00:04:57,960
attribute here text size here for example or can just type in text size and then present Enter key on

83
00:04:57,960 --> 00:05:06,850
your keyboard and here inside of these double quotes I can put in a value for example number 70 of DP.

84
00:05:07,210 --> 00:05:07,760
OK.

85
00:05:07,900 --> 00:05:10,160
Or I can just put in espie OK.

86
00:05:10,210 --> 00:05:12,970
Espies stands for screen pixels.

87
00:05:12,970 --> 00:05:16,050
So for the size of your text it's better to use s.p.

88
00:05:16,050 --> 00:05:16,440
OK.

89
00:05:16,480 --> 00:05:21,340
And then let's actually go back and say it is a design tab here as you can see by clear chance here

90
00:05:21,820 --> 00:05:25,510
and now I can actually select this text view here and I can.

91
00:05:25,630 --> 00:05:31,320
And we can actually as you can see the size of this text size is 70 s.p.

92
00:05:31,440 --> 00:05:32,270
OK.

93
00:05:32,590 --> 00:05:38,230
We can actually change these attributes the values of these attributes here inside of these properties

94
00:05:38,530 --> 00:05:43,270
or we can actually change those values inside of these takes that up and here inside of it.

95
00:05:43,460 --> 00:05:44,610
This takes you here.

96
00:05:44,620 --> 00:05:45,180
OK.

97
00:05:45,370 --> 00:05:48,670
So let's actually run our project and see what happens.

98
00:05:48,670 --> 00:05:56,020
So now as you can see our application is on the simulator and we can see that the size of these of these

99
00:05:56,020 --> 00:06:01,190
items as you can see of these are values that are inside of this list which is actually much larger.

100
00:06:01,240 --> 00:06:01,520
OK.

101
00:06:01,540 --> 00:06:08,080
Android developer of course as you can see here are iOS developers of course and we can see and we can

102
00:06:08,080 --> 00:06:13,410
actually scroll here in order to see the other values inside of this list.

103
00:06:13,420 --> 00:06:14,800
OK.

104
00:06:14,830 --> 00:06:19,660
So let's actually change the color of these text views.

105
00:06:19,680 --> 00:06:19,990
OK.

106
00:06:19,990 --> 00:06:22,540
Change the color of these items.

107
00:06:22,600 --> 00:06:27,580
So let's actually go back and say this content underline means that examine and here inside of this

108
00:06:27,580 --> 00:06:28,410
takes me a tap.

109
00:06:28,410 --> 00:06:34,530
I can't just typing text color and then press Enter key on your keyboard.

110
00:06:34,880 --> 00:06:41,610
And here let's actually we can actually put in an orgy because the inside of these double quotes.

111
00:06:41,610 --> 00:06:46,810
And now I can actually put a hash tag here and then I can paste that value here.

112
00:06:46,810 --> 00:06:47,380
OK.

113
00:06:47,770 --> 00:06:50,770
So now let's actually do on our project and see what happens.

114
00:06:50,770 --> 00:06:55,190
So as you can see here our application is running on this emulator here.

115
00:06:55,390 --> 00:06:59,080
And as you can see we have these values inside of this list OK.

116
00:06:59,140 --> 00:07:00,650
Android developer of course.

117
00:07:00,760 --> 00:07:05,470
And as you can see the color of these values is actually changed.

118
00:07:05,470 --> 00:07:05,890
OK.

119
00:07:05,980 --> 00:07:09,690
And by the way if you want to actually get these are G-B colors.

120
00:07:09,730 --> 00:07:10,200
OK.

121
00:07:10,330 --> 00:07:14,410
There is a Web site that is called ropy tables that come here.

122
00:07:14,470 --> 00:07:20,810
Slash VEP slash color slash R.G. be underlined colors that HVM you can actually put this you are in

123
00:07:20,850 --> 00:07:23,710
your web browser and you will be guided to this page here.

124
00:07:23,710 --> 00:07:24,210
OK.

125
00:07:24,370 --> 00:07:26,820
And here you can actually choose one of these colors.

126
00:07:26,830 --> 00:07:34,030
Ok for example this color or this color as you can see here and you need to actually copy this a hex

127
00:07:34,030 --> 00:07:35,910
value as you can see here.

128
00:07:36,190 --> 00:07:39,550
And then you can you can actually put that value inside of these double quotes.

129
00:07:39,570 --> 00:07:44,670
OK first you need to put a hash tag and then you need to put that hex value here.

130
00:07:44,700 --> 00:07:50,190
OK so now let's actually do an art project and see what happens.

131
00:07:50,200 --> 00:07:55,900
So as you can see here and our application is running on this emulator and you can see that the color

132
00:07:55,900 --> 00:07:58,160
of these values is actually changed.

133
00:07:58,180 --> 00:07:59,290
OK.

134
00:07:59,290 --> 00:08:01,810
So I think that's enough for this story.

135
00:08:02,020 --> 00:08:07,480
And if you have any questions please post the discussion in the course and then I'll do my best to answer

136
00:08:07,510 --> 00:08:08,730
all of your questions.

137
00:08:08,860 --> 00:08:12,600
Thank you very much for watching and I'll see you in the next tutorial.

