1
00:00:00,210 --> 00:00:06,070
Hire everyone in this theater we're going to go ahead and create another Android application.

2
00:00:06,090 --> 00:00:07,230
So just click on this.

3
00:00:07,270 --> 00:00:14,580
Start in your Android studio project and for the application name just type in your app 26 and then

4
00:00:14,580 --> 00:00:22,770
click on next and here choose API 16 Android 4 point point 1 Jelly Bean for a minimum SDK and then click

5
00:00:22,770 --> 00:00:24,110
on next here.

6
00:00:24,110 --> 00:00:26,520
Choose blench activity next.

7
00:00:26,670 --> 00:00:28,120
And then we can finish.

8
00:00:28,150 --> 00:00:29,410
OK OK.

9
00:00:29,520 --> 00:00:33,170
Now let's actually select this hello world takes you here.

10
00:00:33,450 --> 00:00:38,870
And then press on delete key on your keyboard and then double click on this race for here.

11
00:00:39,030 --> 00:00:45,140
Lay out activity underline that example and then here selectees floating action butter.

12
00:00:45,270 --> 00:00:49,750
And then click on delete and then actually person delete key on your keyboard.

13
00:00:49,790 --> 00:00:55,590
OK so now let's actually go back inside this content line made that example.

14
00:00:55,620 --> 00:00:59,690
And here we are actually designed to use an interface of our application.

15
00:00:59,700 --> 00:01:07,620
So now let's actually select these linearly out vertical here and put it at the center of this relatively

16
00:01:07,620 --> 00:01:08,270
out here.

17
00:01:08,340 --> 00:01:09,010
OK.

18
00:01:09,330 --> 00:01:15,180
And then let's actually select this large takes of you here and put it at the center of this linearly

19
00:01:15,180 --> 00:01:16,790
outwards call here.

20
00:01:17,070 --> 00:01:24,210
Double click on it and for the text just type in here the initial capacity of aerialist is and then

21
00:01:24,210 --> 00:01:30,150
put a colon OK at the end of your text and then press Enter key on your keyboard.

22
00:01:30,180 --> 00:01:30,720
OK.

23
00:01:31,080 --> 00:01:38,230
So now it's actually the rack and other large text view into this linearly and vertical here and double

24
00:01:38,230 --> 00:01:45,350
click on it delete the text of this text view and for the ID just type in here takes the initial capacity

25
00:01:45,350 --> 00:01:46,220
OK.

26
00:01:47,310 --> 00:01:52,670
Initial capacity and then present Enter key on your keyboard.

27
00:01:52,980 --> 00:01:57,420
So now it's actually actually a scroll.

28
00:01:57,420 --> 00:02:00,650
You are a horizontal scroll you into this linearly alphabetical.

29
00:02:00,690 --> 00:02:05,680
Just put it at the center of this linearly out vertical.

30
00:02:06,100 --> 00:02:06,760
OK.

31
00:02:07,050 --> 00:02:14,230
And then for the layout we just assign the value wrap content here.

32
00:02:14,490 --> 00:02:16,810
And for the of height assign the value 50.

33
00:02:16,940 --> 00:02:17,810
OK.

34
00:02:18,240 --> 00:02:24,900
And then let's actually select this large takes view and put it inside this horizontal scroll view here

35
00:02:25,380 --> 00:02:28,540
and then double click on it deletes the text of the stakes.

36
00:02:28,620 --> 00:02:33,080
And for the ID just type in here takes the released values.

37
00:02:33,090 --> 00:02:33,490
OK.

38
00:02:33,540 --> 00:02:36,130
And then person enter here on your keyboard.

39
00:02:36,540 --> 00:02:44,180
So now let's actually select another large text view here and put it inside this up linearly with vertical

40
00:02:44,660 --> 00:02:46,670
A-J and double click on it.

41
00:02:46,800 --> 00:02:54,510
And for the text just type in here the capacity of at least after adding values is and put a colon at

42
00:02:54,510 --> 00:02:55,080
the end here.

43
00:02:55,080 --> 00:03:00,460
Or keep the capacity of at least after adding values is colon.

44
00:03:00,540 --> 00:03:03,040
And then press enter key on your keyboard.

45
00:03:03,330 --> 00:03:08,480
So now let's actually select another large text view and put it up below this text view here.

46
00:03:08,490 --> 00:03:11,940
And inside these are linearly out vertical at the center.

47
00:03:11,940 --> 00:03:12,790
OK.

48
00:03:12,990 --> 00:03:16,100
Double click on it deletes the text of this text view.

49
00:03:16,530 --> 00:03:28,030
And then for the IDE it takes the at least capacity after adding values.

50
00:03:28,840 --> 00:03:29,530
OK.

