1
00:00:11,510 --> 00:00:17,290
High students in the City Hall you are going to go ahead and create our second Android application.

2
00:00:17,510 --> 00:00:22,220
So let's create an android studio project here.

3
00:00:22,220 --> 00:00:25,850
So the application name is going to be our second or app.

4
00:00:25,850 --> 00:00:27,870
Number two it doesn't really make a difference.

5
00:00:27,860 --> 00:00:29,680
You can name it whatever you want.

6
00:00:29,720 --> 00:00:34,030
You can specify the company domain package name and the product location here.

7
00:00:34,280 --> 00:00:36,690
So this actually can next.

8
00:00:36,950 --> 00:00:40,310
And here we need to specify the minimum STK for our application.

9
00:00:40,310 --> 00:00:45,200
So for a minimum masticated AP 16 Android 4.1 jelly bean.

10
00:00:45,320 --> 00:00:45,850
OK.

11
00:00:46,040 --> 00:00:49,670
So this is going to be the minimum version of Android.

12
00:00:49,930 --> 00:00:56,830
So you mean even British version of Android operating system that our application is allowed to run.

13
00:00:57,150 --> 00:00:57,590
OK.

14
00:00:57,740 --> 00:01:05,240
So the use of this device must have at least must have this version of Android Android 4.1 daily pain

15
00:01:05,630 --> 00:01:06,980
and phone and tablet.

16
00:01:07,190 --> 00:01:08,510
So that's good to connect.

17
00:01:08,540 --> 00:01:10,510
And here is basic activity.

18
00:01:10,520 --> 00:01:16,190
Just could be next here and activity name is main activity the lay out name is activity under the main

19
00:01:16,310 --> 00:01:19,980
title main activity and the many resources name is mine you underline me.

20
00:01:20,150 --> 00:01:23,980
So I suggest that you actually don't change any of these values here.

21
00:01:23,990 --> 00:01:29,400
Just click on finish so is going to create the project for us.

22
00:01:29,400 --> 00:01:31,570
So let's wait a little bit here.

23
00:01:37,490 --> 00:01:40,840
So as you can see it's actually Shumi other to be a little areas here.

24
00:01:40,850 --> 00:01:41,740
I just need to wait.

25
00:01:41,750 --> 00:01:45,190
As you can see at the bottom it says cradle built running.

26
00:01:45,470 --> 00:01:51,830
So now going can actually solve the problem for me is Carender here and now the errors are gone.

27
00:01:51,920 --> 00:01:57,490
But if the error actually exists here if the error is not gone for your specific Android.

28
00:01:57,550 --> 00:02:03,380
So you're just peeved at the top and then can you kind of rebuild project or you can actually close

29
00:02:03,380 --> 00:02:06,040
the Android studio and then open it again.

30
00:02:06,050 --> 00:02:10,640
So now let's actually look at these files here look at this file here.

31
00:02:10,670 --> 00:02:13,140
This is actually the contents underline minute example.

32
00:02:13,520 --> 00:02:18,800
And let's click on this activity underly minute exam so you can see that we have two exemplifies the

33
00:02:18,800 --> 00:02:21,180
first one is activity under limited example.

34
00:02:21,230 --> 00:02:24,240
And the second file is content under the last minute segment.

35
00:02:24,440 --> 00:02:31,070
And the reason is that we actually specify that we want to use basic activity when we created the application

36
00:02:31,070 --> 00:02:33,270
to use the basic activity as the template.

37
00:02:33,560 --> 00:02:37,970
So that's why it has actually created two XML files for us.

38
00:02:38,030 --> 00:02:41,890
So what's the difference Sillett sexually click this activity on delaminated exam.

39
00:02:41,900 --> 00:02:48,610
Here let's open it and you can see that we have this floating action button or I can select this filleting

40
00:02:48,620 --> 00:02:49,960
action button right.

41
00:02:49,970 --> 00:02:55,100
So let's go to this text up here at the bottom and we can see that as you can see at the right hand

42
00:02:55,100 --> 00:02:57,960
side we have this preview actually collapse this preview.

43
00:02:58,130 --> 00:03:01,380
So you can see this exemplifies this example McCourt's actually.

44
00:03:01,710 --> 00:03:04,020
And we can see these codes.

45
00:03:04,070 --> 00:03:07,760
And let's actually look at this line of Cahir in line number 24.

