1
00:00:00,480 --> 00:00:06,620
So as you can see here now our application is actually running on this emulator and the value of this

2
00:00:06,630 --> 00:00:10,280
true and false valuable is actually false.

3
00:00:10,290 --> 00:00:12,340
So this checkbox is actually checked.

4
00:00:12,480 --> 00:00:13,040
OK.

5
00:00:13,230 --> 00:00:19,820
So as you can see here first of all we actually created a boolean variable called true and false and

6
00:00:19,860 --> 00:00:23,190
we find a boolean expression with this variable.

7
00:00:23,190 --> 00:00:24,690
True and false.

8
00:00:24,900 --> 00:00:28,960
So the result of this expression is going to be assigned to this valuable.

9
00:00:29,100 --> 00:00:35,990
So true and false actually results in a false value so that false value is going to be assigned to this

10
00:00:36,000 --> 00:00:36,730
variable.

11
00:00:36,900 --> 00:00:43,710
And here we are actually saying that if the value of this true and false bet is true then execute this

12
00:00:43,710 --> 00:00:44,730
line of code.

13
00:00:44,920 --> 00:00:50,170
And if the value of the is true and false variable is false.

14
00:00:50,400 --> 00:00:52,890
Ok then execute this line of code here.

15
00:00:52,890 --> 00:00:57,860
So as you can see here it is now actually executing this line of code here because the value of this

16
00:00:57,870 --> 00:01:00,240
true and false value is false.

17
00:01:00,240 --> 00:01:02,370
So this checkbox is actually checked.

18
00:01:02,370 --> 00:01:04,550
So hopefully that makes sense again.

19
00:01:04,560 --> 00:01:09,990
Let's actually comment out these lines of code here because I want to show you another way of actually

20
00:01:09,990 --> 00:01:16,150
writing these statements so I can just I can see X true and false.

21
00:01:16,290 --> 00:01:17,120
Yes.

22
00:01:17,280 --> 00:01:24,990
That said checked and then I can't just put in a pair of round brackets here in order to create a boolean

23
00:01:24,990 --> 00:01:25,780
expression.

24
00:01:25,780 --> 00:01:30,120
So true and false exclamation mark.

25
00:01:30,130 --> 00:01:32,450
True otherwise false.

26
00:01:32,550 --> 00:01:34,440
And these are boolean expression.

27
00:01:34,440 --> 00:01:40,530
This boolean expression means if the value of these true and false is true.

28
00:01:40,780 --> 00:01:46,780
OK if the value that is assigned to this are true and false value but is true then assigned a value

29
00:01:46,800 --> 00:01:50,090
true to dismiss it said checked that is related to this.

30
00:01:50,110 --> 00:01:51,980
C see X true and false.

31
00:01:51,990 --> 00:01:52,800
Yes.

32
00:01:52,830 --> 00:01:55,620
So as you can see here this is that R component.

33
00:01:55,740 --> 00:01:56,420
OK.

34
00:01:56,850 --> 00:02:05,190
And otherwise if the value of this true and false variable is actually false then assigned a value false

35
00:02:05,190 --> 00:02:08,700
to this set text Meffert that is actually related to this.

36
00:02:08,820 --> 00:02:10,940
To this C H x true and false.

37
00:02:11,130 --> 00:02:11,480
Yes.

38
00:02:11,490 --> 00:02:15,610
So as you can see here now this checkbox is checked off.

39
00:02:15,860 --> 00:02:16,510
OK.

40
00:02:16,530 --> 00:02:18,060
So hopefully that makes sense.

41
00:02:18,060 --> 00:02:24,150
So here let's actually type in again see X true and false.

42
00:02:24,150 --> 00:02:26,490
No Dot said checked.

43
00:02:26,610 --> 00:02:29,530
And then let's actually put in a pair of round brackets here.

44
00:02:29,700 --> 00:02:38,100
So I can just type in not true and false and this means this means that if the value of this true and

45
00:02:38,100 --> 00:02:44,650
false variable is false then assign the value true to this set check Smurfette.

46
00:02:44,700 --> 00:02:49,630
Otherwise assign the value false to this set checked method.

47
00:02:49,770 --> 00:02:54,160
So here as you can see first of all I put in an exclamation mark here.

48
00:02:54,170 --> 00:02:56,800
In order to negate that value.

49
00:02:56,820 --> 00:03:03,510
So if the value of this true and false variable is false then assign the value true to this to the said

50
00:03:03,510 --> 00:03:04,480
checked Meffert.

51
00:03:04,530 --> 00:03:09,040
There is actually related to this see X true and false no.

52
00:03:09,180 --> 00:03:15,320
As you can see here now it is actually assigning the value true to this checkbox as you can see otherwise