51
00:03:29,670 --> 00:03:32,020
And then press Enter key on your keyboard.

52
00:03:32,100 --> 00:03:41,100
OK so now let's actually go back inside this main activity that double file here and now let's actually

53
00:03:41,310 --> 00:03:45,210
delete these lines of code that are related to the menu of options button here.

54
00:03:45,270 --> 00:03:50,610
And then it is a block of code that is related to the floating action button.

55
00:03:50,610 --> 00:03:53,320
And now we can actually put our own code here.

56
00:03:53,480 --> 00:03:57,740
OK so now let's actually create some takes objects here.

57
00:03:57,900 --> 00:04:03,450
So as you can see here these are the lines of code that actually pasted here and here as you can see

58
00:04:03,450 --> 00:04:04,730
in line 19.

59
00:04:04,920 --> 00:04:11,070
I created an object from this text view class called TXI the initial capacity.

60
00:04:11,070 --> 00:04:18,090
And here I referred to this identity X the initial capacity and here as you can CTX the A-list values

61
00:04:18,450 --> 00:04:27,810
are that are the list values anti-X the array list capacity after adding values TXI the Arab List capacity

62
00:04:27,810 --> 00:04:29,290
after adding values here.

63
00:04:29,370 --> 00:04:33,270
OK so now let's actually add somewhat some lines of code here.

64
00:04:33,380 --> 00:04:34,290
OK OK.

65
00:04:34,350 --> 00:04:37,960
Now we want to actually create an array of string values.

66
00:04:37,980 --> 00:04:38,720
OK.

67
00:04:39,000 --> 00:04:45,620
So here as you can see in line 26 I created an array of string values called animals.

68
00:04:45,750 --> 00:04:49,320
But this time I actually created an array list.

69
00:04:49,380 --> 00:04:50,020
OK.

70
00:04:50,400 --> 00:04:55,980
So here I can actually tell you that this type of array is proficient.

71
00:04:56,250 --> 00:05:02,440
For the users for the programmers who actually don't know the length of their alley.

72
00:05:02,450 --> 00:05:03,090
OK.

73
00:05:03,470 --> 00:05:11,480
So here as you can see we have our A-list here and inside of these attacks I actually specified the

74
00:05:11,480 --> 00:05:13,410
type of my Arey Stream.

75
00:05:13,460 --> 00:05:16,560
And then the name of my Auret is animals.

76
00:05:16,760 --> 00:05:23,480
And then I actually instantiated this Ari while using this new keyboard Aurelia's strange Prentice's

77
00:05:23,590 --> 00:05:24,290
semi-close.

78
00:05:24,380 --> 00:05:28,440
OK this is how you create and actually really object.

79
00:05:28,450 --> 00:05:31,410
Now I'm going to actually add some values to this.

80
00:05:31,560 --> 00:05:31,960
OK.

81
00:05:32,000 --> 00:05:38,190
So first of all let me actually tell you what would be the size of this at least here.

82
00:05:38,210 --> 00:05:42,920
So now I'm going to actually output the size of this at least to the screen.

83
00:05:43,280 --> 00:05:50,330
So here I just referred to the name of this object TXI the initial capacity that said text anemones.

84
00:05:50,510 --> 00:05:54,210
So now I referred to the name of this Aurelia's object here.

85
00:05:54,320 --> 00:05:56,200
Animals that size.

86
00:05:56,390 --> 00:06:02,730
So the Smurfette this size actually turns up the size of these are here to me.

87
00:06:02,750 --> 00:06:09,030
So here I actually converted this value to a string value so that we can see this rally on the screen.

88
00:06:09,050 --> 00:06:09,660
OK.

89
00:06:09,950 --> 00:06:12,890
So let's actually on our project and see what happens.

90
00:06:12,890 --> 00:06:19,580
So here as you can see our application is running on this emulator and the initial capacity of at least

91
00:06:19,670 --> 00:06:20,790
is zero.

92
00:06:21,100 --> 00:06:21,700
OK.

93
00:06:22,010 --> 00:06:28,460
So let's go back and say this main activity the java file here and now let's actually add some values

94
00:06:28,790 --> 00:06:29,990
to these animals.

95
00:06:30,370 --> 00:06:30,950
OK.

96
00:06:31,220 --> 00:06:39,410
So here as you can see I actually added some values to these animals Auret animals that live in animals

97
00:06:39,620 --> 00:06:50,880
that had Tiger animals and chat animals that punter animals that bear animals that bird animals at FOX.

98
00:06:50,930 --> 00:06:51,490
OK.

99
00:06:51,680 --> 00:06:56,310
And this feature is adding feature is not actually available for a normal race.

100
00:06:56,330 --> 00:06:56,970
OK.

