Hire everyone in this tutorial we're going to go ahead and actually create an Android application.
So we need to actually click on this start in your Android studio project.
And here we just need to assign a name to our application name.
So I just type in app 6 and you can actually specify the company domain and you can actually specify
the package name and you can actually specify the project location here.
OK.
So click on next for the minimum STK choose a 16 Android 4.1 Jelly Bean OK and then click on next and
here make sure to choose the Blache activity.
Click next and here don't change anything.
And then click on finish.
So as you can see here it's going to actually configure and set up the project.
OK.
So as you can see here our project is created.
And let's actually delete this hill over text you here and let's actually delete this a floating action
button here.
So doubleclick on this rest for the here and then double click on this layout folder and activity Underland
made that example and then you can actually select this floating action button here and I can.
And then you can actually delete these floating action button here without actually deleting those.
Those actually lines of code in this text area here.
OK.
We can actually design our user interface interacting with the user interface.
OK.
You don't have to interact with that text area in order to design you or is it your user interface.
OK.
So let's go back inside the Design tab here.
OK.
Now that we actually deleted the fluting action button here inside this activity underline main that
example we need to go back inside this content underline minute example in order to interact with this
screen here.
OK.
So let's actually click on linearly out vertical here and then we can actually put this up linearly
out in in the center of the screen.
OK so now let's actually click on this relatively out here and let's actually find the padding attributes
as you can see here.
And for the I'll just put the number zero here and then press on enter on your keyboard.
So as you can see here now the layout and the layout height of this linearly is match parent.
And this means that it's going to actually cover the entire screen.
As you can see here.
OK.
So now it's actually dragging are large takes you here into this screen and let's actually change the
layout Viets of this large text view to match parent.
It's going to actually cover the entire width of this screen.
And then let's actually double click and this takes you here.
And let's actually keep or text to this text to you for example please enter our number.
OK.
And for the ID just type in here T.
XTi enter.
OK.
And let's actually directing our text field into this screen here.
So now as you can see here we've got a text fields folder here.
And inside this fall there as you can see we've got different types of text fields.
OK.
So for this application we just need this plain text here.
So just like here and as you can see here the layout width of these component is much patent.
OK.
So now there's actually double click on this text file here.
And you can actually give a text to this text field and we can actually give an ID to this text field.
So for the ID just type in here it is the number we can actually give a hint to.
These are textfield here.
So we just need to finding the hint attributes that is actually related to this text we had here.
OK.
So as you can see here we've got this hint attribute here.
We can actually type in here please enter a number
OK.
So as you can see here we've got ahint here and now let's actually dragging our text view here into
this screen.
So just click on this large takes you here and then track it here and then you can actually double click
on this text view and just type in here for the text result.
And for the ID just type in here t x the result.
OK.
So now let's actually dragging Potin into this screen.
So as you can see here we've got this pattern here.
So just select it and then you can actually put it here and double click on the spot in here.
And for the text just type in here show me the result
OK and for the ID you can actually give an ID to the spot.
So the end result.
OK.
So hopefully that makes sense.
And now we can actually go inside this.
Our main activity job file here and lets actually did it.
These are lines of code here that are actually related to the Options menu.
And this actually did these lines of code here that is actually related to create a floating action
button.
So we don't need this floating action here and now we can actually create some objects from these classes
that you can see here for example an object from this text view class an object from this textfield
class which is actually an added text class and object again from this text view class and an object
from this button class.
OK.
So let's actually create these objects.
So just typing here text view.
And then we can actually give a name to these takes you.
So as you can see here inside this content underline mean that mean that example as you can see we've
got this please enter a number.
So as you can see here we don't need to actually change the value of this text here.
I just wanted to put this text you here in order to let the user know that he should actually enter
a number inside this text field.
OK.
So I don't need to actually change this the value of this text view.
So inside this man actually did that job or I can actually create an object for these results.
Takes you here.
OK.
So I can't just take me here really takes the result and then I put an assignment operator here and
then I need to actually cast this object to takes three object and then I just type in here find you
by ID are that ID that T.
XTi resort.
OK.
So now let's actually create an object from these added text class.
So let's actually go inside this main activity that right here and now I just need to type in here.
It text class.
So as you can see here we've got this a text class and then we can actually give a name to this object.
So EDT enter.
OK.
And then put an assignment operator here and then again we need to actually cast this object to an edit
text object.
So let's actually typing here edit text find view ID are that ID that EDT.
Number.
So now as you can see the ID of our object is EDT number.
OK.
The idea of our component inside this content underline main that examen is EDT number as you can see
here.
So it's better to actually give the same name as the name of our ID to our object.
So here we can actually change this name to EDT number.
OK so now let's actually create an object from the spot in class as you can see here.
Show me the result.
So here I can just type in here button.
OK.
PTEN result.
And then I put an assignment operator here and then I need to actually cast this object to about an
object.
I just need to type in here or find your ID are that Id dot BT.
End result and then I need to actually put a semi-colon at the end of my statement.
So now let's actually hold the Command key.
Or if you are using a Windows machine you need to actually hold the control key on your keyboard and
then click on this it takes here.
So as you can see here this edit text actually extends text view.
And this means that this text class actually inherits all of the features and behaviors that are inside
this text view class.
And this takes you class as you can see extends all of the features and the behaviors that are inside
this view class.
So as a result we can actually conclude that this as it takes is actually our view.
OK so here we need to actually cast this object to an edit text object in order to let the compiler
know that we are actually dealing with an edit text object not a view object.
OK.