46
00:03:07,760 --> 00:03:13,530
Here it says include lay out the outside lay out the slash content underline make.

47
00:03:13,550 --> 00:03:18,620
So this means that this activity underlined means actually includes this content.

48
00:03:18,650 --> 00:03:20,730
Underland me right.

49
00:03:20,850 --> 00:03:27,150
So now inside this activity I main I can actually delete these floating action button.

50
00:03:27,200 --> 00:03:31,610
But inside this content underline minute example here at the top I can actually switch between these

51
00:03:31,610 --> 00:03:33,320
tabs between these taps.

52
00:03:33,380 --> 00:03:39,590
So if I actually switch the content on there I mean I mean there's a tab you can see that I cannot select

53
00:03:39,590 --> 00:03:41,470
this floating action button here.

54
00:03:41,780 --> 00:03:46,310
But if it actually Suroosh to activity Underland mean that ASML I consider exploiting action button

55
00:03:46,340 --> 00:03:47,790
and then I can delete it.

56
00:03:48,210 --> 00:03:50,370
But there is another difference.

57
00:03:50,510 --> 00:03:56,120
And is that in inside this activity underly I mean a decimal or you cannot selectees hello world takes

58
00:03:56,120 --> 00:04:02,590
you right this activity and eliminate examen actually holds includes this content.

59
00:04:02,600 --> 00:04:03,740
Underland minute segment.

60
00:04:03,890 --> 00:04:06,710
So if I you to go to this content under the last minute example.

61
00:04:06,830 --> 00:04:12,180
Now you can see that I can select this hello world view and then present delete key on my keyboard.

62
00:04:12,620 --> 00:04:17,930
So at that point if I actually go to a text that you can see that we have actually a relative lay out

63
00:04:17,930 --> 00:04:23,810
here I'll talk more about this layouts later but for now just know that the rel. out is going to actually

64
00:04:23,810 --> 00:04:26,610
position our user interface components.

65
00:04:26,660 --> 00:04:28,910
They're called the two other components.

66
00:04:28,980 --> 00:04:29,400
Right.

67
00:04:29,420 --> 00:04:33,340
So for example our insight is of widgets for this palette section.

68
00:04:33,340 --> 00:04:38,030
Here you can see that we have this with a spoiler so let's select this text view.

69
00:04:38,490 --> 00:04:42,460
And now let's drag this text view here inside this relatively.

70
00:04:42,500 --> 00:04:49,000
So you can see these arrows and it is actually pointing to other directions so this means that this

71
00:04:49,000 --> 00:04:55,990
takes you can be positioned according to these directions like for example down or actually decelerate.

72
00:04:55,990 --> 00:04:57,380
This takes you here again.

73
00:04:59,150 --> 00:05:02,200
And I see that I can actually put it wherever I want.

74
00:05:02,210 --> 00:05:07,310
So let's actually put it here at the center so you can see these dotted lines that is actually specifying

75
00:05:07,310 --> 00:05:12,210
that this textbook can be actually at the center horizontally and center vertical.

76
00:05:12,290 --> 00:05:17,960
Let's put it here and now I can actually give our text to the States view.

77
00:05:18,120 --> 00:05:21,450
So look at this property section here on the right hand side.

78
00:05:21,480 --> 00:05:23,540
We can give an ID to this text view.

79
00:05:23,550 --> 00:05:26,640
We can get actually a lay out with a layout height.

80
00:05:26,640 --> 00:05:28,770
I'll talk more about these later.

81
00:05:28,800 --> 00:05:33,380
So for now let's give a text to this things if you look at this text attribute here.

82
00:05:33,510 --> 00:05:39,540
But if you don't see if you cannot see these properties here at the bottom it says View all properties

83
00:05:39,690 --> 00:05:40,050
right.

84
00:05:40,080 --> 00:05:40,900
Just click on it.

85
00:05:41,070 --> 00:05:43,390
And here you can see all these properties here.

86
00:05:43,470 --> 00:05:44,120
Right.

87
00:05:44,250 --> 00:05:47,140
So now let's actually assessed for a specific property.

88
00:05:47,140 --> 00:05:53,310
So for example I want to search for the text property I select one of these properties here and now

89
00:05:53,370 --> 00:06:01,660
I can type in text and as he has said I can actually find this text property here and I can change the

