1
00:00:00,810 --> 00:00:07,890
And now let's actually call this the animal power that it takes.

2
00:00:07,890 --> 00:00:12,540
And as you can see we have an immense power array here as you can see here.

3
00:00:12,750 --> 00:00:15,740
So we can actually call that Arey here.

4
00:00:15,750 --> 00:00:24,180
So first of all I need to refer to the name of this old RTX the animal power value plus and man's power

5
00:00:25,350 --> 00:00:28,680
sup position OK.

6
00:00:28,860 --> 00:00:43,990
Th the animal speed that said text all the animal spit value plus animal and animals of speech.

7
00:00:44,370 --> 00:00:48,020
As you can see here we have this area here which is of type int..

8
00:00:48,100 --> 00:00:52,490
As you can see and Suppe position.

9
00:00:53,070 --> 00:00:57,870
So now let's actually run our project again and see what happens.

10
00:00:57,870 --> 00:01:02,490
So as you can see here now our application is actually running on this emulator.

11
00:01:02,700 --> 00:01:05,300
And now we can see these values here.

12
00:01:05,350 --> 00:01:10,560
OK name of the animal bear animal power 200 animal speed 50.

13
00:01:10,560 --> 00:01:17,250
So as you can see here we actually created these arrows and you actually assigned these values to the

14
00:01:17,340 --> 00:01:18,300
right respectively.

15
00:01:18,300 --> 00:01:18,970
OK.

16
00:01:19,110 --> 00:01:21,000
So hopefully that makes sense.

17
00:01:21,000 --> 00:01:25,580
For example Bear power is 200 and the speed is 50.

18
00:01:25,710 --> 00:01:26,050
OK.

19
00:01:26,070 --> 00:01:28,540
And you can actually see the other animals here.

20
00:01:28,680 --> 00:01:29,510
OK.

21
00:01:30,060 --> 00:01:32,250
So hopefully that makes sense.

22
00:01:32,250 --> 00:01:34,110
And let's actually do something.

23
00:01:34,240 --> 00:01:40,200
And when the user clicks on one of these items inside of these customized to this view.

24
00:01:40,200 --> 00:01:40,700
OK.

25
00:01:40,950 --> 00:01:45,770
So here as you can see let's actually go back and say this customer dispute that justified and inside

26
00:01:45,810 --> 00:01:50,130
of these kids view method here I can actually call.

27
00:01:50,310 --> 00:01:53,380
As you can see here you have this view here.

28
00:01:53,400 --> 00:01:54,100
OK.

29
00:01:54,540 --> 00:02:01,450
Now I can actually call this view that sets unclick listener.

30
00:02:01,640 --> 00:02:02,150
OK.

31
00:02:02,310 --> 00:02:05,030
Now we want to create an anonymous class.

32
00:02:05,100 --> 00:02:05,580
OK.

33
00:02:05,710 --> 00:02:09,180
New on click listener.

34
00:02:09,180 --> 00:02:13,390
So just select this method here and then press enter key here.

35
00:02:13,860 --> 00:02:14,380
OK.

36
00:02:14,700 --> 00:02:17,450
So as you can see here this block of code here.

37
00:02:17,460 --> 00:02:17,980
OK.

38
00:02:18,090 --> 00:02:22,410
Is going to actually create an anonymous OK in her class.

39
00:02:22,440 --> 00:02:22,850
OK.

40
00:02:23,070 --> 00:02:24,430
So we can't see that class.

41
00:02:24,450 --> 00:02:24,900
OK.

42
00:02:24,990 --> 00:02:30,270
This is actually anonymous and that class is going to actually implement the uncle listener interface.

43
00:02:30,270 --> 00:02:30,670
OK.

44
00:02:30,810 --> 00:02:34,180
So because that class implements this interface.

45
00:02:34,290 --> 00:02:34,870
OK.

46
00:02:35,070 --> 00:02:39,730
We need to that class needs to actually implement this method too.

47
00:02:39,780 --> 00:02:43,460
So that's why you can see this a block of code as it is right here.

48
00:02:43,500 --> 00:02:44,010
OK.

49
00:02:44,340 --> 00:02:46,960
That's why we need to implement this method here.

50
00:02:47,100 --> 00:02:50,970
So inside of this uncle method I can put in my own implementations here.

51
00:02:51,030 --> 00:02:55,680
So inside of the Smurfette I'm going actually pasting a line of code and then I'm going to explain to

52
00:02:55,680 --> 00:02:56,670
you what's going on here.

53
00:02:56,670 --> 00:03:02,580
So as you can see here I created a toast object I referred to the name of this post-collapse that make

54
00:03:02,580 --> 00:03:03,240
text.

