1
00:00:00,720 --> 00:00:09,370
And then double clicking on these takes you here and just typing here are false or true.

2
00:00:09,480 --> 00:00:10,330
OK.

3
00:00:10,890 --> 00:00:16,530
And then let's throw in a check box into this linearly out horizontal double click on it.

4
00:00:16,770 --> 00:00:18,170
Yes.

5
00:00:18,180 --> 00:00:24,780
And for the ID just type in here see x x false or true.

6
00:00:25,080 --> 00:00:25,610
Yes.

7
00:00:25,680 --> 00:00:31,500
And then dragon and others take checkbox into this linearly and horizontal double click on it for the

8
00:00:31,500 --> 00:00:33,090
text just typing no.

9
00:00:33,360 --> 00:00:38,620
And for the ID just type in C is x false or true.

10
00:00:39,090 --> 00:00:41,160
No OK.

11
00:00:41,180 --> 00:00:46,670
So as you can see here the idea of this checkbox is C.H. x false or true yes.

12
00:00:46,760 --> 00:00:50,830
And the idea of this checkbox is see it x false or true.

13
00:00:50,840 --> 00:00:51,240
No.

14
00:00:51,320 --> 00:00:52,480
OK.

15
00:00:52,490 --> 00:00:57,890
And then click on these linearly out here and then let's actually find the gravity attribute as you

16
00:00:57,890 --> 00:01:03,890
can see here and check the checkbox of the center underline horizontal here.

17
00:01:03,920 --> 00:01:04,870
OK.

18
00:01:05,210 --> 00:01:11,440
So as you can see here now these components are positioned at the center of this linearly and horizontally

19
00:01:11,440 --> 00:01:12,360
OK.

20
00:01:12,440 --> 00:01:15,730
So now let's actually go back inside this main activity that gello fight here.

21
00:01:15,740 --> 00:01:23,060
Let's actually scroll to the top of the screen and here it's actually create a comment false.

22
00:01:24,760 --> 00:01:26,140
All true.

23
00:01:26,380 --> 00:01:27,010
OK.

24
00:01:27,340 --> 00:01:41,190
So just create a checkbox object C is x false or true yes assignment operator checkbox as you can see

25
00:01:41,190 --> 00:01:52,330
I am casting this object to a checkbox object find view by ID are thought id that C is x false or true.

26
00:01:52,800 --> 00:02:01,630
Yes that's actually again create another checkbox object here see x false or true.

27
00:02:02,010 --> 00:02:04,540
No assignment operator.

28
00:02:04,740 --> 00:02:12,780
Now let's actually cast this object to a checkbox object find view of why ID are that Id dot C is x

29
00:02:12,780 --> 00:02:15,850
false or true.

30
00:02:15,850 --> 00:02:16,980
No here.

31
00:02:17,380 --> 00:02:19,310
OK so now let's actually.

32
00:02:19,380 --> 00:02:22,480
OK so now let's actually scroll down the screen here.

33
00:02:22,830 --> 00:02:29,490
And let's here actually create a comment false or true.

34
00:02:29,910 --> 00:02:38,600
And let's actually create a boolean variable boolean and the name of our value above is false or true.

35
00:02:38,700 --> 00:02:40,260
Assignment operator.

36
00:02:40,470 --> 00:02:43,470
Now this actually creates a boolean expression.

37
00:02:43,470 --> 00:02:44,370
False.

38
00:02:44,370 --> 00:02:46,130
All true.

39
00:02:46,490 --> 00:02:47,170
OK.

40
00:02:47,460 --> 00:02:50,920
And then I need to put in a semi-colon at the end of my statement.

41
00:02:51,030 --> 00:02:56,010
So as you can see here I created a boolean value table and I assigned this value to already.

42
00:02:56,020 --> 00:02:58,950
But OK this is a boolean expression.

43
00:02:59,190 --> 00:03:04,130
And here the result of this expression is going to be assigned to this variable.

44
00:03:04,340 --> 00:03:09,900
Ok the value of this expression is either true or false and that value is going to be assigned to this

45
00:03:09,900 --> 00:03:10,760
variable.

46
00:03:11,040 --> 00:03:13,720
So let's actually create an if statement here.

