Hi everyone in this theater are really really going to go ahead and create another Android application.
So just click on this.
Start in your Android studio project here and here for the name of our application just type in here
app 51 and here are click on next and here for the minimum STK choose.
AP is 16 Android 4.1 jelly bean.
And then click on next and here choose empty activity next and here click on finish.
So as you can see here now our project is actually created.
So now let's actually double click on this.
This folder here and then double click on the layout folder and then double click on this activity underline
minute example here.
So now I want to design the user interface of our application.
So just select the hello world takes you here and then Fri-Sun delete key on your keyboard.
So that is actually double click on this activity Underland minute example in order to make this design
area wider.
And now let's actually try to linearly out vertical at the center of this relatively out here and then
let's actually find this a vertical scroll.
Your insight is container's for that.
So just select it and put it at the center of this linearly out vertical and then let's actually again
right and linearly out vertical as you can see here inside this layouts folder.
Select is linearly at Westcott and put it inside this scroll you here.
OK.
So just put it at the center here.
OK.
And now as you can see this linearly vertical is actually inside the scroll you here.
OK.
And now let's actually tried some text views inside this linearly out vertical.
So Enceladus if it is for that as you can see here I have these takes two views here.
So just select these large takes here and put it inside this linearly out vertical and here and here
as you can see I have these properties that are related to this large text view.
And here for the lay of gravity just select center horizontal and now as you can see our text view is
actually centered horizontally inside this linearly or TerraCycle and for play out which is kind of
at the end the value match pallete and here.
Let's actually find the grip the gravity attribute that is related to the stakes because I want to center.
This takes Enceladus takes you here.
So I can't just find the gravity attribute here.
So as you can see this is the this is the gravity attribute to open this great gravity attribute here.
And just check this sent her a checkbox here.
So now as you can see it is the taste of this takes is actually centered inside this takes you OK by
actually manipulating this gravity attribute.
OK.
So hopefully that makes sense.
And now let's actually double click and this takes here and it takes just typing here.
This is text number one.
And for the idea just type in here it takes the number one
or the text number one.
OK.
And then person Enter key on your keyboard and then let's actually try and order a text view into this
linearly Ellsworthy call.
So just select this large text view here and put it inside this linearly or vertical again for the lay
out gravity assign the values center horizontal as you can see here.
And for the lay out which is the value match Pallant and now the second we find the gravity attribute
as you can see here this is the gravity attribute.
And here check the center checkbox here and now as you can see this the text of this text view is actually
centered inside.
This takes you and double clicking on these takes here.
So for the text just typing here this is text number 2 and for the ID just type in here it takes the
text number two.
OK.
And then press on Enter key on your keyboard.
And again let's actually drag another takes you into this linearly outway article so just select is
large takes you inside these widgets folder and put it inside this linearly at vertical as you can see
here.
Inside this componentry section here and here again let's actually assign the values center horizontal
for the lay of gravity of this text view.
So here this is the center hole is on top.
I just need to select it and faultily out we assign the value match Pallant and here are for the gravity
attribute.
Check this center check checkbox here and then double click and this takes you here.
And for that takes just a minute here.
This is this is text number free and for the ideas they've been here use the text number three OK and
then press Enter key on your keyboard.
So now let's ask you to go inside our main activity the java file here and now I want to actually declare
my user interface components here.
Some objects of type using interface components.
So as you can see here in this design area I have these takes views.
So these are the user interface components.
So inside our main activity that of a file you want to actually create objects of type text view in
order to interact with these user interface components.
So here I can't just declare a text view object takes to view the text number one semicolon text view
takes the text number two.
OK.
And of the first object is going to be again after it takes you to fix the text number free and then
put a semicolon at the end of your statement.
So now inside our uncreate method I need to actually instantiate these objects that I actually declared
inside our main activity class.
So as you can see here here we are just declaring these objects we're not creating these objects.
And here and if we actually refer to these objects anywhere in my code my eyes my eyes.
My application is going to crash because these objects are not instantiated yet.
OK so here I can just type anti-X the text number one assignment operator.
And here I need to actually cast this object where it takes you object fly into view by id r that ID
that takes the x number one semi-colon the X the takes number two assignment operator takes view find
view by the artist Id that takes the text number two semi-colon takes the takes number of the assignment
operator and here I need to cast this object we takes few object find view ID are that ID that takes
the takes number feet and then put a semi-colon at the end of your statement.
So now I want to actually create an assets folder in my project structure.
So just click on this view here at the top tool windows and then click on project here.
And as you can see here for this section at the top here choose Android.
OK this is important and then select this app.
Here this app folder right click on it.
And then here you choose new and then choose folder and then click on these assets folder.
OK.
And here just don't change anything.
And then click on finish.
So as you can see here I have these assets folder inside my app here and right clicked on these assets
folder new.
And then click on Android resource directory for the name of my directory.
I can't just type in menu underline mean.
OK.
And for the resource type just to just choose this menu here as you can see here and again change this
name to just a directory name too many are made.
And then click on OK.
And right click on these assets folder here and then Neo and then click on directory and then for the
name of our directives just type in here fonts and then click on OK.
So as you can see here I have this Faunce directory inside these assets folder.
So I have to actually put some fonts inside this Faunce fold fonts directory.
OK so now on my desktop I have some fonts and by the way if you want to actually download some fonts
from the Internet on your web browser you can actually use these.
Are you Arel in your search bar.
W w w that one thousand and one free fonts that come here you can actually choose one format and then
download it and then you get and then you can actually use that font in your projects.
But now on my desktop as you can see here on my desk that I have these phones here I don't know I downloaded
these phones from the Internet.
The first one is actually the format of the first one is that ETF.
The second one is that what you have and the first one is also that T.F..
So I just need to select all of them and then right click on them and then click on copy free items
and in my android studio I just need to select is Fornes directed here.
Right click on it and then click on paste and then click on OK.
So now as you can see here in my inside my phone straighted I have these phones here.
So now let's actually run our project and see what happens.