1
00:00:00,200 --> 00:00:07,450
Hire everyone in this theater you are really going to go ahead and create our 17th Android application.

2
00:00:07,470 --> 00:00:13,670
So just click on this start in your Android studio project and here for the application name just type

3
00:00:13,670 --> 00:00:21,510
in here app 17 and you can you can actually specify the company domain package name and project location

4
00:00:21,510 --> 00:00:30,610
here and then click on next and here choose API 16 Android 4.1 Jelly Bean for minimum STK.

5
00:00:30,750 --> 00:00:34,750
Ok phone and tablet and then click on next.

6
00:00:35,280 --> 00:00:38,930
And then here choose Blanche activity next.

7
00:00:39,150 --> 00:00:39,750
OK.

8
00:00:39,990 --> 00:00:46,560
And here we can actually specify a name for the activity name lay out the name title and menu resource

9
00:00:46,560 --> 00:00:47,330
name OK.

10
00:00:47,670 --> 00:00:48,920
So click on.

11
00:00:48,930 --> 00:00:50,050
Finish.

12
00:00:50,700 --> 00:00:56,940
OK so now let's actually select this over text view here and then press on delete key on your keyboard

13
00:00:57,390 --> 00:01:02,640
and it lets you to go inside this race folder lay out an activity on the line.

14
00:01:02,650 --> 00:01:08,580
In that example and here choose these floating action button here and then press and delete key on your

15
00:01:08,580 --> 00:01:08,990
keyboard.

16
00:01:09,010 --> 00:01:13,930
OK so now let's actually go back and say this content underline man made that example.

17
00:01:14,190 --> 00:01:18,720
And here we can actually design our user interface for this application.

18
00:01:18,720 --> 00:01:19,520
OK.

19
00:01:19,650 --> 00:01:26,250
So first of all we need to actually write a linearly or 20 call into this relatively old Hiroki.

20
00:01:26,340 --> 00:01:31,510
So just put this linearly vertical at the center of this relatively out.

21
00:01:31,860 --> 00:01:32,360
OK.

22
00:01:32,490 --> 00:01:32,990
OK.

23
00:01:33,090 --> 00:01:39,100
So now let's actually track linearly out horizontally into these linearly or 20 call.

24
00:01:39,270 --> 00:01:39,980
OK.

25
00:01:40,470 --> 00:01:42,650
So now again right.

26
00:01:42,720 --> 00:01:47,770
And are there really any lay out horizontal into this linearly or horizontal here.

27
00:01:47,940 --> 00:01:48,910
OK.

28
00:01:49,100 --> 00:01:56,100
Again select this linearly horizontally here and put it inside these linearly horizontally here.

29
00:01:56,100 --> 00:01:57,000
OK.

30
00:01:57,630 --> 00:02:04,170
So as you can see here I actually made a mistake and I didn't actually put these are linearly or horizontal

31
00:02:04,190 --> 00:02:06,790
inside these linearly at horizontal here.

32
00:02:06,900 --> 00:02:13,900
And mistakenly I did put this a linear horizontal in so it is linearly earthwork the quality.

33
00:02:13,920 --> 00:02:20,800
So we just need to address this linearly horizontal and put it inside these linearly or horizontal here.

34
00:02:20,910 --> 00:02:21,600
OK.

35
00:02:22,020 --> 00:02:29,270
So as you can see here I have two linearly outs here as you can see inside these linearly or horizontal.

36
00:02:29,280 --> 00:02:29,870
OK.

37
00:02:30,240 --> 00:02:35,410
So let's actually select both of these linearly else here.

38
00:02:35,670 --> 00:02:45,360
And for the layout with assigned values 0 and for the lay out weight assign the values zero point five.

39
00:02:45,980 --> 00:02:46,510
OK.

40
00:02:46,800 --> 00:02:53,310
So here I am actually assuming that the weight of these are linearly held horizontal is for example

41
00:02:53,310 --> 00:02:54,300
number one.

42
00:02:54,570 --> 00:02:55,320
OK.

43
00:02:55,620 --> 00:03:03,530
And I am actually giving to each of these linearly else here the values zero point five for the lay

44
00:03:03,590 --> 00:03:04,250
rate.

