1
00:00:00,290 --> 00:00:06,490
Hire everyone in this theater are really really going to go ahead and create AR15 Android application.

2
00:00:06,600 --> 00:00:12,090
So just click on this art start a new Android studio project and then for the name of our application

3
00:00:12,090 --> 00:00:19,170
name just type in here app 15 and you can actually specify the company domain package name and project

4
00:00:19,170 --> 00:00:26,300
location and then click on next and then choose if you are 16 Android 4.1 Jelly Bean for your minimums.

5
00:00:26,340 --> 00:00:26,800
OK.

6
00:00:26,910 --> 00:00:30,640
And then click on next Blache activity next.

7
00:00:30,990 --> 00:00:35,100
And then here you can actually specify a name for your activity name.

8
00:00:35,100 --> 00:00:42,210
Lay out the name and the title main activity and for the minute your resource name don't change any

9
00:00:42,210 --> 00:00:45,020
of these values and then click on finish.

10
00:00:45,170 --> 00:00:45,730
OK.

11
00:00:45,780 --> 00:00:51,420
Now let's actually delete this hello world text view and then double click on the rest folder.

12
00:00:51,420 --> 00:00:57,150
Lay out activity main and here select this floating action button and then press and delete key on your

13
00:00:57,150 --> 00:00:57,520
keyboard.

14
00:00:57,540 --> 00:00:58,330
OK.

15
00:00:58,350 --> 00:01:03,390
So let's actually go back and say this content underlined minute example and then now we want to actually

16
00:01:03,390 --> 00:01:05,650
design our user interface here.

17
00:01:05,970 --> 00:01:06,930
OK everyone.

18
00:01:06,930 --> 00:01:12,080
Now let's actually drag a linearly out vertical into this linearly out horizontal.

19
00:01:12,180 --> 00:01:18,410
So just put this linearly outward to ticket at the center of this relatively out of as you can see here.

20
00:01:18,540 --> 00:01:24,600
Now are linearly alphabetical is actually here at the center of this relatively out and the then is

21
00:01:24,600 --> 00:01:30,360
actually right or linearly and horizontal into these linear left vertical OK.

22
00:01:30,390 --> 00:01:35,300
And first of all it's actually a drag or takes you into this linearly or horizontal.

23
00:01:35,490 --> 00:01:42,710
So just select this large text view and then put it inside of these linearly and horizontal double click

24
00:01:42,710 --> 00:01:43,970
on this low stakes view.

25
00:01:44,180 --> 00:01:45,900
Is the text of this text view.

26
00:01:46,170 --> 00:01:50,400
And for the ID just type in here takes the five stars.

27
00:01:50,400 --> 00:01:51,580
Student Okay.

28
00:01:52,360 --> 00:01:54,990
And then a person and the key on your keyboard.

29
00:01:55,630 --> 00:02:00,600
And it's actually the right rating board into these linearly or horizontal.

30
00:02:00,750 --> 00:02:05,660
OK so just put it here and then double click on this rating bar here.

31
00:02:05,780 --> 00:02:11,850
And for the ID just type in here are Tibe five stars.

32
00:02:11,860 --> 00:02:13,720
Student Okay.

33
00:02:13,960 --> 00:02:18,670
And then it's actually a select these linearly or horizontal.

34
00:02:18,790 --> 00:02:25,390
And now let's actually select select this linearly horizontal and then actually find the lay of gravity

35
00:02:25,390 --> 00:02:30,760
as you can see if we have an area of gravity here and we have a gravity attribute here.

36
00:02:30,760 --> 00:02:31,150
OK.

37
00:02:31,300 --> 00:02:33,780
So let's actually find the gravity attribute.

38
00:02:33,880 --> 00:02:39,610
As you can see here and for the center horizontal that's actually select this tick box here that says

39
00:02:39,850 --> 00:02:41,470
Center horizontal OK.

40
00:02:41,710 --> 00:02:47,740
And then architecturally select these are large takes you here and essentially find the layout Margene

41
00:02:47,800 --> 00:02:52,030
as you can see this is the layout Margene that is actually related to this fixed view.

42
00:02:52,070 --> 00:02:56,170
So it opened on margin by clicking on this little triangle here.

43
00:02:56,350 --> 00:03:03,790
And for the right Margene a sign of value for example Number 10 for example Number 10 or number 20.

44
00:03:04,230 --> 00:03:05,070
OK.

45
00:03:05,560 --> 00:03:12,900
So again it's actually drag a linearly out horizontal into this linearly alphabetical and actually drag

46
00:03:12,960 --> 00:03:15,890
a rating board into this linearly and horizontal.

47
00:03:15,970 --> 00:03:20,330
Let's actually drag and other large takes you into this linearly out horizontal.

48
00:03:20,590 --> 00:03:26,390
So just select this large text and then put it inside this linearly and horizontal here.

