And here as you can see again I gave a key to this checkbox preference.
So the key is going to be checkbox Front number two text one.
So as you can see here in our project structure I have a free Faunce.
So I created free checkbox preferences for free for all of these fonts that I have in my assets folder.
Inside these forms directory.
The first one is for this chunk.
Five Auty of font.
And the second one is is going to be for this Fauntleroy Blount that PTF font.
And the first one tick tick box preference is going to be for this wunderbar the more that you have.
So let's go back to our preferences underlined for that example.
So here I have this checkbox preference and the key is going to be checkbox font number to text 1.
So this is going to be the font for our text.
One phone number two right.
I have this font here font literally Brown.
And now I gave a title to this checkbox preference that the title is going to be the name of the font.
Fauntleroy Brown and the Summary The description is going to be this is phone number two.
OK.
And the default value is going to be the phone the name of the phone itself in the double quotes Fauntleroy
Brown that data TGF And as you can see here I am actually ending artistic experience by putting this
closing tag here checkbox preference.
OK.
So here again I have another checkbox preference for this first format that she is going to be checkbox
for.
Number of free text 1.
Ok phone number free for the text 1 are actually gave a wrong name to this of the first form the name
of the first phone is wunderbar.
Space them all that what you have.
So this is run OK.
So I need to actually delete this name here for the title and I need to actually put the same name that
I have here for this front one there.
OK.
One dead body.
Space them all.
OK.
That's all.
So now this is the right name for this font.
OK.
And again I have this summary that is phone number free.
And again as you can see I have this default value right.
So as you can see here I put this Auty here.
It's not necessary to put this all to you.
This is just the titel delete this OTFE here.
OK.
So now for the default value again I have this wrong value here.
OK.
So this value is must be the same as these are to name here wunderbar spaced them more that what you
have.
So again I'm going to type in wunderbar wonder but.
OK.
Space them all that OTTF.
OK so this is going to be the default value.
So this is really important.
They must be the same as the name of this phone here and here as you can see this is just a title in
order to let the user know what is going to be the name of the actual type that they want to use.
So this is very important that you use that is actually the best name the right name for your Fontenay.
OK.
And here I am actually closing this preference this checkbox preference here by putting disclosing tack
here as you can see and now again inside these preferences Underland find examine as you can see I have
this preference category so I actually created this category for text number one.
And these are going to be the checkboxes for text number one in order to let the user select a specific
font for text number one that you can see on this emulator for this.
This is text number one.
Right.
And here as you can see I have this list preference.
So what is this.
This list proofread this is going to show the user some radio buttons in order to let the user choose
one of the options in order to specify the size of the text that they want to actually change.
So here as you can see I have this list of friends I opened this task list preference and I gave a key
to this list preference.
The key is font underline size underline text 1.
So remember that I told you always for your key names you just capitalized your key names.
This is really important.
And here as you can see I have this title here.
The title is specify the size of your fonts for text view one as you can see here.
Here I want to actually let the user know that I want to actually specify the size of the phones so
that they know what to do.
This is the title for this list preference.
So remember this preference is going to actually show the user a list of radio buttons.
So the user can only choose one of the two options.
One of the radio buttons and then accordingly change the size of the text view that they want to change.
So for this specific case we want to change the size of the text one.
OK.
We hope we are actually inside this preference category for this takes text number of settings as you
can see here.
So inside this preference category I have this list preference.
The key is font size one font size takes one.
The title is specified the size of your fonts for text you want.
OK.
And the dialog title is choose one of these sizes.
So here it is going to be the title of the dialog that is going to be shown to the user so that they
can see that it says choose one of these sizes and we have these entries and entry values.
So these entries and three values are going to be the numbers that they use that can actually choose
for the size of their text views.
So in a minute I'll talk about that here.
And here I have this default value the default value is 10.
So the default text size value is going to be 10.
So this is really important that actually provide a default value so when the user doesn't actually
want to select any of the radio buttons or doesn't want to actually choose one of the text sizes the
default value is going to be 10.
So what are these in threes and three values.
So I have these entries as you can see here are these entries at sign Arey slash font sizes.
And here I have these three values at sign Aure slash font size font sizes values.
So this at site Aure actually first try this treaty actually exemplified that we have in our project.
So what is that exemplified that XML file is inside our values directory here inside our project structure
values directory inside these strings that XML file here.
So this at St..
Ara refers to this isn't exemplified strings that example.
So let's double click on these strings that XML here.
And as you can see here I have these values here resources and I have this value stream name app name.
So this is going to be to specify the name of our actually application.
And as you can see I have this XML value so now I won't actually paste in some lines of code here inside
these resources tag here and then I'm going to explain to you what's going on here.
So as you can see here inside these strings that XML file here I actually pasted these lines of code.
So now I'm going to explain to you what's going on here.
First of all as you can see I have this strange Arey tag here as you can see and the name of this tag
is font sizes.
So this is going to be the font size is that the users can use in order to change the size of the phones
of their views.
Right.
And I have these items inside the string at ATAC.
OK.
The first item is for example 20 DPI.
The second item is 40 DPI as you can see here for 45 DP 50 DP 55 DP 60 DP 65 DP and 70 DP.
And here I am closing this string at ATAC here.
This is very important that you actually pro-white are a strange strange R8.
OK.
In order to put your items for these values because I want to show to the user a dialog and let them
actually choose one of the radio buttons in order to specify for example a text size for example for
25 dpi or 55 DP.
OK.
And here as you can see I have these streambed at a again here.
I have to string arrows here.
Right staring at it and the name is font sizes values the name of this first string and it is font sizes
and the name of the second string at a.
Here is font size as values.
And again I have these items.
And as you can see I only have these values without the DP here.
OK.
I just put these values number 25 to 40 45 50 55.
So now of an add on our application you'll understand more why we actually created these string address
here.
OK.
For now just know that you need to actually put this here for 25 DP or 40 DP in order to let the user
to select one of these values but the values that are that are going to be shown to the user are going
to be these values.
OK.
So now when then I don't project you can understand what's going on here.
So let's go back to our preferences on the line firelit example.
And now as you can see the arrows are gone at sign.
R.A. size is an added form sizers values isn't going to be the font sizes values.
OK you can put your own font sizes here.
For example number 108 200 300 or whatever values for it you just need to add more items here and here.
OK this is very important.
And now.
So now that I have these values this preference category for my tastes you're number one.
That's actually our go to our main activity that justified here and now let's actually create an intent.
So I want to create an intent and I want to move from this activity to the preferences activity but
we don't have the Prevx friend says activity yet.
So we need to create that preferences activity in our project.