45
00:03:04,260 --> 00:03:10,720
So each of these linearly out here are actually taking a half of the Veith of these linearly or horizontal

46
00:03:10,720 --> 00:03:11,600
loci.

47
00:03:11,640 --> 00:03:19,160
So I did actually assign the value 0 to lay out of each of these are linearly or else.

48
00:03:19,350 --> 00:03:26,640
And I actually assign the value 0.5 to the lay out rate of this linear linearly else so that these are

49
00:03:26,640 --> 00:03:27,360
linearly.

50
00:03:27,440 --> 00:03:32,680
And actually taking a half of the width of these linearly out horizontal.

51
00:03:32,700 --> 00:03:33,210
OK.

52
00:03:33,300 --> 00:03:35,340
So hopefully that makes sense.

53
00:03:35,730 --> 00:03:42,330
And now let's actually track a text view into this linearly or horizontally here.

54
00:03:42,540 --> 00:03:48,870
So just select these large takes you here and put it inside these linearly and horizontal here.

55
00:03:48,870 --> 00:03:49,740
OK.

56
00:03:50,250 --> 00:03:52,270
And double click on this text view.

57
00:03:52,290 --> 00:03:59,160
So for the text for the text just type in here rates and I don't want to give an I.D. to the States

58
00:03:59,180 --> 00:04:05,670
view because I don't want to actually interact with these component from my java code.

59
00:04:05,700 --> 00:04:06,360
OK.

60
00:04:06,630 --> 00:04:16,270
So I'll just leave the ID as default and let's actually drag and other takes you inside this search

61
00:04:16,280 --> 00:04:18,890
and linearly and hold onto it as you can see here.

62
00:04:19,080 --> 00:04:26,680
So just select these large takes here and then put it inside these linearly out horizontal here.

63
00:04:26,700 --> 00:04:27,340
OK.

64
00:04:27,630 --> 00:04:29,740
And double click on this text view.

65
00:04:30,240 --> 00:04:36,110
And for the text just typing here a number of stars.

66
00:04:36,830 --> 00:04:44,140
Ok so now let's actually do an ordinal linearly at horizontal into this linearly out vertical.

67
00:04:44,370 --> 00:04:45,110
OK.

68
00:04:45,120 --> 00:04:50,200
So as you can see here we have another linearly or horizontal inside linearly out.

69
00:04:50,310 --> 00:04:58,200
Well OK so now let's actually do a linearly or two vertical this time Enceladus this linearly of horizontal

70
00:04:59,180 --> 00:05:00,630
and again right.

71
00:05:00,640 --> 00:05:06,270
I know there are linearly out vertical in so it is linearly out horizontal OK.

72
00:05:06,360 --> 00:05:12,320
So as you can see here we have two linearly outs inside this linearly or horizontal.

73
00:05:12,390 --> 00:05:19,400
So analysis actually our select both of these are linearly outs here and for the lay out to feed the

74
00:05:19,410 --> 00:05:25,660
values 0 and for the lay out weight assigned values 0.5.

75
00:05:26,070 --> 00:05:31,260
Again I am actually assuming that the delta V of these are linearly horizontally.

76
00:05:31,260 --> 00:05:39,450
Here is actually one OK the value of the left which is linearly and horizontal is one and I am actually

77
00:05:39,620 --> 00:05:47,010
giving in and these two linearly held here are actually taking a half of the Veith of these linearly

78
00:05:47,010 --> 00:05:47,990
out horizontally.

79
00:05:48,210 --> 00:05:56,670
So I actually assign the value 0 to the outfit and I actually assigned the values 0.5 to delay of weight

80
00:05:56,730 --> 00:05:58,550
of these linearly else here.

81
00:05:58,620 --> 00:06:06,280
OK so now let's actually select a text view here large text view and put it inside these linearly or

82
00:06:06,300 --> 00:06:07,670
two vertical here.

83
00:06:07,880 --> 00:06:08,550
OK.

84
00:06:09,150 --> 00:06:12,850
So now double click on this takes you here for the text.

85
00:06:12,900 --> 00:06:19,880
Just delete the text of this text view and for the ID just type in here TXI the rates.

