So now let's actually click on these values folder here and then right click on it and a new and deadly
value resource file.
So here for the name just a pin here.
And as you can see here the source said is Main and that directory name is values.
And then click on OK.
So as you can see here now we have another XML file inside these values folder.
So here as you can see it let me actually double click on this is that ASML file type here as you can
see just double click on this type here in order to make this area right there.
And inside is Resources page.
I'm going to put put paste in some 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 pasted here inside these three sources.
So here we have a three inch alle resource here and the name is number of guesses at least right.
So number underline of underlined guesses underline a list.
So this is the exact name that we have inside this quiz.
Underline preprocess that exemplified as you can see here for the entries here I actually referred to
the name of this area here and I raised that example at St..
Add a slash number of guests list.
And we also provided this value for the entry values at St R8 slash number.
Number of guesses this and as you can see here the error is gone right.
So let's go back to our advice.
RH that isn't on fire here.
So here we have I staring at a resource here as you can see and the name is number of guesses least.
And here inside this source at a year inside this is staring at a resource we have some items right.
We have an array of integer values right.
So the first item is number two.
The second item is number four and the first item is number 6.
So these are going to be the guest options right.
The user can actually select whether he wants he or she wants to.
The queen actually has two options to get buttons or false buttons or six just put the guest buttons.
So let me show you this on the emulator.
So as you can see here this is our application animalcules.
And as you can see here we have 40 Spartans.
So if we actually click on this in here and now if I click on this number of guesses here as you can
see I can actually select six here and if I click on this back button here.
Now as you can see here we have six options here right.
So that's why we created this string arrows here.
Right.
So hopefully that makes sense.
So that's why I actually put these options here.
As you can see I actually created this string at a here in order to provide two values to four or six
number of guesses list.
Right.
So hopefully that makes sense.
And now let's actually go back inside this quiz on the airline preferences that they exemplified and
here as you can see.
Now I'm going to actually 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 lines of code that I pasted here.
So here we have a multi selection list preference.
So let me actually show you the emulator here and see if I click on the Settings button here.
Now as you can see if we actually select these animals here these animals up option as you can see now
we have this Actually the checklist right before it actually clicked and clicked on this number the
number of guesses.
I'll get him here.
As you can see we had a radio about.
As you can see here we have some of your buttons.
I'll let you go actually.
But here now if we actually click on this animals item now you can see here we have a checklist right.
We have a group of checklists and this means that we can actually select whether we have what we want
wild animals or tame animals in inside our cookies.
Right.
So as you can see here in order to provide a group of checklists inside your quiz inside the settings
as you can see here you need to actually provide a multi selection or multi-select list preference as
you can see here.
Right.
So I created a multi-select list preference and here for the entries here as you can see again you referred
to at site arey.
And this refers to this address that exemplified slash type of animals.
Right.
So let's actually copy this type of animals here.
And let's actually go inside these areas that examen file.
And now this create another string at a.
So let's open attach and just they've been here strange R8 and the name is going to be that value that
the copied what type of animals.
Right.
And then there's the close this time here.
And now let's actually go inside this area here.
Let's go inside it is a tag here and now we can actually provide some items for example the first item
and then I need to close this item tag.
And here for the value I can't just type in wild animals and let's actually create another item.
So item and I need to close this item tag here and here I can just typing tame animals.
Right.
So as you can see here we have two items in sight these type of animals staring at me.
Right.
So now if I show you the emulator here as you can see we have these animals here as you can see and
we have two options.
Voit animals and tame animals.
So now this is very important that you actually provide these items here for these type of animals here.
Let's go back to our quiz underlined preferences that exemplify.
So as you can see here I actually provided this entries values here right.
Type of animals.
And as you can see here the arrow is gone.
But I told you that these values as you can see here type of animals are the values that are going to
be shown to the user right.
Avoid animals or tame animals.
These are the values that are going to be shown to the user.
But we also have three values as you can see here.
These are the actual values.
These are the values that we are going to work with.
Right.
So at St..
So again it refers to these areas that exemplified slash type of animals are values.
So let's actually copy disvalue here and now let's actually go inside this outrace that is unmodified.
Let's create another thing out of here.
So let's open attack just like in here starting at 8:00.
And for the name just paste that value here type of animals values type underline of underline animals
underline values.
And now let's actually close this tag here.
So now inside this string area here I need to actually provide some items.
So item.
And now let's actually close this item here and here for the value and just type in void underline animals.
So this is very important that you put underline here later.
And we are going to work with this value.
I'll show you how important it is to put this on the line here.
But for now just put this underline here OK.
Wild under like animals and remember that this is the value that we are going to work with.
This is the type of animals values right.
And this is the values as you can see here that are going to be shown to the user.
But at this type of animal's values are going to be the values that you're going to work with.
So let's create another item and let's close this item and just type it here.
Came on the line and Namath's right.
So now as you can see here we have two items inside the three at a.
So let's go back to our inside this quick quiz.
Underline pre-processed that they seem fine.
And now as you can see here the error is gone here.
Right.
So now let's actually let's actually look at this attribute here is the key.
As you can see here.
So the key is setting underline animal type.
Right.
So the key is settings underline animals type.
So just take this value here for the key attribute.
And again if you have another attribute title.
So again this title here as you can see refers to these streams that XML file as you can see here we
have these strings that exemplify.
And now inside this quiz underline preferences that SML you are actually referring to that void at sign
and slash animal types titel right.
So this is going to be the title.
So let me show you the emulator here.
As you can see the title is animals.
Right.
And here disvalue here is type of animals that you can include in the crease.
So this is going to be the description the summary.
And this one animal is the title.
So as you can see here at same strength slash animal types titel is a value that we have inside these
strings that is them and what you have not decided yet does actually create that value such just copy
this value here animal underline types underline the title and let's go inside the strings resembled
file and actually create another string resource.
Just type in here.
Strange.
And for the name just replace that value animal types title.
And now that's actually close.
String resources still intact.
And now for the value as you can see the title is animals right.
So here I can't just type in animals as easy as that.
So now let's actually go inside this quiz underline preferences that exemplified and as again as I can
see the error is gone here.
So now as you can see we have some of the attributes.
So again this summary attributes for the first two these scientists.
Are these strings that resemble files you can see here.
So at science three inch slash animal types description.
Right.
So now here as you can see the description is type of animals that you can include in the quiz.
So now it's actually capitis name here animal underlined types underline description and Eskil inside
things that are exemplified.
And now let's actually create another string actually let's create another screen resource.
So just I just just open a tag and just type in here strange.
And for the name just paste this value here.
Animal types description.
And let's actually close this page here and look for value.
As you can see here the value is type of animals that you can include in the crease.
So here's just a total value here type of animals
that you can include in the quiz.
Right.
So as you can see here it is that value.
So now we can get you to just type.
Types of animals.
OK.
This may be grammatically correct.
So as you can see here we actually provided this right here and now.
Let's actually go inside this quiz underlined preferences that exemplified.
And now as you can see here the error is gone.
And here again we have this persistent attribute.
So this is a very important attribute to persistent.
And as you can see here I assigned the value true.
So remember that I told you this attribute is going to actually persist these settings to the shirt
preferences that we have inside our Android device that is actually specific only to our application
inside our Android device.
So then we actually assign the value true to this persistent attributes.
It's going to actually persist those settings that we actually change inside our application to the
shared preferences.
And later when we are ready we want to actually open our application again if it can actually delete
those settings from the shared preferences and we'll go.
And then we are sure that our settings are actually saved.
So this is very important that you assign the value true to this persistent attribute and you have this
default value as you can see here.
So the default value is going to be for example the value for that for the first time that the user
is actually using this application.
The default value is going to be for example that does both of these search boxes are going to be checked.
So for the default value I actually referred to this as site error.
Here it is.
Address that XML file and pipe up animals values as you can see here.
So again I told you this type of animal values inside these alleys that resemble these values are going
to be the values that we are going to work with.
OK.
And these values type of animals are going to be the values that the user is going to be going to see.
OK.
So here because we want to use these values as you can see here and here actually referred to this area
here type of animal values.
And this means that we want both of these options.
OK.
And we want both of these checkboxes to be checked.
OK this is really important.
So let's go back to our quiz underlined preferences that examined file and as you can see here for the
default value I assign this value as a sign or a slash type of animals values.
So this is our multi-select list preference.
OK.
This is for creating checklists for our settings and list preference is for creating a radio group that
actually contains the radio buttons inside our settings.
So this is very important.
And now let's actually paste in some more lines of code here and then I'm going to explain to you what's
going on here.