So now as you can see our application is running on this emulator and here I can actually select this
rating but here for example I want to actually assign the value of three stars and now as you can see
it says the number of stars are 2.4 2.5 get the value of this rating but is 2.5 or can actually make
your stars the number of stars are free.
Point zero.
OK.
As you can see it says the number of stars are 3.5.
The number of stars are four I can actually change.
This takes two other takes for example the value of stars are here I can actually change these numbers
to value.
And now it's actually on our project again.
So now I can actually give value to the rating board for example here the value of stars are free or
here or here.
You can actually see this value here or here.
OK.
So you can see this TOSed object here.
OK.
So hopefully that makes sense.
And now we have these are radio buttons inside our radio group.
So now I want to make these radio buttons that are inside of an order or radio group I want to make
these radio buttons a listener to the police if they use that.
OK.
So because these radio buttons are actually inside of an other radio group.
I need to actually type in here a radio group that sits on checked change.
Listener.
OK.
So many to actually call this method on the object radio group that said unchecked change the listener
and inside the prentices I need to pass in the context main activity that is OK.
And now we need to actually implement their antic change listen at of Radio Group here in our class.
So here I just need to put in a comma here.
Radio Group OK that on check out change listener.
OK.
And now we to actually implement the required methods.
So after the end in curly brace of this uncreate method here are connected to right click on my class
and click on generate and then click on implement methods.
And as you can see here we need to actually implement this Antek change a method here.
OK.
That is inside of this on take it or change the center interface.
So here I just need to click on OK.
I just need to select the Smurfit and then click on OK.
So this is my fifth and here as you can see if it returns void.
And this means that if it is going to return nothing that the name of this man if it is on take the
change and this reflection to accepts two arguments.
Ok Radio Group group and checked ID.
OK.
And a district ID is the ID of.
Actually the radio buttons inside the radio group.
OK so we can actually access these are objects these radio buttons.
But using these checks ID.
OK so now I'm going to actually 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 pasted this switch statement inside this method.
OK.
So so each Ok so it's going actually to switch between the values of these checked ID.
OK so as I said earlier this check ID is the ID of these radio buttons inside of this.
So we can access these objects these components by using these are checked IDs.
OK.
So so each checked ID case.
So in case that if the value of these fake IDs or radio button or one if the ID of these checked ID
is you are not in one as you can see then it's going to execute this line of code here.
Android is checked.
OK.
So here break.
And if the ID is radio button two as you can see here in this content underlaid minute example the idea
of this radio button here as you can see the idea of this radio button is actually radio button too.
And here we have this radio button free and this radio button one.
OK.
So if the idea is that you get into then it's going to secure is this line of code here.
OK.
Our US is checked.
OK.
And if the idea is that you bought in free then it's going to you to execute this line of code here.
OK.
Windows Phone is checked.
OK.
So hopefully that makes sense.
And now let's actually run our project and see what happens.
So now as you can see our application is running on this emulator.
And here if you scroll down here I can see these values.
OK.
Android or.
Yes.
So if I actually select this one here it says Android is checked OK.
And if I actually select this I'll use you as is check the OK.
And now as you can see we can only take one of these radio buttons here.
OK.
So here Windows Phone is checked.
OK.
So I think this this is enough for this application.
And if you have any questions please post the discussion in the course and then I'll do my best to answer
all of your questions.
Thank you very much for watching and I'll see you in the next tutorial.