And then double clicking on these takes you here and just typing here are false or true.
OK.
And then let's throw in a check box into this linearly out horizontal double click on it.
Yes.
And for the ID just type in here see x x false or true.
Yes.
And then dragon and others take checkbox into this linearly and horizontal double click on it for the
text just typing no.
And for the ID just type in C is x false or true.
No OK.
So as you can see here the idea of this checkbox is C.H. x false or true yes.
And the idea of this checkbox is see it x false or true.
No.
OK.
And then click on these linearly out here and then let's actually find the gravity attribute as you
can see here and check the checkbox of the center underline horizontal here.
OK.
So as you can see here now these components are positioned at the center of this linearly and horizontally
OK.
So now let's actually go back inside this main activity that gello fight here.
Let's actually scroll to the top of the screen and here it's actually create a comment false.
All true.
OK.
So just create a checkbox object C is x false or true yes assignment operator checkbox as you can see
I am casting this object to a checkbox object find view by ID are thought id that C is x false or true.
Yes that's actually again create another checkbox object here see x false or true.
No assignment operator.
Now let's actually cast this object to a checkbox object find view of why ID are that Id dot C is x
false or true.
No here.
OK so now let's actually.
OK so now let's actually scroll down the screen here.
And let's here actually create a comment false or true.
And let's actually create a boolean variable boolean and the name of our value above is false or true.
Assignment operator.
Now this actually creates a boolean expression.
False.
All true.
OK.
And then I need to put in a semi-colon at the end of my statement.
So as you can see here I created a boolean value table and I assigned this value to already.
But OK this is a boolean expression.
And here the result of this expression is going to be assigned to this variable.
Ok the value of this expression is either true or false and that value is going to be assigned to this
variable.
So let's actually create an if statement here.
If the value of the false or true variable is true then execute this line of code here inside of these
curly braces C is x false.
All true yes.
That said check it.
True.
OK.
Otherwise else if the value of this false or true variable is not true.
So it is false then executes these lines of this line of code inside of this curly braces.
So C is x false or true.
No that's checked true.
OK so now let's actually run our project and see what happens.
OK.
As you can see here our application is actually running on this emulator here.
And as you can see the value of this false or true variable is actually true.
So this yes checkbox here is actually checked on.
OK.
So here we specify that if the value of this false or true idea is true then execute this line of code
here which is related to this object to this component and else if the value of the is false or true
variable is false then execute this line of code here then that is actually related to this component
here.
So because this value is true the value of this false or true variable is true.
So this checkbox is actually checked on yes checkbox.
So let's actually comment out this if else statement here because I want to actually show you another
way in order to write up these these statements.
OK.
C is x false or true.
Yes that said check it and then let's put in a pair of round brackets.
And then inside the practice's just type in here for us.
All true.
OK.
Question mark.
True otherwise false.
Ok here I am saying that if the value of this false or true variable is true then assigned the value
true to my to this said check the method that is related to this object.
Ok to this object and otherwise see it x false or true.
No that said checked and then is actually put in a pair of round brackets here.
Exclamation mark.
False or true.
OK questionmark true colon false.
Ok Here again I am saying that if the value of this are false or true valuable is false then assigned
the value of true might see it x false or true no object otherwise assign the value false to this object.
OK.
So hopefully that makes sense.
And let's actually run our project again in order to see the results again.
OK.
As you can see here again this value is actually true.
OK this checkbox is checked on.
And this means the value of this checkbox is true.
So the value of this false or true variable is true.
OK so now it is actually again go back inside this content underline main that example again.
Let's try again another linearly with horizontal into this linearly out of vertical.
OK let's actually close this linearly out here.
Inside these are componentry by actually clicking on this little triangle here.
And let's throw in a large takes you into this linearly out here.
You can just put it here or you can just put it inside these component at three and then you can click
on this linearly out horizontal.
So let's actually double click on this text you hear for the text just typing false or false.
And then it's actually dragging a checkbox into this.
You lay out double click on the double click on it.
And for the text just type in here yes.
And for the ID just type in here see it x false or false.
Yes.
Again let's actually try again a checkbox this linearly or horizontal.
Double click on it for the text just type in no.
And for the ID just type in C H x false or false no.
OK.
So yes and no.
OK.
So hopefully that makes sense.
And then click on this Ninio out horizontal and check this center underline how horizontal as you can
see set center underline horizontal here that is related to the gravity attribute of this linearly out
horizontal.
OK.
So it's going to actually position these components in the center of these linearly and horizontally
OK.
So now let's actually go back and say this main activity that job of here.
And let's scroll to the top of the screen and here it is actually create a comment so false or false.
OK.
And then let's actually create a checkbox object see x false or false.
Yes.
Assignment operator.
Now we need to actually cast this object into a checkbox object find view by Id or At that the dot.
See it checks false or false.
Yes semicolon at the end of or statement is necessary again.
It's actually create a checkbox object text.
False or false.
No assignment operator.
Let's actually put.
I actually cast this object to a checkbox object find view.
Art ID or that Id dot see it checks false or false no.
And then this actually puts a semicolon at the end of our statement.
So now let's actually scroll to get to the bottom of the screen.
So now let's actually scroll to the bottom of this file here and now.