1
00:00:00,210 --> 00:00:06,840
So as you can see here I am saying that if the value of this false and true valuable is not true.

2
00:00:06,930 --> 00:00:08,010
So it is false.

3
00:00:08,040 --> 00:00:10,830
Ok then execute this line of quote here.

4
00:00:10,880 --> 00:00:14,490
See Ex-Files and to know that said checked.

5
00:00:14,490 --> 00:00:14,950
True.

6
00:00:15,000 --> 00:00:19,490
So as you can see here this object is actually related to this component here.

7
00:00:19,490 --> 00:00:20,640
This checkbox.

8
00:00:20,670 --> 00:00:23,700
So as you can see here this text box is actually on.

9
00:00:24,000 --> 00:00:27,000
So this line of code here is actually executed.

10
00:00:27,000 --> 00:00:31,500
So the value of this is false and true value label is actually false.

11
00:00:31,500 --> 00:00:36,460
The value of this expression is false false and true results in a false value.

12
00:00:36,480 --> 00:00:37,310
OK.

13
00:00:37,650 --> 00:00:41,980
So let's actually comment out of this if else statement here

14
00:00:45,900 --> 00:00:50,880
and then let's actually typing these statements in another way.

15
00:00:50,940 --> 00:00:54,550
So each c x false and true.

16
00:00:54,720 --> 00:01:03,660
Yes that said checked and then it's actually putting a paragraph brackets false and true questionmark

17
00:01:04,080 --> 00:01:06,980
true otherwise false.

18
00:01:07,670 --> 00:01:08,560
OK.

19
00:01:09,250 --> 00:01:13,260
See X false and true.

20
00:01:13,380 --> 00:01:18,210
No Dot said check it.

21
00:01:18,210 --> 00:01:25,680
Let's actually put in our program brackets here not false and true and this means if the value of this

22
00:01:25,790 --> 00:01:32,910
for false central value is false then assigned a value of true to this said check the method that is

23
00:01:32,910 --> 00:01:34,570
related to this object.

24
00:01:34,590 --> 00:01:37,000
See it's x false and true no.

25
00:01:37,170 --> 00:01:40,950
Otherwise assign the value false to this object.

26
00:01:40,950 --> 00:01:48,210
So as you can see here in the emulator the value of these false and true value is actually false.

27
00:01:48,210 --> 00:01:54,120
So as you can see we specify that if the value of this false central value but is false then assign

28
00:01:54,120 --> 00:01:55,890
the value true to this checkbox.

29
00:01:55,890 --> 00:01:58,420
So as you can see this tick box is actually on.

30
00:01:58,550 --> 00:02:02,280
So let's actually run our project again and see what happens.

31
00:02:02,280 --> 00:02:08,180
So as you can see here it's now showing the same results again the value of this false and true variable

32
00:02:08,250 --> 00:02:09,430
is actually false.

33
00:02:09,450 --> 00:02:11,510
So this checkbox is actually checked.

34
00:02:11,640 --> 00:02:12,440
OK.

35
00:02:12,510 --> 00:02:14,550
So hopefully that makes sense.

36
00:02:14,550 --> 00:02:20,580
So let let me explain again here we actually specify that if the value of this false and true value

37
00:02:20,600 --> 00:02:27,480
bet is true then assign the value true to this said Chicot method that is related to this see x false

38
00:02:27,510 --> 00:02:29,280
and true yes object.

39
00:02:29,280 --> 00:02:38,000
So this object is actually related to this component and otherwise if the value of this false central

40
00:02:38,000 --> 00:02:43,210
value but is actually false then assign the value false to this object.

41
00:02:43,250 --> 00:02:43,900
OK.

42
00:02:44,120 --> 00:02:47,580
So as you can see here this checkbox is actually is actually checked up.

43
00:02:47,890 --> 00:02:50,120
OK so this sequence is not on.

44
00:02:50,420 --> 00:02:56,630
And here we actually specify that if the value of this false and true value is actually false then assign

45
00:02:56,630 --> 00:02:58,460
the value true to this object.

46
00:02:58,520 --> 00:03:01,190
As you can see otherwise assign the value false.

47
00:03:01,310 --> 00:03:03,850
So this value is actually false.

48
00:03:03,890 --> 00:03:07,520
So it is actually assigning the value true to this check box here.

49
00:03:07,550 --> 00:03:09,750
As you can see the search box is actually on.

50
00:03:10,100 --> 00:03:11,840
So hopefully that makes sense.

51
00:03:11,870 --> 00:03:12,860
Ok everyone.