86
00:06:20,470 --> 00:06:21,500
OK.

87
00:06:22,140 --> 00:06:24,340
And again that's actually right.

88
00:06:24,380 --> 00:06:31,820
And other large takes you into this nearly 30 call and double click on the takes you.

89
00:06:32,430 --> 00:06:35,050
And here for the text again.

90
00:06:35,080 --> 00:06:45,330
Delete the text of this text view and for the OED just type in here Teague's the number of starts.

91
00:06:45,480 --> 00:06:46,680
OK.

92
00:06:47,250 --> 00:06:50,960
So now the design of our user interface is actually finished.

93
00:06:51,390 --> 00:06:56,620
And now we can actually go inside this main activity that you will find here and here.

94
00:06:56,790 --> 00:07:02,150
Delete these lines of code that are actually related to the options menu and here.

95
00:07:02,170 --> 00:07:06,200
Delete this block of code that is related to the floating action button.

96
00:07:06,230 --> 00:07:10,750
Ok so now we can actually put our own codes here.

97
00:07:10,800 --> 00:07:14,530
Now let's actually create two takes few objects.

98
00:07:14,550 --> 00:07:21,610
So here I just need to refer to the name of the text view class and the name of my object is DXi rates

99
00:07:22,450 --> 00:07:23,200
OK.

100
00:07:23,250 --> 00:07:29,250
Assignment operator and that I need to cast this object to a text view object find view by ID or that

101
00:07:29,280 --> 00:07:32,150
Id Dot T X the rates.

102
00:07:32,280 --> 00:07:44,160
OK semi-colon again takes you to the number of stars number of stars or the assignment operator.

103
00:07:44,250 --> 00:07:52,290
And then I need to adjust this object to take the view object find view ID on that ID Dot T x the number

104
00:07:52,290 --> 00:07:58,420
of stars OK let's actually declare two string objects.

105
00:07:58,490 --> 00:07:59,620
So strange.

106
00:07:59,960 --> 00:08:00,580
OK.

107
00:08:00,800 --> 00:08:14,340
And the name of our string object is all it takes the radius value a semicolon here I don't want to

108
00:08:14,340 --> 00:08:16,720
actually instantiate this object.

109
00:08:16,820 --> 00:08:19,770
I just declared this strange object here.

110
00:08:19,780 --> 00:08:20,590
OK.

111
00:08:21,060 --> 00:08:30,260
Again strange old tricks the number of stars.

112
00:08:31,080 --> 00:08:33,920
Well you OK.

113
00:08:34,490 --> 00:08:40,010
So now let's actually create an array of integer numbers.

114
00:08:40,040 --> 00:08:44,040
So here I want to actually create an alley of integer numbers.

115
00:08:44,090 --> 00:08:48,990
So first of all I need to specify the type of my array and.

116
00:08:49,250 --> 00:08:49,830
OK.

117
00:08:50,150 --> 00:08:53,800
And then I need to actually specify that I am going to create an array.

118
00:08:53,990 --> 00:08:58,150
So I just need to put in a pair of brackets after my type name.

119
00:08:58,250 --> 00:09:01,860
And then here I need to actually keep a name to my array.

120
00:09:01,970 --> 00:09:09,610
So the name of my AT EASE people creates OK assignments.

121
00:09:09,680 --> 00:09:17,450
Operator And then here I want to instantiate this a by giving us some values to this array.

122
00:09:17,640 --> 00:09:19,230
So here.

123
00:09:19,290 --> 00:09:23,560
So here I need to actually give a value between number 1 and the number of 5.

124
00:09:23,580 --> 00:09:24,080
OK.

125
00:09:24,360 --> 00:09:25,930
For example number one.

126
00:09:26,120 --> 00:09:26,620
OK.

127
00:09:26,700 --> 00:09:28,820
Number one for the index 0.

128
00:09:28,860 --> 00:09:35,230
Number four for the index one number free for the index to.

129
00:09:35,700 --> 00:09:51,370
And for example number five for the index free 2 5 1 3 4 5 2 4 5 8.

130
00:09:51,750 --> 00:09:55,080
And then I need to put in a semi-colon at the end of my statement.