49
00:03:26,530 --> 00:03:30,990
And as you can see here are this large takes you position on the right hand side of this.

50
00:03:31,240 --> 00:03:31,930
Right.

51
00:03:32,140 --> 00:03:39,660
But once this takes you to be at the at the left hand side of this rating but so just drag this takes

52
00:03:39,660 --> 00:03:43,390
you and put it in before this rating bar here.

53
00:03:43,750 --> 00:03:44,160
OK.

54
00:03:44,290 --> 00:03:49,140
So now as you can see this text is actually at the left hand side of this writing bar.

55
00:03:49,480 --> 00:03:53,950
So just double click on this large text view for the text just delete the text.

56
00:03:53,950 --> 00:03:54,770
This takes you.

57
00:03:54,970 --> 00:03:56,610
And the idea just typing here.

58
00:03:56,610 --> 00:03:59,350
T XTi for starters

59
00:04:01,960 --> 00:04:10,630
student OK and then person Enter key on your keyboard and let's actually select this linearly and horizontal

60
00:04:10,990 --> 00:04:18,370
and for the gravity as you can see here let's actually find the gravity attributes and selects this

61
00:04:18,490 --> 00:04:21,540
checkbox here that says Center underline horizontal OK.

62
00:04:21,640 --> 00:04:27,340
And then secondly to select this text view and find the left margin as you can see this is the left

63
00:04:27,340 --> 00:04:29,790
margin and the margin right.

64
00:04:29,830 --> 00:04:31,280
Enter the rad U-20.

65
00:04:31,300 --> 00:04:32,060
OK.

66
00:04:32,080 --> 00:04:38,560
So as you can see here we didn't assign an ID to this rating but so double click on this rating.

67
00:04:38,800 --> 00:04:42,670
And for the ID just type in here r t be four stars.

68
00:04:42,670 --> 00:04:46,010
STUDENT 4 stars.

69
00:04:46,120 --> 00:04:49,300
Student and then press Enter key on your keyboard.

70
00:04:49,410 --> 00:04:50,010
OK.

71
00:04:50,080 --> 00:04:54,570
Now let's actually drag a linearly add horizontal into this linearly I-30 call.

72
00:04:54,640 --> 00:05:00,010
And then let's actually write a large takes you into these linear left horizontal and double click on

73
00:05:00,010 --> 00:05:01,470
dislodge this view.

74
00:05:02,320 --> 00:05:04,940
And for the text just delete the text of the stakes.

75
00:05:04,990 --> 00:05:09,980
And for the idea to step in here it's the freestylers student.

76
00:05:10,160 --> 00:05:10,710
OK.

77
00:05:10,810 --> 00:05:16,630
And then let's actually drag our 18 bar into this linearly and horizontal so just select this raking

78
00:05:16,630 --> 00:05:21,110
bar here and then put it inside this linearly out horizontal OK.

79
00:05:21,130 --> 00:05:27,980
Double click on this rating bar here and are for the idea just type in here are be Freestar student.

80
00:05:28,180 --> 00:05:28,710
OK.

81
00:05:28,870 --> 00:05:34,800
And then as you can see here are let's actually select this linearly horizontal and here.

82
00:05:34,870 --> 00:05:38,770
Let's actually find the gravity attribute as it can see this is the gravity attribute.

83
00:05:38,770 --> 00:05:44,580
And here it is take place here that says Center underline horizontal and select the text view.

84
00:05:44,680 --> 00:05:49,920
And let's actually find the layout Margene and for and for the right margin just assigned the value

85
00:05:49,940 --> 00:05:50,420
20.

86
00:05:50,440 --> 00:05:52,540
So now our listeners try to select this.

87
00:05:52,540 --> 00:06:00,430
Our first rating we're here as you can see double click on it and for the rating just assigned a value

88
00:06:00,460 --> 00:06:07,120
5 select this second rating bar here for the state for the rating just assigned a value for this a fair

89
00:06:07,180 --> 00:06:11,670
rating bar here for the rating assigned to value free.

90
00:06:12,310 --> 00:06:13,230
OK.

91
00:06:13,720 --> 00:06:18,460
And this actually drag and other linearly or horizontal into this linearly Outhwaite cycle.

92
00:06:18,880 --> 00:06:25,660
And this actually select this large takes view and put it inside this linearly horizontal double click

93
00:06:25,660 --> 00:06:30,730
and this large stacks view and I deleted the text of this text you and for the ID just type in here

94
00:06:30,750 --> 00:06:33,040
takes the two stars.

95
00:06:33,040 --> 00:06:34,270
Student Okay.

96
00:06:34,450 --> 00:06:38,830
And let's actually like orating bought into this linearly or horizontally.

97
00:06:38,860 --> 00:06:46,180
So just select this right in bar here and then put it inside this linearly out horizontal OK.

98
00:06:46,240 --> 00:06:48,550
And that will Heliconius aren't rating.