52
00:03:12,860 --> 00:03:18,950
Now let's actually go back inside this content underline that example and then let's actually put in

53
00:03:19,280 --> 00:03:26,470
a linear layout horizontal into these linearly Ellsworthy call and then let's actually put in a larger

54
00:03:26,480 --> 00:03:29,340
takes you into these linear layouts.

55
00:03:29,670 --> 00:03:30,010
OK.

56
00:03:30,020 --> 00:03:34,210
As you can see the color of this linearly out as you can see is orange.

57
00:03:34,220 --> 00:03:40,670
OK when I actually hover over these linearly out when I want to put this large takes you into These

58
00:03:40,940 --> 00:03:41,770
are linearly.

59
00:03:41,790 --> 00:03:42,460
OK.

60
00:03:42,860 --> 00:03:48,680
So as you can see now this text is actually inside these linear horizontal.

61
00:03:48,830 --> 00:03:51,960
So let's actually double click on this large takes.

62
00:03:52,520 --> 00:03:59,070
And then for the text just type in here false and false.

63
00:04:00,100 --> 00:04:00,640
OK.

64
00:04:00,680 --> 00:04:02,460
Press Enter key on your keyboard.

65
00:04:02,720 --> 00:04:10,370
So as you can see now our text view is ready and then actually try again on two checkboxes into this

66
00:04:10,370 --> 00:04:11,930
linear layout.

67
00:04:11,960 --> 00:04:14,230
So let's actually double click on this checkbox.

68
00:04:14,300 --> 00:04:15,930
So for the text or in here.

69
00:04:16,040 --> 00:04:16,700
Yes.

70
00:04:16,940 --> 00:04:23,740
And for the idea just type in here see x false and false.

71
00:04:24,230 --> 00:04:24,870
Yes.

72
00:04:26,590 --> 00:04:32,310
OK let's actually do like in another checkbox into this linearly out.

73
00:04:32,590 --> 00:04:40,090
So checkbox put it here beside this checkbox here and then double click on this checkbox.

74
00:04:40,270 --> 00:04:43,100
And for the text just type in here no.

75
00:04:43,210 --> 00:04:51,650
And for the ID just type in here see x false and fonts.

76
00:04:52,330 --> 00:04:53,350
No.

77
00:04:53,970 --> 00:04:54,780
OK.

78
00:04:55,240 --> 00:05:01,810
And then click on this linearly or horizontal and then as you can see actually find the gravity attributes

79
00:05:02,350 --> 00:05:06,410
and then check these our center underline horizontal checkbox here.

80
00:05:06,430 --> 00:05:07,020
OK.

81
00:05:07,030 --> 00:05:10,830
And let's actually go back and say this main activity the java file here.

82
00:05:11,050 --> 00:05:14,960
So now let's actually create a comment here.

83
00:05:15,310 --> 00:05:20,470
So false and false.

84
00:05:21,690 --> 00:05:28,840
Ok so here are the top of the screen as you can see when you are actually creating objects from those

85
00:05:29,100 --> 00:05:31,110
Blondie's checkbox classes here.

86
00:05:31,120 --> 00:05:36,970
I actually created a comment and now I want to actually create two other checkbox objects.

87
00:05:36,970 --> 00:05:42,430
So checkbox see X fonts and fonts.

88
00:05:42,940 --> 00:05:43,940
Yes.

89
00:05:44,710 --> 00:05:48,190
And then I actually put in an assignment operator here.

90
00:05:48,430 --> 00:06:00,280
So here I need to cast this object to a checkbox object find view by id r that Id dot c h x false and

91
00:06:00,760 --> 00:06:01,590
false.

92
00:06:01,870 --> 00:06:02,720
Yes.

93
00:06:03,190 --> 00:06:04,210
OK.

94
00:06:04,240 --> 00:06:15,140
Again let's actually create another checkbox see as X Files and follows no assignment operator here.

95
00:06:15,160 --> 00:06:26,850
I need to cast this object to a checkbox object find you by I-T or that Id dot C-h X Faunce and false.

96
00:06:26,980 --> 00:06:27,810
No.

97
00:06:28,310 --> 00:06:33,780
OK so now let's actually interact with these checkboxes here.

98
00:06:34,240 --> 00:06:36,460
So let's actually scroll down the screen here.

99
00:06:36,460 --> 00:06:40,370
Now let's actually create a comment OK.

100
00:06:40,420 --> 00:06:45,010
False and false.

101
00:06:45,040 --> 00:06:51,300
So let's actually create a boolean variable named false and false.

102
00:06:52,390 --> 00:06:57,930
And then I put an assignment operator here and then I want to actually assign a value to this variable

