So as you can see here now our application is running on this emulator.
And now as you can see this text here is the font of this text is already changed.
Why.
Because inside our menu.
And if I click on to sitting here now as you can see here this font here is actually checked the checkbox
of this font.
Chunk 5 is actually checked so it is true.
So now the shirt preferences is going to actually give our application the value and then it's going
to actually put that specific font here.
As you can see here.
Right.
So let's actually click on this menu here.
And then the settings and let's And check this checkbox and this this time it's actually checked this
checkbox here fault.
Leroy Brown OK this is number two.
So if we click on back here now as you can see this is a text number two.
Right.
But here as you can see we have a problem.
So if I actually click on this manual button and then click on settings here.
Now as you can see here these are actually here.
Here is the settings for our text.
One text viewer one text number one settings.
And these are these checkboxes.
And this is these are the radio buttons that are actually related only to the text you one right.
And when I actually click on the settings here and then I actually checked this checkbox default of
the text view.
One should change not this takes you two.
So what's the problem.
The problem is inside but specify the phone for text you want here.
As you can see the problem is here.
The problem is that it does.
Or else if statement here is going to actually set the typeface for TJX the takes.
Number two this is on the top for this must be set under this thing.
It actually takes number one.
And here again we have the same problem.
It takes number one.
OK.
The typeface must be set.
And this is the one that takes you here.
I actually intentionally actually put that photo or other text intentionally.
I actually assigned the typeface for the other takes views to show you that there is a problem that
these settings are holes or actually only related to this text view one.
OK.
And here you need to actually fix this problem.
The Takes number one takes it takes number of on again because these settings are related only to the
takes one.
OK.
So that's why it actually changed the format of the text to text you to right.
So let's run our project again.
So now as you can see our application is again running on the simulator.
And now as you can see the front of the takes you want is changed.
So if I click on this menu button and then the settings and hand as you can see the value of this checkbox
is checked.
So it is true.
And here in our main activity here you can see that the front of the takes of your want is changed.
So let's actually change this form to to another one.
For example this one sort is on Chiquita's.
This one here we need to check this one.
And if I click on back here now you can see it at the front of the takes we want again is changed.
So it's working correctly.
OK.
There is no back here.
And now let's actually put some other settings for the other takes views.
So this is that text one text number one settings.
Now you need to put text numbers to settings and text number three settings right.
So let's go back to our Actually preferences underlined for just that example here.
After this preference category here as you can see this is the preference category for text number one
settings right.
So after this article is after the ending tag of this and skeptically here as you can see this is the
ending tag here.
Here we need to actually say this preference screen.
Now we can actually put other preference categories.
So I'm going to paste in some more lines of code here and then I'm going to explain to you what's going
on here.
So as you can see here these are the lines of code that I actually pasted here.
I actually pasted another pretty friends category here after the ending tag of this preference.
Catechetical to here for this takes a number of settings.
I have another preference category here so Pyfrom skeptically Andray title Andrle title.
And as you can see the title is Text Number two settings here.
And again I have free checkboxes here checkbox preference.
As you can see here and now as you can see the first one is the key of the first one is checkbox.
Number one takes two.
This is very important actually.
I need to actually put a unique key for this checkbox checkbox front number one for text.
So these are the settings for text view to four that's actually emulator for this text view here.
Here I am actually putting the settings for this text view so checkbox for number one takes to the title
is 25.
Again the summary is this is one number of on and the default value is this to chunk that OTTF.
OK.
And here I am actually closing this checkbox preference task here and here again I have another checkbox
preference and again the key keys checkbox.
Number two for text 2.
And as you can see at this KEAYS checkbox font Number two the second form for takes two and the title
is foreign to Leroy Brown and the summary is this is format number two and the default value is the
name of the font.
OK.
And here I am actually closing this checkbox preference tag.
And here I have another checkbox preference as you can see here.
Again the key is checkbox form to number three takes two to type that the title is actually wrong.
As you can see here need to actually put the name of are actually the name of our font.
So as you can see here in our project structure the name of our second name of our first format is of
Vondelpark.
Wonder So let me ask you to change the name to wander.
But space them all.
OK so this is the title of our check box preference as you can see here.
The summary is this is from the number of free.
And again we need to change this default value to wander bar space them all that or T.F. And as you
can see here we are actually closing this checkbox pretty friends here with this the ending tag here
as you can see.
And we have another list pretty friends as you can see here for specifying the text size of our takes
you to again we have this key font size takes to title specify the size of your phone for text view
to the dialog title.
Choose one of these types sizes and as you can see we have again these entries font sizes and font sizes
values.
And we have this default value in Habberton right.
So now as you can see this is the ending tag of this lispro France.
And here as you can see we are ending this preference category four takes the butu.
Ok text number two settings.
So let's go back to our main activity that will file.
Here again if you need to create another Smurfette for text view to specify the font for text you too.
So after the ending curly brace of the Smurfette this specify the font to Fortescue one Mefford we need
to actually add the second Meffert.
So here I'm going to paste some of it and then I'm going to explain to you what's going on here.
So as you can see here I actually pasted this method here now and here as you can see the Axis modifier
of this Meffert is public.
The return type of this method is void and the name of this left is specified the font for text.
Butu right.
And inside the Smurfit again if you have a free boolean variables as you can see here the first one
is Phone number one for Takes Two value.
The second one is found Number two for text to value and the first one the first value value but the
name of the first variable is found Number three four takes two value right.
We are here we are specifying the front for our sake.
Second takes you as you can see here.
This takes this it takes number to write.
And here I am actually instantiating these boolean variables for a number of n for Takes Two value assignment
operator.
So here I want to actually get the shirt preferences object in order to access the value of this.
For example let's go inside these preferences and then follow the example.
I want to access the values of this preference category it takes numbers number two settings.
For example this checkbox autistic Polk's autistic works.
So is this main activity that I will fight here.
I referred to the name of this object shared preferences that gets Boullion.
I want to access the boolean value.
So this is going to be the key for our actually for our checkbox inside these preferences Underland
Follette example here as you can see we have this checkbox phone number one takes two.
So these are inside our main activity that are filed.
I put this key checkbox for number one takes two and this is going to be the false value of c..
So here I want to actually get to that boolean value right again.
Number two for text to value share preferences that get boolean checkbox front.
Number two takes two.
And this is going to be the false value for the default.
And here as you can see for the number three four takes two value shared preferences.
Again I want to access that values that is open or our emulator.
And if I click on settings here you can see that for example if we are inside the text number two settings
if they use that for example checks this checkbox or this checkbox is going to actually give us the
corresponding value.
OK share preferences that gets boolean checks put font checkbox for the number of free takes two.
And here is the false value right.
And here as you can see again we have the same if statements.
So if a phone number of one for text to value as you can see here if this boolean value value but is
true if the if the value of this boolean value is true that's the meaning of this statement.
If false number one for takes to value is true.
Then execute this line of code here.
So here we need to change the name to tier 60.
The Takes number one.
So here is again CTX the text number of that set pipe face phone number one as you can see here and
here I have an ELSE IF statement as you can see here.
Else if.
Phone number two for text to value is true if the value of this boolean variable is true.
As you can see here then it's going to execute this line of code here.
So here we need to change this name to TXI the text number to that said typeface fonts number two.
And if this condition here evaluates to false then it's going to be secure this ELSE IF statement else.
If phone number three four takes to value is true then it's going to secure this line of code here.
So here we need to change this name to the text number three that typeface phone number free.
Right.
So hopefully that makes sense.
And now let's actually run our project.
So now we need to actually call this Meffert from this are is your Meffert here.
So he said our resume effort after calling these specify the font for text view of on my feet here I
can't just call this second one specify the font for text butu.
And now let's run our project and see what happens.