So as you can see here I am saying that if the value of this false and true valuable is not true.
So it is false.
Ok then execute this line of quote here.
See Ex-Files and to know that said checked.
True.
So as you can see here this object is actually related to this component here.
This checkbox.
So as you can see here this text box is actually on.
So this line of code here is actually executed.
So the value of this is false and true value label is actually false.
The value of this expression is false false and true results in a false value.
OK.
So let's actually comment out of this if else statement here
and then let's actually typing these statements in another way.
So each c x false and true.
Yes that said checked and then it's actually putting a paragraph brackets false and true questionmark
true otherwise false.
OK.
See X false and true.
No Dot said check it.
Let's actually put in our program brackets here not false and true and this means if the value of this
for false central value is false then assigned a value of true to this said check the method that is
related to this object.
See it's x false and true no.
Otherwise assign the value false to this object.
So as you can see here in the emulator the value of these false and true value is actually false.
So as you can see we specify that if the value of this false central value but is false then assign
the value true to this checkbox.
So as you can see this tick box is actually on.
So let's actually run our project again and see what happens.
So as you can see here it's now showing the same results again the value of this false and true variable
is actually false.
So this checkbox is actually checked.
OK.
So hopefully that makes sense.
So let let me explain again here we actually specify that if the value of this false and true value
bet is true then assign the value true to this said Chicot method that is related to this see x false
and true yes object.
So this object is actually related to this component and otherwise if the value of this false central
value but is actually false then assign the value false to this object.
OK.
So as you can see here this checkbox is actually is actually checked up.
OK so this sequence is not on.
And here we actually specify that if the value of this false and true value is actually false then assign
the value true to this object.
As you can see otherwise assign the value false.
So this value is actually false.
So it is actually assigning the value true to this check box here.
As you can see the search box is actually on.
So hopefully that makes sense.
Ok everyone.
Now let's actually go back inside this content underline that example and then let's actually put in
a linear layout horizontal into these linearly Ellsworthy call and then let's actually put in a larger
takes you into these linear layouts.
OK.
As you can see the color of this linearly out as you can see is orange.
OK when I actually hover over these linearly out when I want to put this large takes you into These
are linearly.
OK.
So as you can see now this text is actually inside these linear horizontal.
So let's actually double click on this large takes.
And then for the text just type in here false and false.
OK.
Press Enter key on your keyboard.
So as you can see now our text view is ready and then actually try again on two checkboxes into this
linear layout.
So let's actually double click on this checkbox.
So for the text or in here.
Yes.
And for the idea just type in here see x false and false.
Yes.
OK let's actually do like in another checkbox into this linearly out.
So checkbox put it here beside this checkbox here and then double click on this checkbox.
And for the text just type in here no.
And for the ID just type in here see x false and fonts.
No.
OK.
And then click on this linearly or horizontal and then as you can see actually find the gravity attributes
and then check these our center underline horizontal checkbox here.
OK.
And let's actually go back and say this main activity the java file here.
So now let's actually create a comment here.
So false and false.
Ok so here are the top of the screen as you can see when you are actually creating objects from those
Blondie's checkbox classes here.
I actually created a comment and now I want to actually create two other checkbox objects.
So checkbox see X fonts and fonts.
Yes.
And then I actually put in an assignment operator here.
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
false.
Yes.
OK.
Again let's actually create another checkbox see as X Files and follows no assignment operator here.
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.
No.
OK so now let's actually interact with these checkboxes here.
So let's actually scroll down the screen here.
Now let's actually create a comment OK.
False and false.
So let's actually create a boolean variable named false and false.
And then I put an assignment operator here and then I want to actually assign a value to this variable
fonts and fonts.
OK.
As you can see I created a boolean expression here and then I want to assign the result of this expression
to this value a false and false.
So if the result of this expression is actually true that true value is going to be assigned to this
variable and if that is the result of this expression is actually false that font's value is going to
be assigned to this variable OK.
So let's actually create an if statement here.
If false and false actually has the value.
True.
So now it can actually execute this line of code inside of these if statement.
So C-h x files and files yes.
That said check it.
True.
OK.
Else if not false and false.
And this means if the value of this false and false variable is not true.
So it is false.
Then execute this line of code inside of this curly braces.
C x.
False and false.
No that said check it.
True OK.
So now let me explain again what's going on here.
So first of all I actually created a boolean variable and then I assigned a value to this ability a
false and false.
The result of this expression is going to be assigned to this valuable.
And then I actually create it and if else statement here first of all I specify that if false and false
variable has the value of true then execute this line of code here.
If the value of this false and false variable is true execute this line of code here and else.
If the value of these are false and false value bet is false then execute this line of code here.
OK.
So hopefully that makes sense.
And let's actually run our project and see what happens.
OK.
As you can see now our application is actually running on this emulator here.
And as you can see the value of this false and false variable is actually false.
OK.
Because this checkbox is actually checked.
So because this checkbox is actually checked then we can actually conclude that the value of these are
false and false value but is actually false.
So the value so the result of this expression is false.
Ok false and false results in a false value.
So let's actually comment out again these are this if else statement here because I want to show you
another way in order to write this code so see x files and files.
Yes that's checked and I put in a part of brackets here false and false.
Question mark.
True otherwise false.
So here I am saying that if the value of this false and false value but is true then assign the value
of this the value of truth to this.
I said checked my faith.
Otherwise assign the value false to the six that checked method.
OK.