47
00:03:13,740 --> 00:03:22,560
If the value of the false or true variable is true then execute this line of code here inside of these

48
00:03:22,560 --> 00:03:25,720
curly braces C is x false.

49
00:03:25,810 --> 00:03:27,930
All true yes.

50
00:03:28,020 --> 00:03:29,760
That said check it.

51
00:03:29,920 --> 00:03:30,840
True.

52
00:03:31,380 --> 00:03:32,020
OK.

53
00:03:32,430 --> 00:03:38,580
Otherwise else if the value of this false or true variable is not true.

54
00:03:38,700 --> 00:03:46,930
So it is false then executes these lines of this line of code inside of this curly braces.

55
00:03:46,980 --> 00:03:51,250
So C is x false or true.

56
00:03:51,450 --> 00:03:55,420
No that's checked true.

57
00:03:56,160 --> 00:03:59,820
OK so now let's actually run our project and see what happens.

58
00:03:59,820 --> 00:04:00,110
OK.

59
00:04:00,120 --> 00:04:04,870
As you can see here our application is actually running on this emulator here.

60
00:04:04,950 --> 00:04:10,170
And as you can see the value of this false or true variable is actually true.

61
00:04:10,200 --> 00:04:13,850
So this yes checkbox here is actually checked on.

62
00:04:14,050 --> 00:04:14,780
OK.

63
00:04:15,000 --> 00:04:22,590
So here we specify that if the value of this false or true idea is true then execute this line of code

64
00:04:22,590 --> 00:04:29,670
here which is related to this object to this component and else if the value of the is false or true

65
00:04:29,670 --> 00:04:37,620
variable is false then execute this line of code here then that is actually related to this component

66
00:04:37,620 --> 00:04:38,370
here.

67
00:04:38,370 --> 00:04:42,940
So because this value is true the value of this false or true variable is true.

68
00:04:42,990 --> 00:04:47,480
So this checkbox is actually checked on yes checkbox.

69
00:04:47,490 --> 00:04:53,790
So let's actually comment out this if else statement here because I want to actually show you another

70
00:04:53,790 --> 00:04:58,910
way in order to write up these these statements.

71
00:04:58,920 --> 00:04:59,550
OK.

72
00:04:59,550 --> 00:05:02,500
C is x false or true.

73
00:05:02,820 --> 00:05:08,600
Yes that said check it and then let's put in a pair of round brackets.

74
00:05:08,640 --> 00:05:12,380
And then inside the practice's just type in here for us.

75
00:05:12,630 --> 00:05:13,850
All true.

76
00:05:14,370 --> 00:05:14,800
OK.

77
00:05:14,820 --> 00:05:15,770
Question mark.

78
00:05:15,770 --> 00:05:19,840
True otherwise false.

79
00:05:19,860 --> 00:05:26,990
Ok here I am saying that if the value of this false or true variable is true then assigned the value

80
00:05:27,010 --> 00:05:31,190
true to my to this said check the method that is related to this object.

81
00:05:31,200 --> 00:05:38,080
Ok to this object and otherwise see it x false or true.

82
00:05:38,280 --> 00:05:44,250
No that said checked and then is actually put in a pair of round brackets here.

83
00:05:44,490 --> 00:05:45,490
Exclamation mark.

84
00:05:45,510 --> 00:05:48,760
False or true.

85
00:05:48,870 --> 00:05:54,230
OK questionmark true colon false.

86
00:05:55,040 --> 00:06:02,720
Ok Here again I am saying that if the value of this are false or true valuable is false then assigned

87
00:06:02,720 --> 00:06:11,410
the value of true might see it x false or true no object otherwise assign the value false to this object.

88
00:06:11,430 --> 00:06:12,260
OK.

89
00:06:12,600 --> 00:06:15,120
So hopefully that makes sense.

90
00:06:15,270 --> 00:06:19,570
And let's actually run our project again in order to see the results again.

91
00:06:19,720 --> 00:06:20,130
OK.

92
00:06:20,130 --> 00:06:23,850
As you can see here again this value is actually true.

93
00:06:23,940 --> 00:06:26,050
OK this checkbox is checked on.

94
00:06:26,280 --> 00:06:29,580
And this means the value of this checkbox is true.