55
00:03:03,300 --> 00:03:06,830
And here I actually specify it as an argument to the context.

56
00:03:06,870 --> 00:03:14,580
OK so I declared this context as you can see here in a class context and here as you can see inside

57
00:03:14,610 --> 00:03:18,210
of our uncle Mefford we can see this context.

58
00:03:18,300 --> 00:03:18,920
OK.

59
00:03:19,440 --> 00:03:25,590
And here for the second argument we need to specify the text that that we want to show to the user and

60
00:03:25,590 --> 00:03:30,420
for the first argument we need to actually specify the duration of the text that we want to show to

61
00:03:30,420 --> 00:03:30,990
the user.

62
00:03:31,140 --> 00:03:35,910
And then we need to call the Schuurman effect on the Smurfette in order to actually show this takes

63
00:03:35,910 --> 00:03:37,060
to the user OK.

64
00:03:37,380 --> 00:03:40,650
So let's actually do it on our project again and see what happens.

65
00:03:40,650 --> 00:03:44,050
So as you can see our application is running on this emulator.

66
00:03:44,160 --> 00:03:48,830
So if we actually click on one of these items let's see what happens.

67
00:03:48,840 --> 00:03:54,060
So he says name of the animal birth name of the animal chow.

68
00:03:54,200 --> 00:03:55,140
OK.

69
00:03:55,290 --> 00:03:58,890
And here as you can see I am getting the value of this to the animal name.

70
00:03:59,030 --> 00:03:59,610
OK.

71
00:03:59,970 --> 00:04:03,650
So I can't just click on this name of the animal horse.

72
00:04:03,810 --> 00:04:04,580
OK.

73
00:04:04,940 --> 00:04:07,800
I can put in other ideas here so I could just put in.

74
00:04:07,830 --> 00:04:08,370
Awesome.

75
00:04:08,440 --> 00:04:10,260
Two double quotes here.

76
00:04:10,390 --> 00:04:11,960
Back for Slash and.

77
00:04:12,420 --> 00:04:13,110
OK.

78
00:04:13,500 --> 00:04:20,610
So I didn't actually concatenate these two values together and here I could just put up last operator

79
00:04:20,610 --> 00:04:21,030
here.

80
00:04:21,060 --> 00:04:27,290
I could just refer to the name of this T-Rex the animal power that get text.

81
00:04:27,300 --> 00:04:33,630
And then again I could actually put an A-plus operator to double quotes by full slash in New newline

82
00:04:33,630 --> 00:04:36,160
character plus operator.

83
00:04:36,430 --> 00:04:42,470
The animal speed dot I get text as you can see here.

84
00:04:42,660 --> 00:04:45,560
Now let's actually do an art project again and see what happens.

85
00:04:45,810 --> 00:04:49,590
So as you can see our application is running on this emulator.

86
00:04:49,680 --> 00:04:55,030
So if I click on this item here as you can see it says name of the animal bird.

87
00:04:55,080 --> 00:04:57,430
And as you can see we can see power and speed.

88
00:04:57,600 --> 00:05:02,480
So here I could just change this lens on the lens short to land on the line line.

89
00:05:02,790 --> 00:05:04,150
Let's run our project again.

90
00:05:04,170 --> 00:05:06,880
So here as you can see again our application is running.

91
00:05:07,080 --> 00:05:14,360
And if you actually click on this first item here it says name of the animal bear animal power 200 animal

92
00:05:14,380 --> 00:05:15,810
speed 50.

93
00:05:15,870 --> 00:05:21,810
So here name of the animal that animal power 50 animal speed 60.

94
00:05:21,810 --> 00:05:31,750
So for example Tiger animal named Tiger power 220 and speed 100 lion.

95
00:05:31,800 --> 00:05:34,260
And you can see these values here.

96
00:05:34,260 --> 00:05:36,300
So hopefully that makes sense.

97
00:05:36,300 --> 00:05:41,880
And let's actually go back and say this customized Arliss is through the audio file here.

98
00:05:42,310 --> 00:05:45,370
And I think that's enough for this application.

99
00:05:45,870 --> 00:05:54,870
And you can actually create your own customized list view and bind that list view of this list view

100
00:05:54,900 --> 00:05:55,470
here.

101
00:05:55,680 --> 00:05:57,370
So thank you very much for watching.

102
00:05:57,390 --> 00:06:02,520
And if you have any questions please post the discussion in the course and then I'll do my best to answer

103
00:06:02,550 --> 00:06:04,070
all of your questions.

104
00:06:04,260 --> 00:06:08,150
And thank you very much for watching and I'll see you in the next year.

105
00:06:08,150 --> 00:06:08,610
Tauriel.