101
00:06:57,170 --> 00:07:01,290
So if you do know what would be the length of your of a.

102
00:07:01,550 --> 00:07:05,870
Use the normal rate that they actually touch you in the previous tutorials.

103
00:07:06,110 --> 00:07:12,610
But if you do not know what would be the length of your array are used this kind of art at least here.

104
00:07:12,680 --> 00:07:13,750
OK.

105
00:07:14,140 --> 00:07:20,590
And now let me actually output these values to the screen by using a for loop here.

106
00:07:20,600 --> 00:07:25,970
So now I'm going actually paste in some lines of code here and then I'll explain to you what's going

107
00:07:25,970 --> 00:07:26,330
on here.

108
00:07:26,330 --> 00:07:26,900
OK.

109
00:07:27,110 --> 00:07:32,290
So here as you can see these are the lines of code that they actually pasted here and in line first

110
00:07:32,330 --> 00:07:33,600
is forty eight.

111
00:07:33,620 --> 00:07:37,520
As you can see I actually declare a string variable here.

112
00:07:37,550 --> 00:07:41,950
And as you can see I didn't instantiate this variable yet.

113
00:07:41,990 --> 00:07:42,520
OK.

114
00:07:42,740 --> 00:07:44,680
And here I created a for loop.

115
00:07:44,720 --> 00:07:45,240
OK.

116
00:07:45,410 --> 00:07:51,110
And inside the apprentice's of this for a loop as you can see I created of our table of type integer

117
00:07:51,380 --> 00:07:55,400
index and then I assign the value 0 to this variable.

118
00:07:55,550 --> 00:08:01,790
And then here I specify the condition which determines how many times this group is going to be executed.

119
00:08:01,790 --> 00:08:08,850
So until the value of this index variable is less than the value of the size of these animals array

120
00:08:09,020 --> 00:08:11,600
as you can see this loop is going to be executed.

121
00:08:11,840 --> 00:08:18,350
And here I specify that after each execution of this for loop the value of this index value bet is going

122
00:08:18,350 --> 00:08:19,840
to be incremented by 1.

123
00:08:19,880 --> 00:08:20,560
OK.

124
00:08:20,780 --> 00:08:27,890
And here inside the curly braces of this for loop as you can see these lines of code here are in line

125
00:08:27,940 --> 00:08:30,200
40 Vonte actually instantiated.

126
00:08:30,200 --> 00:08:37,020
This all takes the at least values here and here I refer it to the name of this object to 60 at least

127
00:08:37,100 --> 00:08:39,610
values that get takes that was three.

128
00:08:39,680 --> 00:08:39,980
OK.

129
00:08:39,980 --> 00:08:43,020
And then I assign this value to this variable here.

130
00:08:43,040 --> 00:08:44,000
OK.

131
00:08:44,030 --> 00:08:50,590
And then in line of 42 as you can see I referred to the name of this object t x the at least values

132
00:08:50,600 --> 00:08:57,550
that said text all TXI the list values plus animals that get here as you can see.

133
00:08:57,560 --> 00:09:02,780
You want to actually get the value that is inside that specific index of this.

134
00:09:02,840 --> 00:09:03,370
OK.

135
00:09:03,380 --> 00:09:10,010
So for example for the first time that this loop is going to be executed the value of this index variable

136
00:09:10,010 --> 00:09:10,520
is zero.

137
00:09:10,520 --> 00:09:11,080
OK.

138
00:09:11,270 --> 00:09:15,010
So here now we have animals that get index.

139
00:09:15,050 --> 00:09:18,480
OK so now it's going actually to go inside of these animals already.

140
00:09:18,530 --> 00:09:24,650
And as you can see here this lion value here is actually at the index 0 of this tree.

141
00:09:24,860 --> 00:09:25,320
OK.

142
00:09:25,430 --> 00:09:28,040
So it's going to return this value to me.

143
00:09:28,040 --> 00:09:32,650
Animals that get our index is going to give me this value to me.

144
00:09:32,660 --> 00:09:33,180
OK.

145
00:09:33,380 --> 00:09:40,020
And here I actually putting a space here and now let's actually run our project and see what happens.

146
00:09:40,070 --> 00:09:40,550
OK.

147
00:09:40,610 --> 00:09:45,100
So here as you can see our application is running on this emulator here.

148
00:09:45,380 --> 00:09:47,380
And here we can actually see these values.

149
00:09:47,390 --> 00:09:49,680
And if they actually scroll to the left.

150
00:09:49,700 --> 00:09:54,730
So here scroll to the left as you can see we can see the other values.

151
00:09:54,740 --> 00:09:55,700
OK.

152
00:09:56,150 --> 00:10:00,800
The other values that are actually inside of these animals a ok.