103
00:06:57,940 --> 00:07:02,190
fonts and fonts.

104
00:07:03,070 --> 00:07:03,300
OK.

105
00:07:03,310 --> 00:07:09,520
As you can see I created a boolean expression here and then I want to assign the result of this expression

106
00:07:09,520 --> 00:07:12,770
to this value a false and false.

107
00:07:12,790 --> 00:07:19,090
So if the result of this expression is actually true that true value is going to be assigned to this

108
00:07:19,210 --> 00:07:25,990
variable and if that is the result of this expression is actually false that font's value is going to

109
00:07:25,990 --> 00:07:28,260
be assigned to this variable OK.

110
00:07:28,660 --> 00:07:31,550
So let's actually create an if statement here.

111
00:07:31,660 --> 00:07:36,630
If false and false actually has the value.

112
00:07:36,630 --> 00:07:37,000
True.

113
00:07:37,070 --> 00:07:42,120
So now it can actually execute this line of code inside of these if statement.

114
00:07:42,130 --> 00:07:47,670
So C-h x files and files yes.

115
00:07:47,730 --> 00:07:50,170
That said check it.

116
00:07:50,320 --> 00:07:51,860
True.

117
00:07:52,500 --> 00:07:53,400
OK.

118
00:07:53,620 --> 00:07:58,740
Else if not false and false.

119
00:07:59,320 --> 00:08:04,320
And this means if the value of this false and false variable is not true.

120
00:08:04,420 --> 00:08:05,780
So it is false.

121
00:08:05,950 --> 00:08:09,530
Then execute this line of code inside of this curly braces.

122
00:08:09,570 --> 00:08:10,460
C x.

123
00:08:10,470 --> 00:08:13,790
False and false.

124
00:08:13,810 --> 00:08:17,350
No that said check it.

125
00:08:17,710 --> 00:08:19,820
True OK.

126
00:08:19,930 --> 00:08:22,670
So now let me explain again what's going on here.

127
00:08:23,050 --> 00:08:29,390
So first of all I actually created a boolean variable and then I assigned a value to this ability a

128
00:08:29,470 --> 00:08:30,690
false and false.

129
00:08:30,760 --> 00:08:34,080
The result of this expression is going to be assigned to this valuable.

130
00:08:34,270 --> 00:08:40,930
And then I actually create it and if else statement here first of all I specify that if false and false

131
00:08:40,930 --> 00:08:44,860
variable has the value of true then execute this line of code here.

132
00:08:44,920 --> 00:08:51,610
If the value of this false and false variable is true execute this line of code here and else.

133
00:08:51,700 --> 00:08:58,180
If the value of these are false and false value bet is false then execute this line of code here.

134
00:08:58,180 --> 00:08:58,970
OK.

135
00:08:59,200 --> 00:09:01,040
So hopefully that makes sense.

136
00:09:01,090 --> 00:09:03,960
And let's actually run our project and see what happens.

137
00:09:04,030 --> 00:09:04,520
OK.

138
00:09:04,600 --> 00:09:09,260
As you can see now our application is actually running on this emulator here.

139
00:09:09,430 --> 00:09:14,190
And as you can see the value of this false and false variable is actually false.

140
00:09:14,200 --> 00:09:14,720
OK.

141
00:09:14,790 --> 00:09:17,060
Because this checkbox is actually checked.

142
00:09:17,080 --> 00:09:23,830
So because this checkbox is actually checked then we can actually conclude that the value of these are

143
00:09:23,860 --> 00:09:26,640
false and false value but is actually false.

144
00:09:26,680 --> 00:09:29,940
So the value so the result of this expression is false.

145
00:09:29,970 --> 00:09:33,640
Ok false and false results in a false value.

146
00:09:33,640 --> 00:09:40,390
So let's actually comment out again these are this if else statement here because I want to show you

147
00:09:40,390 --> 00:09:45,940
another way in order to write this code so see x files and files.

148
00:09:45,940 --> 00:09:54,380
Yes that's checked and I put in a part of brackets here false and false.

149
00:09:54,520 --> 00:09:55,600
Question mark.

150
00:09:55,710 --> 00:10:00,010
True otherwise false.

151
00:10:00,040 --> 00:10:07,030
So here I am saying that if the value of this false and false value but is true then assign the value

152
00:10:07,030 --> 00:10:08,790
of this the value of truth to this.

153
00:10:08,830 --> 00:10:10,110
I said checked my faith.

154
00:10:10,210 --> 00:10:13,640
Otherwise assign the value false to the six that checked method.

155
00:10:13,670 --> 00:10:13,980
OK.