95
00:06:29,580 --> 00:06:32,990
So the value of this false or true variable is true.

96
00:06:33,180 --> 00:06:40,210
OK so now it is actually again go back inside this content underline main that example again.

97
00:06:40,340 --> 00:06:46,430
Let's try again another linearly with horizontal into this linearly out of vertical.

98
00:06:46,980 --> 00:06:50,020
OK let's actually close this linearly out here.

99
00:06:50,060 --> 00:06:55,080
Inside these are componentry by actually clicking on this little triangle here.

100
00:06:55,220 --> 00:06:59,690
And let's throw in a large takes you into this linearly out here.

101
00:06:59,720 --> 00:07:06,800
You can just put it here or you can just put it inside these component at three and then you can click

102
00:07:06,860 --> 00:07:09,210
on this linearly out horizontal.

103
00:07:09,740 --> 00:07:18,320
So let's actually double click on this text you hear for the text just typing false or false.

104
00:07:19,130 --> 00:07:23,210
And then it's actually dragging a checkbox into this.

105
00:07:23,310 --> 00:07:27,530
You lay out double click on the double click on it.

106
00:07:27,650 --> 00:07:30,070
And for the text just type in here yes.

107
00:07:30,200 --> 00:07:36,430
And for the ID just type in here see it x false or false.

108
00:07:36,740 --> 00:07:38,610
Yes.

109
00:07:38,780 --> 00:07:44,570
Again let's actually try again a checkbox this linearly or horizontal.

110
00:07:44,570 --> 00:07:48,260
Double click on it for the text just type in no.

111
00:07:48,560 --> 00:07:56,140
And for the ID just type in C H x false or false no.

112
00:07:56,680 --> 00:07:57,370
OK.

113
00:07:57,800 --> 00:08:01,660
So yes and no.

114
00:08:02,280 --> 00:08:03,040
OK.

115
00:08:03,560 --> 00:08:05,420
So hopefully that makes sense.

116
00:08:05,570 --> 00:08:13,250
And then click on this Ninio out horizontal and check this center underline how horizontal as you can

117
00:08:13,250 --> 00:08:19,790
see set center underline horizontal here that is related to the gravity attribute of this linearly out

118
00:08:19,850 --> 00:08:20,450
horizontal.

119
00:08:20,450 --> 00:08:21,270
OK.

120
00:08:21,950 --> 00:08:28,600
So it's going to actually position these components in the center of these linearly and horizontally

121
00:08:28,600 --> 00:08:29,510
OK.

122
00:08:29,510 --> 00:08:33,290
So now let's actually go back and say this main activity that job of here.

123
00:08:33,590 --> 00:08:44,470
And let's scroll to the top of the screen and here it is actually create a comment so false or false.

124
00:08:44,480 --> 00:08:45,690
OK.

125
00:08:46,670 --> 00:08:54,550
And then let's actually create a checkbox object see x false or false.

126
00:08:55,190 --> 00:08:56,660
Yes.

127
00:08:56,660 --> 00:08:58,140
Assignment operator.

128
00:08:58,220 --> 00:09:06,830
Now we need to actually cast this object into a checkbox object find view by Id or At that the dot.

129
00:09:06,980 --> 00:09:11,330
See it checks false or false.

130
00:09:11,610 --> 00:09:17,330
Yes semicolon at the end of or statement is necessary again.

131
00:09:17,420 --> 00:09:20,100
It's actually create a checkbox object text.

132
00:09:20,210 --> 00:09:23,500
False or false.

133
00:09:24,410 --> 00:09:26,930
No assignment operator.

134
00:09:27,110 --> 00:09:28,170
Let's actually put.

135
00:09:28,220 --> 00:09:33,250
I actually cast this object to a checkbox object find view.

136
00:09:33,320 --> 00:09:42,510
Art ID or that Id dot see it checks false or false no.

137
00:09:42,800 --> 00:09:47,840
And then this actually puts a semicolon at the end of our statement.

138
00:09:47,840 --> 00:09:52,680
So now let's actually scroll to get to the bottom of the screen.

139
00:09:52,700 --> 00:09:58,230
So now let's actually scroll to the bottom of this file here and now.