90
00:06:01,660 --> 00:06:03,230
text of this takes view.

91
00:06:03,280 --> 00:06:11,530
So I just double click on this value and I can change it here so I can say put your text here for example

92
00:06:11,530 --> 00:06:17,070
put your text here and in person and help you and your keyboard.

93
00:06:17,100 --> 00:06:19,530
So I change to take the text of this text view.

94
00:06:19,740 --> 00:06:24,080
So let's actually increase the text size the font size of this text view.

95
00:06:24,090 --> 00:06:30,980
So again select one of these properties here and just search for text size attributes text size.

96
00:06:30,990 --> 00:06:33,540
So now we can see this text size attribute here.

97
00:06:33,540 --> 00:06:37,300
Just click on it and let's increase it to 18 s.p.

98
00:06:37,620 --> 00:06:40,400
Or I can actually change it to 24 s.p.

99
00:06:40,440 --> 00:06:47,390
So remember the s.p is actually used for giving for the size of our text inside our text.

100
00:06:47,490 --> 00:06:50,630
So always use espie for their font size.

101
00:06:50,640 --> 00:06:52,270
This is very important.

102
00:06:52,510 --> 00:06:57,720
And now I can actually also make this text view the text actually bold.

103
00:06:57,860 --> 00:06:58,340
OK.

104
00:06:58,350 --> 00:07:02,040
So just click on this text style so you can see that we have normal.

105
00:07:02,070 --> 00:07:02,740
It Halik.

106
00:07:02,750 --> 00:07:05,580
Now select this board right.

107
00:07:05,650 --> 00:07:09,730
I can actually check our unchecked is not normal a checkbox.

108
00:07:09,760 --> 00:07:12,970
And just check this board here so you can see this value here.

109
00:07:13,090 --> 00:07:14,570
Right.

110
00:07:14,850 --> 00:07:20,140
Now I can run our application and let's see what happens just at the top just click on this run button

111
00:07:20,170 --> 00:07:23,950
or display button and select one of these devices.

112
00:07:24,100 --> 00:07:26,320
And I just click on OK here.

113
00:07:26,410 --> 00:07:27,810
So let's wait.

114
00:07:27,910 --> 00:07:31,700
And by the way if you want to increase the font size of your Java code.

115
00:07:32,020 --> 00:07:34,920
So as you can see our application is not allowed to run.

116
00:07:34,960 --> 00:07:35,790
Why.

117
00:07:35,800 --> 00:07:41,840
Because in the activity under mentalism and if you remember we actually deleted this Flaten action button

118
00:07:41,910 --> 00:07:45,370
in and inside the main activity that Jobab filed class.

119
00:07:45,370 --> 00:07:48,010
So let's actually double click on this in activity of a fight.

120
00:07:48,010 --> 00:07:52,530
So if you can't find this tab here you just need to insert this view here and say this.

121
00:07:52,540 --> 00:07:59,110
Andrew to you here on the left hand side you just opened a folder and then opened this package was just

122
00:07:59,120 --> 00:08:02,770
sitting on this little triangle and that double clicked my inactivity fight.

123
00:08:02,800 --> 00:08:03,420
OK.

124
00:08:03,730 --> 00:08:08,080
And here in order to make this a job of course here a little bit wider Let's double click on this main

125
00:08:08,080 --> 00:08:09,250
activity that of a fight.

126
00:08:09,370 --> 00:08:10,610
So it is now wider.

127
00:08:10,840 --> 00:08:15,880
And as you can see if you have this piece of code here that is related to the floating action button

128
00:08:16,300 --> 00:08:18,580
we don't have to fill that in action button now.

129
00:08:18,700 --> 00:08:21,070
So this piece of code here is actually too redundant.

130
00:08:21,220 --> 00:08:24,240
And this piece of what is the cause of the error.

131
00:08:24,310 --> 00:08:26,880
This piece of code does not allow our application to run.

132
00:08:26,950 --> 00:08:30,350
So let's selected here inside this uncreate method.

133
00:08:30,450 --> 00:08:35,500
I just want to select this piece of code here that is actually related to the floating action button

134
00:08:35,830 --> 00:08:36,910
and deleted.

135
00:08:37,300 --> 00:08:38,080
Right.

136
00:08:38,140 --> 00:08:41,260
So make sure that you actually do not to delete the closing curly braces.

