High or whatever.
So now it's time to go to our main activity class and actually create some valuables in order to actually
access these user interface components.
But you can see that we have not changed that the taste of the Spartan So let's go to the activity under
the light minute example here and as you can see I changed the text of this button but it's not reflecting
here.
So let me actually run the application again.
So now you can see that the text of this button is get that data.
So everything is fine so far.
Let's go to the Android studio and let's go to them.
Put them in the class and at the top of the file here here inside is main activity class.
I'm going to actually create somebody else.
The first valuable that you are going to create is going to be off the edit text so I can say edit text
and the name of this variable is going to be EDT.
Address right semicolon.
The second variable it again is going to be that it takes and the name of this rally is going to be
my EDT mph.
So I can say EDT miles per hour semicolon the first variable is going to be again of think it takes.
And it is going to be meters per mile.
So I can't say it takes the name of this variable is going to be meter's jeremiad semi-colon and we
need to actually create two more valuable for these picks views.
So I can say Take few takes the distance semicolon and another takes a view for these takes for the
time.
So the next value is going to be after it again takes a few takes the time semi-colon.
And finally we have the button button PTEN actually get the data semi-colon.
So now that we have these valuable Let's actually initialize them inside our uncreate method.
So let's go inside these and create Meffert and here after this set the content view method here.
I can actually say it is the address assignment operator.
Actually cast this object to our text editor object actually and it takes fine view by ID or that Id
dot EDT address semicolon EDT mph assignment operator.
It's actually Chrestus object to an edit text object find view by I-T or thoughts ID that EDT mph semicolon
on the next rally.
Is going to be actually this one.
It the meters per mile.
So let's actually change the name of this variable here to EDT meters per hour per mile.
EDT meteor's pair might right.
So there is actually a consistency here so I can say EDT meters per mile assignment operator less cast
this object to an edit text object.
And here I can't say find view about ID are that Id dot EDT meters Pyrmont right semicolon.
Now unless actually initialize Arctic's view.
So the distance assignment operator cast it to an object find via by ID are thought Id gutty X the this
then its value semicolon and the next one is takes the time.
So it takes the time assignment operator lets get this object to a text view object fine view by ID
or that ID that takes the time to waste the time semi-colon.
And we have this PTEN get the data so Pythian get the later.
I mean operator lets cast this object to a button object find view Id artist Id dot PTEN get the data
semicolon.
Now let's actually say that this class main activity actually conforms to a view that unclick listener.
So here I can say PTEN get the data.
So after this line of what I'm going to say that set of listener set on unclick listener and we need
to pass the context main activity that is right.
So here we have an error and that's because the main Akhal-Teke class is not actually implementing the
unclick listener interface Solus scroll to the top.
And here it says employment's.
So here we are already conforming or implementing these two interfaces so let's put a comma here.
Let's also implement the view dot unclick listener interface on click listener.
So now that you are actually implementing these unclick this in an interface we need to actually overwrite
the unclick method.
So let's scroll down here.
After the incredible pace of these uncreate Smurfit inside is main activity class I can't just point
on click on click so just press on until you're on your keyboard in order to select Smurfette and you
can see that if it is actually overlaid it here so we can use our we can actually put our coats here
inside the Smurfette So we are ready to add some implementations inside this unclick method in the next
tutorial.
Thank you very much for watching and I'll see you in the next story.