And now as you can see we have this case are that to take box through as you can see here.
So if you are referring to the idea of this checkbox kickboxing as you can see here in say this content
underline minute example if I select this checkbox Wuxi an object as you can see the idea is text box
too.
OK so here it refers to this checkbox here.
OK.
If the ID is checkbox to and if this works is actually checked then it's going to actually execute this
line of code inside of these instead of these curly braces of this statement and break.
And as you can see here we have the other cases here are that ID the checkbox free.
So it's going to actually execute these lines of code here if the idea is six bucks four is going actually
secure these lines of code.
And if the idea is Box 5 checkbox 6 checkbox 7 and tick box.
OK so it's going to actually execute these lines of code inside of these instead of this switch statement.
OK.
So hopefully that makes sense and I think it's actually our project.
OK.
And see what happens.
So now as you can see our application is running on this emulator and if we actually check this checkbox
here that says boxing as you can see it says boxing is checked.
OK.
And if it actually a check of this check box let's see what happens.
As you can see nothing happened.
OK.
So let's actually take this kickboxing checkbooks Kickboxing is checked judo Judo is checked.
I have two.
And here we have a problem for the aikido it actually tossed.
Showed us this football is checked.
So let's actually see what is this value as you can see for the checkbox number four as you can see
one two three four.
So this is our check box.
Number four if you have this football and this is wrong.
We need to actually to change these two.
You do.
OK.
And here as you can see for the checkbox number five we have football.
So this is running community change these two football and for the check box number six we have our
take Wando.
So here we need to change this to take one to
OK and here for the checkbox number seven we have wrestling
and for this checkbox number eight if you have swimming and this is right.
OK.
So let's actually run our project again and see what happens.
So as you can see here now again our application is running.
And if we actually click on this site here that is checked.
Football football is checked.
Take Wando.
Take one that is checked wrestling.
Wrestling is checked and swimming as you can see swimming is Cheikh.
OK.
So hopefully that makes sense.
OK.
And now we want to actually work on this part here.
OK.
So now let's ask you to go inside this uncreate method here.
So now I want to actually make these out as you can see here we have the secret here and I want to actually
make this sequel a listener.
OK.
They're actually seeking to they're actually actively seeking of the user.
OK.
So when they use that actually six These are six.
But here it's going I should respond.
OK so in order to do that you need to actually call it a listen at a specific listener on this see what
object.
So first of all I need to actually be fair to the name of this sick object OK.
That we actually declared in our class as you can see here.
And then we actually instantiate that object here.
As you can see in line 54 and now I just need to refer to the name of the seat but object that sits
on six bar change listener.
And now inside Apprentice's I need to actually specify the context.
OK main activity that this.
OK.
And as you can see it's showing us and it and we need to actually implement another kind of interface.
So here in order to implement an order in interface in our class.
OK.
So we need to actually put in a comma here.
OK.
And then we need to actually implement that interface here.
So here I just need to typing in on switchboard change listener.
OK.
So when I use it I try to interact with the listener as you can see here in our app if you need to actually
implement this interface part that unsichtbare change listener.
OK.
As you can see here and we need to actually implement it actually the abstract methods that we actually
inherit from this implement is interface.
OK we need to actually implement those abstract methods in our class.
So here are in our class as you can see of we need to actually implement that method.
So here I can actually after the end in curly brace of this uncreate Smurfette I can get you to right
click here click on this generate and then click on employment benefits.
And as you can see here these are the freely acquired the Misfit's that we need to implement in our
class as you can see it says Android that we did that switchboard data on six but changelessness.
So as you can see this is actually an interface and these are the Misfit's that diskless need to actually
implement.
OK.
So here again just click on OK.
So as you can see here now we have free methods that we need to actually overwrite in our class.
OK.
You can actually not to overwrite these misfits but what the most important one is this Meffert on progress
changed.
So this lift is going is going to be called Venditte been used use and actually change this.
So people here and they use that is actually seeking on the search bar.
OK.
So now as you can see the Smurfit actually are routine enough.
And this actually accepts free arguments.
The first one is the but itself this but object.
The second one is the progress of the sick bar.
OK.
So then they use that actually change this.
When they use it is actually seeking on this sick part.
As you can see it's going to generate an integer value.
OK.
So we can I truly get that integer value by just referring to this argument to progress.
OK so we can actually access this value by using this progress argument here.
And we have another argument that is of type Boolean and this is from user.
OK.
So insight is our Meffert we can actually put in our own implementations.
OK.
So here I'm going to actually explain that 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 I actually created a host object and then I called the shawm if it stopped.
So on this toast object in order to actually show this object to the user.
So TOSed that make text on the first argument is the context main activity that this.
And he had of double quotes.
I just typed in that the current value of the C Barby's colon space and he had actually used up plus
operator in order to concatenate this value with the value of the program.
OK so when the user is actually seeking undischarged we can see that specific value.
And here this is the actually the duration of the text that is going shown to the user.
And here we are calling this show.
And this object in order to show it is up to us object to the use that.
OK.
So as you can see here this is the tallest object.
And now we have this on started tracking touch.
OK this is another method from the search bar interface.
OK.
And this is going to be called when the user actually starts to actually see.
OK Vinnie use starts to seek this in if it is going to be called.
OK.
And we can actually create a tossed object here and it'll And we can actually show that object to the
user.
So here I'm going to actually paste in a toast object and then I'm going to explain to you what's going
on here.
So as you can see here this is the line of code that actually pasted here.
These tools that make text.
So first of all I specified the context main activity that this and he had instead of double quotes
I just typed in.
Now that bar is started.
And here you are specifying the activity the duration of the text that is going to be shown to the user.
And we are calling this method show my foot on this object.
OK.
And we have this effect on a stop a tracking touch.
So the Smurfette as you can see here this on start liking touchier is going to be called when the user
is Tharp's actually seeking under siege.
OK so as you can see here I am actually sitting on the bar and when I actually stop then decide if it
is going to be called.
Ok so now we can actually create another object here.
So as you can see here this is my toast object.
OK.
First of all I specified the context and then this is the text that I want to show to the user.
Now the bar is stopped.
OK.
And we have these tostada length short and tacho.
OK so now let's actually run our project and see what happens.
So now as you can see our application is actually running on DS emulator.
OK.
And now if we actually want to change the value of the search bar let's see what happens.
OK so I'm just going to start it here.
I'm just going to start here and now.
Now the bar is started and now as you can see the current value of the bar is number free.
Now the pot is stopped.
OK.
So as you can see here these are three kinds of methods actually called here.
OK.
So hopefully that makes sense.
OK.
And now we have these orating bar here and we have these are radio buttons that are actually the inside
of another radio group.
OK.
So let's actually work on this.
Orating bar here.
OK.
And let's actually go inside.
These are uncreate Mefford.
OK.
So first of all now I want to actually make this a rating for our listener.
OK.
Or two the clicks of the user.
OK so for example when the user wants to actually change the value of this routine.
You hear this rating but you can actually do something with those values.
OK.
So here I just need to refer to the name of this object rating bar.
OK.
As you can see if you declare this object in class and then be instantiated this object here in this
uncreate Meffert.
OK.
So letting bar dots sets on rating board change listener.
OK.
So in this way we are actually making this retty but a listener today actually the clips up the user
so that the user can actually change the value of the rating.
And then we can actually do something with those values.
OK.
So here lately but that said sit on rating will change the center and that he had Vinita actually specify.
Actually the class that this listener actually belongs to.
So he had just that main activity thought this and now we need to actually implement the under-18 bar
change the center.
OK.
So here in our class as you can see if you need to actually put another comma here and here I can just
type in rating board.
OK.
Dot under-rating bar change listener.
So as you can see here Rating Board darts under-18 bar change listener.
OK.
And now we can actually scroll down here.
And after the end in brace of this uncreate Meffert I can actually right click here.
And then I can actually click on generate.
And here I can actually kind of implement Moffats.
So this is the method that we need to implement locate and do that which is that rating board that aren't
rating board change to the center.
And this is actually inside these interface OK under-18 changed.
So here I can actually click on OK.
And now as you can see the error is gone.
And now we can actually overwrite this R-rating changed the Senate here.
OK.
So in so far as you can see if you have this buffer it actually returns nothing.
And this if it actually exits free arguments the first one is the rating rating but object so the slaking
bar here and the next one is the value of the rating.
So here for example are four stars of four point one five stars.
As you can see here for example three point one four stars 4.1 five stars or even one star two star
or other values.
So this is that value rating which is of type float and we have this Boullion argument from use it.
OK.
So now inside this under-rating changed I want you to paste in a line of code and then I'm going explain
to you what's going on here.
So this is the line of code that they actually pasted here TOSed that make text.
First of all I actually specified the context of our application.
The second argument is actually the text that I want to show to the use that the number of stars are
rating.
OK so that can we can actually understand we can actually get the value of these rating but here for
example four stars three point one or five stars.
OK so with this rating the number of stars are in space rating.
And here it says it was started in short so this is that the ration of the text that we want to show
to the user that's sure.
OK so now let's actually run our project and see what happens.