137
00:08:41,260 --> 00:08:42,980
This creates Meffert here.

138
00:08:43,420 --> 00:08:45,710
So now the error is solved.

139
00:08:45,760 --> 00:08:47,580
Let's run an application again.

140
00:08:48,040 --> 00:08:54,330
Let me show you the emulator let me increase the width and height of this emulator so that you can see

141
00:08:54,420 --> 00:08:55,080
better.

142
00:08:56,920 --> 00:08:58,150
So now let's wait.

143
00:08:58,150 --> 00:09:04,180
And by the way if you want to actually increase the size of your Java code here you just need to click

144
00:09:04,180 --> 00:09:06,760
on at the top just click an android studio.

145
00:09:06,790 --> 00:09:11,390
So if you are using a Windows machine you just need to click fight.

146
00:09:11,770 --> 00:09:13,410
And then click on settings.

147
00:09:13,600 --> 00:09:18,530
So if you are using a Mac just click on Android sudi at the top and then click on preferences.

148
00:09:18,790 --> 00:09:25,540
So now here opened the editor here by just clicking on this little triangle and then open our colors

149
00:09:25,570 --> 00:09:28,280
and fonts and then click on font.

150
00:09:28,630 --> 00:09:34,750
So here in order to actually increase the font size of our job codes we need to create a new scheme.

151
00:09:34,780 --> 00:09:37,670
So here you just need to click on Save As.

152
00:09:38,050 --> 00:09:40,840
And then you just need to give a unique name to your skin.

153
00:09:40,840 --> 00:09:49,570
For example my unique scheme right and then click on OK.

154
00:09:49,730 --> 00:09:55,560
So we actually created a new scheme and now I can increase the font size of my job of course.

155
00:09:55,580 --> 00:09:57,880
So currently it is now 22 right.

156
00:09:57,890 --> 00:10:01,940
I can easily see two for example 50 and then I can click on OK.

157
00:10:02,390 --> 00:10:08,930
So as you can see the full size of my Dovercourt now increased or you can actually change the theme

158
00:10:09,170 --> 00:10:10,250
of your Would you.

159
00:10:10,250 --> 00:10:14,390
So in order to do that you just need to click on at the top just click on Android studio preferences

160
00:10:15,350 --> 00:10:22,580
and an open editor and in the inside it has this critical general here and you can see that we have

161
00:10:22,580 --> 00:10:24,100
this appearance.

162
00:10:24,110 --> 00:10:24,530
OK.

163
00:10:24,650 --> 00:10:28,190
You can actually change these properties here.

164
00:10:28,280 --> 00:10:32,290
But let's actually click on these colors and fonts and click on general here.

165
00:10:32,300 --> 00:10:34,420
Instead these colors and fonts.

166
00:10:34,640 --> 00:10:41,720
And now I can actually change the theme of my application so I have default.

167
00:10:41,750 --> 00:10:45,470
So these are the things that I actually created in the past.

168
00:10:45,560 --> 00:10:48,890
I have to actually copy and all these other stuff.

169
00:10:48,920 --> 00:10:50,370
This is my new scheme.

170
00:10:50,420 --> 00:10:51,330
My unique scheme.

171
00:10:51,350 --> 00:10:56,860
So you can see that the font size increased both or you can actually make it bold as you can see here.

172
00:10:56,930 --> 00:11:02,870
You can make them Halik or bold so you can actually change this back and ankle.

173
00:11:02,870 --> 00:11:04,900
So for example if I select this you can see this.

174
00:11:04,910 --> 00:11:06,610
It says back in the late.

175
00:11:06,890 --> 00:11:13,730
And we can see the splash color if I click on it I can change the background color of my code.

176
00:11:13,730 --> 00:11:19,490
So for example I can select this right here at the bottom and I can actually change it to blue if I

177
00:11:19,490 --> 00:11:24,560
could kind of choose I can click on OK here at the bottom as you can see the background color here is

178
00:11:24,560 --> 00:11:25,530
now blue.

179
00:11:25,910 --> 00:11:28,440
If you want to change them I just need to again.

180
00:11:28,510 --> 00:11:31,770
I just need to go to preferences again and lose your preferences.

181
00:11:31,880 --> 00:11:37,000
And again if you are using a Windows machine you just need to click on file settings so preferences

