So as you can see here these are the lines of code that I pasted here.
So as you can see here I pasted our list preference.
So this means that you're going to have a radio group that contains radio buttons right.
So as you can see here first we need to actually put the entries attribute.
So Android entries.
And as you can see here I referred to this as sign Ari and this means that you are referring to this
address that exemplified slash colors.
So now there's actually capitis colors here and now.
Let's actually go inside this area is that exemplified.
And here let's create I think add a resource here.
So just open a tag and just type in here streambed at 8.
And for the name just a place that's value here colors and then I'll just close the stack and now inside
this string and here I am going to pasting 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.
So if you've got these items inside these colors starting at 8.
So the first item is the color of white as you can see here.
The second item is the color black.
The first item is actually the color green.
The fourth item is the color red.
The fifth item is the color blue and the six color as you can see here is yellow.
So these values are going to be the values that we are going to show to the user.
So now if we actually show you the emulator here now as you can see here if I just click on this choose
background color here as you can see here.
These are the values that we are going to show to the user.
Right.
And if we actually select one of these values for example green and if I click on this back a patch
button here as you can see now the background color of our Quiz application is clean.
Right.
So these are the values.
As you can see here these are the values that we are going to show to the user.
And here we created this thing Arrey in order to show these values to the user.
Right.
So let's go back to our Kulis underlined preferences that they.
And here we have entry values and again are you referred to this phrase that exemplified at sign at
a slash coloreds again are you referred to this string area here.
So this means that we are going to actually interact also with these values that we are going to show
to the user.
The color of white black green red blue or yellow.
We are going to interact with these values from our Java coats later.
So that's what actually referred here to this color.
String art twice once for these entries and once for these entry values.
Right.
So and as you can see here we have these key attributes.
So the key attribute is actually the key that we're going that we need here.
This works as an ID.
So you need this key in order to actually interact with this list preferences later inside our Java
coats.
So the key is settings underline quis underline background underline color.
So if you have a title as you can see here.
So the title is as you can see here at the title that you're going to show to the user.
So now let me show you the emulator here.
As you can see the title is True's background color as you can see here.
So as you can see at sidestream.
So here we are referring to these strings that XML file slash choose background color.
So let's actually copy this name here.
Choose by the color.
And then let's go inside this string that exemplified.
And now let's actually create another string resource.
So just open attack and just type in here strange.
And for the name just paste that value here choose underlined by the underlined color.
And now let's actually close this tag here.
So now let's just type in here as you can see here.
We need to just type in here is what you choose background color.
So here I can just type in Choose background color as you can see here.
So now let's actually go back inside our cubes underlined preferences that they said file.
Now as you can see here the error is gone and we have also these Summerlee attributes which again refers
to this stream that exemplifies So same strange slash choose color description so that the description
is disvalue choose up on one of these colors as the background color.
So as you can see here we have a typo here.
I didn't actually typed this but you're right.
So let's actually write it here correctly.
So just copy this value here.
Choose color description and now this to go inside the string that exemplified.
And now let's create a strange resource.
So it's three.
And the name is going to be this value that we copy it choose color description.
And now let's actually close this this attack here and now as you can see here for the description I
had just type in Choose one of these colors as the background color.
So here I can just taping choose one of these
colors as back get them color.
Right.
So as you can see here this is going to be the description.
And now as you can see this is the description right.
So now let's actually go back inside our quiz underlined preferences that exemplified.
And now as you can see here again the error is gone.
And again for the assistant to be assigned a value.
True.
So this persistent attribute is going to persist at these settings or to their shared preferences.
As you can see here and then later when you want to actually run for an application for the next time
you can actually read those settings for the shared for instance file that we have inside our Android
device.
So this is very important that you assign the value true for this attribute and we have also the default
value so for the for example for the first time that our application is going to be run on the user's
device if you're going to use this a default value as you can see here again you referred to these strings
that exemplified.
And I just typed in at sign streambed slash default color black.
So we use the color black as the default value right.
So let's actually copy this value here and now let's actually go inside this string that XML file here.
And now let's actually create another string resource.
So just open a tag and just type in a string and for the name just paste that value here.
Default color black and let's close this page here.
And for the value I can just type in here black as you can see here.
So this is going to be the default value right.
I remember that this is really important that you put this name here with capital B as you can see here
inside these arrows that exemplified.
We have these values as you can see white with capital W blacks with capital B green with capital G
red capital R and blue the capital B and yellow with capital Y and this means that B.
Because these values are written in.
As you can see here in this way when we want to actually provide a default value that default value
also must be actually treated as.
That way that we put this value inside arrays that are exempt.
As you can see here because inside is Ariz that him and here for example we put the value big Blache
with capital B then we want to provide a default value for our list preferences.
We need to actually put that value the same here with capital B as you can see here.
So this is really important.
So let's actually go inside Ahlquist that underline preferences that exemplified.
And now as you can see here the error is gone.
Right.
So now I want to actually paste in some more lines of code here and then I'm going to explain to you
what's going on here.