So as you can see here now our application is actually running on this emulator and the value of this
true and false valuable is actually false.
So this checkbox is actually checked.
OK.
So as you can see here first of all we actually created a boolean variable called true and false and
we find a boolean expression with this variable.
True and false.
So the result of this expression is going to be assigned to this valuable.
So true and false actually results in a false value so that false value is going to be assigned to this
variable.
And here we are actually saying that if the value of this true and false bet is true then execute this
line of code.
And if the value of the is true and false variable is false.
Ok then execute this line of code here.
So as you can see here it is now actually executing this line of code here because the value of this
true and false value is false.
So this checkbox is actually checked.
So hopefully that makes sense again.
Let's actually comment out these lines of code here because I want to show you another way of actually
writing these statements so I can just I can see X true and false.
Yes.
That said checked and then I can't just put in a pair of round brackets here in order to create a boolean
expression.
So true and false exclamation mark.
True otherwise false.
And these are boolean expression.
This boolean expression means if the value of these true and false is true.
OK if the value that is assigned to this are true and false value but is true then assigned a value
true to dismiss it said checked that is related to this.
C see X true and false.
Yes.
So as you can see here this is that R component.
OK.
And otherwise if the value of this true and false variable is actually false then assigned a value false
to this set text Meffert that is actually related to this.
To this C H x true and false.
Yes.
So as you can see here now this checkbox is checked off.
OK.
So hopefully that makes sense.
So here let's actually type in again see X true and false.
No Dot said checked.
And then let's actually put in a pair of round brackets here.
So I can just type in not true and false and this means this means that if the value of this true and
false variable is false then assign the value true to this set check Smurfette.
Otherwise assign the value false to this set checked method.
So here as you can see first of all I put in an exclamation mark here.
In order to negate that value.
So if the value of this true and false variable is false then assign the value true to this to the said
checked Meffert.
There is actually related to this see X true and false no.
As you can see here now it is actually assigning the value true to this checkbox as you can see otherwise
assign the value false to this set checked Meffert that is related to this C is x true and false no
object.
OK so as you can see here now is actually a checkbox is actually checked.
So that's why we actually see this checkbox is actually checked because the value of this true and false
variable is actually false.
This expression evaluates to false.
Ok true and false evaluates to false.
OK.
So hopefully that makes sense.
OK.
So hopefully that makes sense.
And let's actually go back inside our code here.
And let's actually go inside this content underline minute example and let's actually try again a linearly
out horizontal.
Inside this actually is linearly out vertical and then dragging a large takes you inside.
These are linearly out horizontal.
OK just put it inside this linear lay out horizontal here.
You can actually put it directly inside the screen.
So if you just want to click on these are large stakes here you can just put it inside this linearly
out here as you can see now the color of this linearly ultra horizontal is orange.
So let's actually double click on this large takes you here.
And for the text of this text you just type in here false and true.
And as I said before we don't need to actually interact with this component from our Java code.
So we don't need to actually assign an ID to this text view.
And then it's actually putting a checkbox into this or linearly or horizontally.
So as you can see here we've got this checkbox here.
Just put it here and then double click on this checkbox and for the sixth just type in here yes.
And for the ID just type in here see x false and true.
Yes.
And let's actually dragging another checkbox into this linearly or horizontal and double click on this
checkbox here for the text.
Just type in here no.
And for the ID just type in C H x files and true.
No.
OK.
OK so hopefully that makes sense.
So let's actually click on this linearly or horizontal here and then let's actually click on this linearly
and horizontal here.
And let's actually find the gravity attributes.
And let's actually check this check box here that says Center underline horizontal.
OK.
So it's going to actually center of this.
These components that are inside this linearly are horizontal horizontally inside these linear left.
OK.
So hopefully that makes sense.
And let's actually go back and say this main activity that you have a fight here and here I can actually
create a comment Fulks aren't true.
So let's actually create two checkbox objects so checkbox see X fonts aren't true.
Yes.
Assignment operator checkbox here as you can see I am actually casting this object into a checkbox object
in order to let the compiler know that I am actually working with a checkbox object not a view object.
OK so find view by id r that ID that C H x false and true.
Yes.
OK.
Again I need to create another checkbox object C as X Files and true no.
So here I need to cast this object to a checkbox object find view by id r that Id dot see x x false
and true no.
OK so hopefully that makes sense.
And here let's actually interact with these objects.
So let's actually create a comment here.
Fonts aren't true.
OK.
And here let's actually create a boolean value by a boolean false and true.
And then let's actually put in an assignment operator here and then actually putting a pair of round
brackets here False and True.
OK.
As you can see I assigned this expression this boolean expression to this boolean valuable.
So here I am actually saying that.
So here as you can see if the value of this expression is true that true value is going to be assigned
to this variable or if the value of this expression is false that false value is going to be assigned
to this value but ok false and true.
So here I can just create an if else statement here.
So if the value of this false and true variable is true.
OK as you can see here I am saying that if the value of these false and true variable is true then execute
this line of cohered see X for us and true.
Yes that said check it.
True.
OK.
Otherwise else if the value of these funds and true variable is false.
OK.
So exclamation mark false and true.
Then execute this line of code here.
Inside the inside of this curly braces C S C H.
X files.
And to no that said check checked.
True.
OK.
So let's actually run our project and see what happens.
OK.
As you can see now the value of this false and true variable is false.
So this checkbox is actually checked.
OK.
No.
So as you can see here the first level created a boolean variable here named false and true.
And then we assign this expression to our variable.
False and True.
So the result of this expression is going to be assigned to this valuable.
And here we actually created an if else statement.
If the value of this false and true value is true then execute this line of code.
And and else if the value of this false and true variable is not true.
So it is false then execute this line of code here.
So as you can see here the value of this variable is false.
So it is actually executing this line of code here.
OK.