99
00:06:48,940 --> 00:06:51,400
And for the top ratings just type in here too.

100
00:06:51,580 --> 00:06:55,390
And for the ID just assign r t b to stars.

101
00:06:55,390 --> 00:06:56,870
Student Okay okay.

102
00:06:57,040 --> 00:06:58,970
And then press on until key on your keyboard.

103
00:06:59,110 --> 00:07:04,360
So just let's actually select this linearly of horizontal and for the gravity.

104
00:07:04,360 --> 00:07:09,420
Check this checkbox here that says Center underline horizontal and selected this takes view.

105
00:07:09,580 --> 00:07:16,300
And for the layout Margene and here as you can see the left margin attributes assigned a value 20 for

106
00:07:16,300 --> 00:07:22,540
the right margin OK let's actually try another linearly out horizontal into this linear left vertical

107
00:07:23,470 --> 00:07:31,480
and right or large takes you into this linearly and horizontal double click on it delete the text then

108
00:07:31,550 --> 00:07:33,160
delete the text of this text view.

109
00:07:33,400 --> 00:07:40,590
And for the idea just typing here takes the one thought student okay and present it on your keyboard.

110
00:07:40,810 --> 00:07:47,930
And let's actually write R-rating but into this linearly horizontal double click on it for the regime.

111
00:07:47,950 --> 00:07:54,310
Just assign the value 1 and for the ID just type in here Arti be one star student.

112
00:07:54,550 --> 00:07:55,080
OK.

113
00:07:55,240 --> 00:07:57,420
And then press enter on your keyboard.

114
00:07:57,460 --> 00:08:03,800
So just select this linear horizontal and then actually find the gravity attribute as you can see here.

115
00:08:03,850 --> 00:08:10,030
This is the gravity attribute and then check this check box here that says Center underlined horizontal

116
00:08:11,350 --> 00:08:15,430
and then select this 61 star student text view.

117
00:08:15,550 --> 00:08:20,090
And then for the layout Margene assigned the value 24 the right margin.

118
00:08:20,230 --> 00:08:20,740
Okay.

119
00:08:20,890 --> 00:08:24,730
And let's actually drag a bottom into this linearly or two articles.

120
00:08:24,880 --> 00:08:26,810
So as you can see here this is a pattern.

121
00:08:26,890 --> 00:08:33,030
So just put it put it here and double click on it and for the text just type in here show me the results.

122
00:08:33,190 --> 00:08:37,160
And for the ID just type in here between results.

123
00:08:37,480 --> 00:08:38,250
OK.

124
00:08:38,590 --> 00:08:43,710
And let's actually find out marching for this button for the margin top.

125
00:08:43,720 --> 00:08:45,440
Assign the value 20.

126
00:08:45,920 --> 00:08:48,200
OK so now as you can see here.

127
00:08:48,550 --> 00:08:54,670
We actually designed our user interface and now let's actually go back inside this mine activity double

128
00:08:54,670 --> 00:09:02,210
file here and delete these lines of code that are actually related to the Options menu and delete this

129
00:09:02,210 --> 00:09:04,610
block of code.

130
00:09:04,610 --> 00:09:07,040
And now we can actually start coding here.

131
00:09:07,070 --> 00:09:07,550
OK.

132
00:09:07,690 --> 00:09:08,200
OK.

133
00:09:08,240 --> 00:09:15,770
Now let's actually create some takes you objects to just type in here takes view sixty five stars.

134
00:09:15,770 --> 00:09:19,330
Student Okay.

135
00:09:20,000 --> 00:09:26,000
And then put an assignment operator here that's actually cast this object to a text view object find

136
00:09:26,240 --> 00:09:30,480
view by ID or that Id taught the five stars.

137
00:09:30,500 --> 00:09:31,990
Student Okay.

138
00:09:32,690 --> 00:09:37,670
And again the statement here takes you Felix the Forsters student

139
00:09:40,370 --> 00:09:46,620
OK and then put an assignment operator here that's actually a this object to a text view object find

140
00:09:46,670 --> 00:09:51,990
view by ID or that Id dot sixty four stars.

141
00:09:51,990 --> 00:09:53,750
Student Okay.

142
00:09:53,910 --> 00:10:00,030
Essentially create another text object takes the Freestar student OK.

143
00:10:00,150 --> 00:10:07,920
Test this object or text object find view ID or that ID that the Freestar.

144
00:10:07,950 --> 00:10:09,220
Student Okay.

145
00:10:09,720 --> 00:10:15,030
And by the way if you want to you can actually copy and paste these lines of code if you want to save

146
00:10:15,030 --> 00:10:15,600
time.

147
00:10:15,750 --> 00:10:22,070
But I prefer to actually write every line of code myself so that you can see what's going on here.

148
00:10:22,080 --> 00:10:22,530
OK.