182
00:11:37,400 --> 00:11:44,220
and again are just to go inside the editor colors and fonts and in general and here are for the packet.

183
00:11:44,270 --> 00:11:47,970
I can actually change the background color to for example green.

184
00:11:48,260 --> 00:11:51,150
If I click and choose Now the background color is green.

185
00:11:51,440 --> 00:11:55,300
So let's actually make it little black.

186
00:11:55,640 --> 00:12:02,910
So let's actually take his handler and then just drag it here at the bottom so that the back and color

187
00:12:02,910 --> 00:12:05,090
is going to be black and then click can choose.

188
00:12:05,100 --> 00:12:11,230
So now the background color is black and now or let's actually click on this once again.

189
00:12:11,250 --> 00:12:14,950
Let me actually decrease the font suit so that it is actually training free.

190
00:12:15,330 --> 00:12:16,350
Let's click on OK.

191
00:12:16,470 --> 00:12:20,330
So now we can see that the background color is black.

192
00:12:20,790 --> 00:12:25,610
And you can see that the font size of my double quotes is actually 23.

193
00:12:25,650 --> 00:12:27,300
I can actually change the text.

194
00:12:27,300 --> 00:12:32,290
So let's actually click on these preferences here and then go to font.

195
00:12:32,400 --> 00:12:36,080
And now I can click on this general so you can see this for Grant.

196
00:12:36,120 --> 00:12:36,750
Right.

197
00:12:36,810 --> 00:12:42,000
So I can't change this for foreground color through for example red literally can choose.

198
00:12:42,000 --> 00:12:42,840
And let's see what happens.

199
00:12:42,840 --> 00:12:46,640
You can see that the color of this text is now actually red.

200
00:12:46,680 --> 00:12:53,760
If I click on OK you can see now these colors here this red color for specific features.

201
00:12:53,760 --> 00:12:58,980
So let's actually go back to and look at the top and then click on preferences again.

202
00:12:59,610 --> 00:13:03,820
And let's actually change this color to for example to blue.

203
00:13:04,410 --> 00:13:07,400
And then click on Tues and then OK.

204
00:13:07,470 --> 00:13:09,330
So you can see now it is blue.

205
00:13:09,330 --> 00:13:13,240
Let's go to Andrew in studio again preferences.

206
00:13:13,320 --> 00:13:15,450
Let's change the color to white.

207
00:13:15,540 --> 00:13:20,810
So here at the bottom I can actually siliceous handle it and drag it to the top.

208
00:13:20,920 --> 00:13:26,280
And now I can just put this here this pointer at the center.

209
00:13:26,400 --> 00:13:28,310
And then you can just click and choose.

210
00:13:28,320 --> 00:13:31,450
So now the color is white right.

211
00:13:31,560 --> 00:13:34,110
So you can see this white color here.

212
00:13:34,110 --> 00:13:35,750
So hopefully that makes sense.

213
00:13:35,760 --> 00:13:40,680
And you can actually customize the font color the background color the foreground colors you can do

214
00:13:40,770 --> 00:13:42,980
anything with your Android studio.

215
00:13:43,320 --> 00:13:46,410
So let's let's actually let me show you the average video here.

216
00:13:46,460 --> 00:13:51,390
Now you can see that our application is running on the simulator and you can see this takes here at

217
00:13:51,390 --> 00:13:52,150
the center.

218
00:13:52,290 --> 00:13:53,880
Right.

219
00:13:53,910 --> 00:13:59,280
So I think that's enough for the whole deal in the next it's really going to continue building this

220
00:13:59,280 --> 00:14:00,320
application.

221
00:14:00,720 --> 00:14:06,750
And by the way I actually created this tutorial in order to update the original part 1 app.

222
00:14:06,780 --> 00:14:10,770
Number two section of the course of the Antrix studio of course.

223
00:14:10,770 --> 00:14:18,000
I am actually updating decors So please if you have any problems if you actually encounter any problems

224
00:14:18,240 --> 00:14:24,210
regarding Android studio and specifically its newest features please post the discussion in the course

225
00:14:24,660 --> 00:14:27,510
and then I do my best to answer all of your questions.

226
00:14:27,780 --> 00:14:28,850
Thank you very much for watching.

227
00:14:28,860 --> 00:14:30,390
And I see you next year Tauriel.

