So this is the effort that we needed to actually override inside of this main activity class.
OK.
OK because you are actually implementing this on item calculus in an interface.
So inside of the Smurfette of we're going to actually put in our own implementations and decide if it
is going to be called every time the user clicks on one of these items inside of this list.
As you can see here.
OK.
So now inside of this method as you can see here let's actually create a string object a key strength
and the name of this object is item value.
So just type in here item value assignment operator.
So now I want to actually get the values that are inside of the list view.
For example the value that is inside of this item is Android developer of course.
OK.
So in order to get this value.
First of all I need to refer to this list view.
OK.
So this we at least view is actually given to us as an argument as you can see here this patent argument
is actually does list view here as you can see here.
This is of type after view here.
OK.
So this parent argument is this this view.
So I can just first of all refer to then to this list you just parent.
OK.
So this is our argument.
OK.
So now I can actually call a method on this parent here.
OK.
So parent that gets item at the position.
So now we want to actually get the item add up at a specific position inside of this list.
OK.
So for example this item is actually the position 0 this item is at position 1.
This item is a position too and this item is position free and this item is that position for.
So here we want to actually get the item at a specific position.
So we actually also have this position as an argument or to dismiss it as you can see here.
So we have the item that is actually the inside of this specific position inside of this list.
OK.
So if you have that value here as you can see as an argument called position OK.
So I can just put that value here position.
OK.
And now let's actually call them if it is trained on this method.
So it can actually convert that value to a string value.
And then we can actually assign that value to the item value string object.
OK so let me explain again.
First of all with the fed through the patent argument.
So this patent argument is this this view.
OK.
And we are.
You are actually calling MF at on this argument get item at position so it can actually get a specific
item inside of this specific position inside of this list.
This you.
OK so here we need to actually assign an argument to the Smurfette.
So it's going actually asked us which identity you want.
So we want this specific item that is inside of this specific position that is inside of this area.
So we have that position as an argument to this click on item please.
OK.
So position so it get item at position position.
Okay.
Datastream.
OK.
So now let's actually create a tossed object so TOSed that makes text.
And here we need to actually specify our free arguments to this.
Our method here.
First of all we need to specify the context.
So the context is diskless main activity that this comma.
And here we need to actually put in the value the text that we want to show the user whenever the user
clicks on one of these items here.
OK.
So I can just referred to the name of this item value here.
Okay item value karma.
And then we need to actually specify the duration of the time that this message is going to be shown
to the user.
OK so now again just typing are toast that lenth short.
And he had to actually call the show method undismayed.
In order to show this value to the user.
OK so now let's actually run our project and see what happens.
So as you can see here now our application is actually running on the emulator here.
And let's actually click on one of these items inside of this list for you.
So as you can see here it says objective Seitel will appear of course.
So here I can just click on this item here are U.S. developer of course here Android developers of course.
OK so now let's actually increase the size of these values of these items inside of this list view.
So let's actually go back and say this content underline in that example and we can either put this
attribute here text size here for example or can just type in text size and then present Enter key on
your keyboard and here inside of these double quotes I can put in a value for example number 70 of DP.
OK.
Or I can just put in espie OK.
Espies stands for screen pixels.
So for the size of your text it's better to use s.p.
OK.
And then let's actually go back and say it is a design tab here as you can see by clear chance here
and now I can actually select this text view here and I can.
And we can actually as you can see the size of this text size is 70 s.p.
OK.
We can actually change these attributes the values of these attributes here inside of these properties
or we can actually change those values inside of these takes that up and here inside of it.
This takes you here.
OK.
So let's actually run our project and see what happens.
So now as you can see our application is on the simulator and we can see that the size of these of these
items as you can see of these are values that are inside of this list which is actually much larger.
OK.
Android developer of course as you can see here are iOS developers of course and we can see and we can
actually scroll here in order to see the other values inside of this list.
OK.
So let's actually change the color of these text views.
OK.
Change the color of these items.
So let's actually go back and say this content underline means that examine and here inside of this
takes me a tap.
I can't just typing text color and then press Enter key on your keyboard.
And here let's actually we can actually put in an orgy because the inside of these double quotes.
And now I can actually put a hash tag here and then I can paste that value here.
OK.
So now let's actually do on our project and see what happens.
So as you can see here our application is running on this emulator here.
And as you can see we have these values inside of this list OK.
Android developer of course.
And as you can see the color of these values is actually changed.
OK.
And by the way if you want to actually get these are G-B colors.
OK.
There is a Web site that is called ropy tables that come here.
Slash VEP slash color slash R.G. be underlined colors that HVM you can actually put this you are in
your web browser and you will be guided to this page here.
OK.
And here you can actually choose one of these colors.
Ok for example this color or this color as you can see here and you need to actually copy this a hex
value as you can see here.
And then you can you can actually put that value inside of these double quotes.
OK first you need to put a hash tag and then you need to put that hex value here.
OK so now let's actually do an art project and see what happens.
So as you can see here and our application is running on this emulator and you can see that the color
of these values is actually changed.
OK.
So I think that's enough for this story.
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.