53
00:03:15,640 --> 00:03:22,500
assign the value false to this set checked Meffert that is related to this C is x true and false no

54
00:03:22,800 --> 00:03:23,570
object.

55
00:03:23,670 --> 00:03:27,840
OK so as you can see here now is actually a checkbox is actually checked.

56
00:03:27,840 --> 00:03:33,840
So that's why we actually see this checkbox is actually checked because the value of this true and false

57
00:03:33,840 --> 00:03:35,720
variable is actually false.

58
00:03:35,730 --> 00:03:37,900
This expression evaluates to false.

59
00:03:37,920 --> 00:03:41,690
Ok true and false evaluates to false.

60
00:03:41,790 --> 00:03:42,360
OK.

61
00:03:42,570 --> 00:03:44,210
So hopefully that makes sense.

62
00:03:44,250 --> 00:03:44,740
OK.

63
00:03:44,790 --> 00:03:46,470
So hopefully that makes sense.

64
00:03:46,680 --> 00:03:49,580
And let's actually go back inside our code here.

65
00:03:50,100 --> 00:03:56,190
And let's actually go inside this content underline minute example and let's actually try again a linearly

66
00:03:56,200 --> 00:03:57,190
out horizontal.

67
00:03:57,190 --> 00:04:04,490
Inside this actually is linearly out vertical and then dragging a large takes you inside.

68
00:04:04,480 --> 00:04:07,070
These are linearly out horizontal.

69
00:04:07,230 --> 00:04:10,870
OK just put it inside this linear lay out horizontal here.

70
00:04:10,950 --> 00:04:13,970
You can actually put it directly inside the screen.

71
00:04:13,980 --> 00:04:20,250
So if you just want to click on these are large stakes here you can just put it inside this linearly

72
00:04:20,280 --> 00:04:25,770
out here as you can see now the color of this linearly ultra horizontal is orange.

73
00:04:25,770 --> 00:04:28,820
So let's actually double click on this large takes you here.

74
00:04:29,220 --> 00:04:36,960
And for the text of this text you just type in here false and true.

75
00:04:37,500 --> 00:04:43,150
And as I said before we don't need to actually interact with this component from our Java code.

76
00:04:43,170 --> 00:04:46,740
So we don't need to actually assign an ID to this text view.

77
00:04:46,920 --> 00:04:52,170
And then it's actually putting a checkbox into this or linearly or horizontally.

78
00:04:52,230 --> 00:04:54,830
So as you can see here we've got this checkbox here.

79
00:04:54,990 --> 00:05:02,170
Just put it here and then double click on this checkbox and for the sixth just type in here yes.

80
00:05:02,560 --> 00:05:09,940
And for the ID just type in here see x false and true.

81
00:05:11,050 --> 00:05:12,390
Yes.

82
00:05:13,480 --> 00:05:20,650
And let's actually dragging another checkbox into this linearly or horizontal and double click on this

83
00:05:20,920 --> 00:05:22,870
checkbox here for the text.

84
00:05:22,870 --> 00:05:24,340
Just type in here no.

85
00:05:24,580 --> 00:05:31,410
And for the ID just type in C H x files and true.

86
00:05:32,620 --> 00:05:33,710
No.

87
00:05:34,440 --> 00:05:34,880
OK.

88
00:05:34,930 --> 00:05:36,640
OK so hopefully that makes sense.

89
00:05:36,640 --> 00:05:42,770
So let's actually click on this linearly or horizontal here and then let's actually click on this linearly

90
00:05:42,780 --> 00:05:44,350
and horizontal here.

91
00:05:44,350 --> 00:05:46,880
And let's actually find the gravity attributes.

92
00:05:47,200 --> 00:05:52,830
And let's actually check this check box here that says Center underline horizontal.

93
00:05:52,890 --> 00:05:53,440
OK.

94
00:05:53,470 --> 00:05:55,800
So it's going to actually center of this.

95
00:05:55,870 --> 00:06:02,560
These components that are inside this linearly are horizontal horizontally inside these linear left.

96
00:06:02,670 --> 00:06:03,270
OK.

97
00:06:03,460 --> 00:06:05,680
So hopefully that makes sense.

98
00:06:05,680 --> 00:06:10,780
And let's actually go back and say this main activity that you have a fight here and here I can actually

99
00:06:10,780 --> 00:06:15,180
create a comment Fulks aren't true.

100
00:06:15,190 --> 00:06:23,400
So let's actually create two checkbox objects so checkbox see X fonts aren't true.

101
00:06:24,100 --> 00:06:25,440
Yes.

102
00:06:25,610 --> 00:06:33,820
Assignment operator checkbox here as you can see I am actually casting this object into a checkbox object

103
00:06:33,820 --> 00:06:40,370
in order to let the compiler know that I am actually working with a checkbox object not a view object.

104
00:06:40,390 --> 00:06:50,470
OK so find view by id r that ID that C H x false and true.

105
00:06:50,830 --> 00:06:51,830
Yes.

106
00:06:52,350 --> 00:06:53,400
OK.

107
00:06:53,530 --> 00:07:01,200
Again I need to create another checkbox object C as X Files and true no.

108
00:07:01,210 --> 00:07:11,170
So here I need to cast this object to a checkbox object find view by id r that Id dot see x x false

109
00:07:11,950 --> 00:07:14,610
and true no.

110
00:07:15,130 --> 00:07:17,920
OK so hopefully that makes sense.

111
00:07:18,010 --> 00:07:21,470
And here let's actually interact with these objects.

112
00:07:21,670 --> 00:07:23,410
So let's actually create a comment here.

113
00:07:23,430 --> 00:07:25,530
Fonts aren't true.

114
00:07:25,660 --> 00:07:26,480
OK.

115
00:07:27,100 --> 00:07:34,480
And here let's actually create a boolean value by a boolean false and true.

116
00:07:35,170 --> 00:07:40,510
And then let's actually put in an assignment operator here and then actually putting a pair of round

117
00:07:40,570 --> 00:07:46,050
brackets here False and True.

118
00:07:46,280 --> 00:07:46,520
OK.

119
00:07:46,540 --> 00:07:52,870
As you can see I assigned this expression this boolean expression to this boolean valuable.

120
00:07:53,050 --> 00:07:55,010
So here I am actually saying that.

121
00:07:55,320 --> 00:08:01,270
So here as you can see if the value of this expression is true that true value is going to be assigned

122
00:08:01,540 --> 00:08:07,960
to this variable or if the value of this expression is false that false value is going to be assigned

123
00:08:07,960 --> 00:08:10,080
to this value but ok false and true.

124
00:08:10,090 --> 00:08:13,260
So here I can just create an if else statement here.

125
00:08:13,270 --> 00:08:18,260
So if the value of this false and true variable is true.

126
00:08:18,660 --> 00:08:27,310
OK as you can see here I am saying that if the value of these false and true variable is true then execute

127
00:08:27,370 --> 00:08:31,200
this line of cohered see X for us and true.

128
00:08:31,450 --> 00:08:34,420
Yes that said check it.

129
00:08:34,530 --> 00:08:35,050
True.

130
00:08:35,290 --> 00:08:35,670
OK.

131
00:08:35,670 --> 00:08:42,720
Otherwise else if the value of these funds and true variable is false.

132
00:08:42,760 --> 00:08:43,300
OK.

133
00:08:43,390 --> 00:08:48,680
So exclamation mark false and true.

134
00:08:49,360 --> 00:08:51,250
Then execute this line of code here.

135
00:08:51,250 --> 00:08:54,600
Inside the inside of this curly braces C S C H.

136
00:08:54,610 --> 00:08:56,020
X files.

137
00:08:56,330 --> 00:08:59,670
And to no that said check checked.

138
00:08:59,680 --> 00:09:00,650
True.

139
00:09:01,330 --> 00:09:02,030
OK.

140
00:09:02,080 --> 00:09:04,860
So let's actually run our project and see what happens.

141
00:09:04,960 --> 00:09:05,290
OK.

142
00:09:05,290 --> 00:09:10,270
As you can see now the value of this false and true variable is false.

143
00:09:10,270 --> 00:09:12,210
So this checkbox is actually checked.

144
00:09:12,280 --> 00:09:12,610
OK.

145
00:09:12,610 --> 00:09:13,080
No.

146
00:09:13,210 --> 00:09:19,670
So as you can see here the first level created a boolean variable here named false and true.

147
00:09:20,140 --> 00:09:22,970
And then we assign this expression to our variable.

148
00:09:22,970 --> 00:09:24,690
False and True.

149
00:09:24,760 --> 00:09:28,640
So the result of this expression is going to be assigned to this valuable.

150
00:09:28,810 --> 00:09:31,690
And here we actually created an if else statement.

151
00:09:31,750 --> 00:09:37,970
If the value of this false and true value is true then execute this line of code.

152
00:09:38,260 --> 00:09:43,550
And and else if the value of this false and true variable is not true.

153
00:09:43,630 --> 00:09:46,940
So it is false then execute this line of code here.

154
00:09:46,960 --> 00:09:49,910
So as you can see here the value of this variable is false.

155
00:09:50,020 --> 00:09:52,700
So it is actually executing this line of code here.

156
00:09:52,890 --> 00:09:53,380
OK.

