High students in the City Hall you are going to go ahead and create our second Android application.
So let's create an android studio project here.
So the application name is going to be our second or app.
Number two it doesn't really make a difference.
You can name it whatever you want.
You can specify the company domain package name and the product location here.
So this actually can next.
And here we need to specify the minimum STK for our application.
So for a minimum masticated AP 16 Android 4.1 jelly bean.
OK.
So this is going to be the minimum version of Android.
So you mean even British version of Android operating system that our application is allowed to run.
OK.
So the use of this device must have at least must have this version of Android Android 4.1 daily pain
and phone and tablet.
So that's good to connect.
And here is basic activity.
Just could be next here and activity name is main activity the lay out name is activity under the main
title main activity and the many resources name is mine you underline me.
So I suggest that you actually don't change any of these values here.
Just click on finish so is going to create the project for us.
So let's wait a little bit here.
So as you can see it's actually Shumi other to be a little areas here.
I just need to wait.
As you can see at the bottom it says cradle built running.
So now going can actually solve the problem for me is Carender here and now the errors are gone.
But if the error actually exists here if the error is not gone for your specific Android.
So you're just peeved at the top and then can you kind of rebuild project or you can actually close
the Android studio and then open it again.
So now let's actually look at these files here look at this file here.
This is actually the contents underline minute example.
And let's click on this activity underly minute exam so you can see that we have two exemplifies the
first one is activity under limited example.
And the second file is content under the last minute segment.
And the reason is that we actually specify that we want to use basic activity when we created the application
to use the basic activity as the template.
So that's why it has actually created two XML files for us.
So what's the difference Sillett sexually click this activity on delaminated exam.
Here let's open it and you can see that we have this floating action button or I can select this filleting
action button right.
So let's go to this text up here at the bottom and we can see that as you can see at the right hand
side we have this preview actually collapse this preview.
So you can see this exemplifies this example McCourt's actually.
And we can see these codes.
And let's actually look at this line of Cahir in line number 24.
Here it says include lay out the outside lay out the slash content underline make.
So this means that this activity underlined means actually includes this content.
Underland me right.
So now inside this activity I main I can actually delete these floating action button.
But inside this content underline minute example here at the top I can actually switch between these
tabs between these taps.
So if I actually switch the content on there I mean I mean there's a tab you can see that I cannot select
this floating action button here.
But if it actually Suroosh to activity Underland mean that ASML I consider exploiting action button
and then I can delete it.
But there is another difference.
And is that in inside this activity underly I mean a decimal or you cannot selectees hello world takes
you right this activity and eliminate examen actually holds includes this content.
Underland minute segment.
So if I you to go to this content under the last minute example.
Now you can see that I can select this hello world view and then present delete key on my keyboard.
So at that point if I actually go to a text that you can see that we have actually a relative lay out
here I'll talk more about this layouts later but for now just know that the rel. out is going to actually
position our user interface components.
They're called the two other components.
Right.
So for example our insight is of widgets for this palette section.
Here you can see that we have this with a spoiler so let's select this text view.
And now let's drag this text view here inside this relatively.
So you can see these arrows and it is actually pointing to other directions so this means that this
takes you can be positioned according to these directions like for example down or actually decelerate.
This takes you here again.
And I see that I can actually put it wherever I want.
So let's actually put it here at the center so you can see these dotted lines that is actually specifying
that this textbook can be actually at the center horizontally and center vertical.
Let's put it here and now I can actually give our text to the States view.
So look at this property section here on the right hand side.
We can give an ID to this text view.
We can get actually a lay out with a layout height.
I'll talk more about these later.
So for now let's give a text to this things if you look at this text attribute here.
But if you don't see if you cannot see these properties here at the bottom it says View all properties
right.
Just click on it.
And here you can see all these properties here.
Right.
So now let's actually assessed for a specific property.
So for example I want to search for the text property I select one of these properties here and now
I can type in text and as he has said I can actually find this text property here and I can change the
text of this takes view.
So I just double click on this value and I can change it here so I can say put your text here for example
put your text here and in person and help you and your keyboard.
So I change to take the text of this text view.
So let's actually increase the text size the font size of this text view.
So again select one of these properties here and just search for text size attributes text size.
So now we can see this text size attribute here.
Just click on it and let's increase it to 18 s.p.
Or I can actually change it to 24 s.p.
So remember the s.p is actually used for giving for the size of our text inside our text.
So always use espie for their font size.
This is very important.
And now I can actually also make this text view the text actually bold.
OK.
So just click on this text style so you can see that we have normal.
It Halik.
Now select this board right.
I can actually check our unchecked is not normal a checkbox.
And just check this board here so you can see this value here.
Right.
Now I can run our application and let's see what happens just at the top just click on this run button
or display button and select one of these devices.
And I just click on OK here.
So let's wait.
And by the way if you want to increase the font size of your Java code.
So as you can see our application is not allowed to run.
Why.
Because in the activity under mentalism and if you remember we actually deleted this Flaten action button
in and inside the main activity that Jobab filed class.
So let's actually double click on this in activity of a fight.
So if you can't find this tab here you just need to insert this view here and say this.
Andrew to you here on the left hand side you just opened a folder and then opened this package was just
sitting on this little triangle and that double clicked my inactivity fight.
OK.
And here in order to make this a job of course here a little bit wider Let's double click on this main
activity that of a fight.
So it is now wider.
And as you can see if you have this piece of code here that is related to the floating action button
we don't have to fill that in action button now.
So this piece of code here is actually too redundant.
And this piece of what is the cause of the error.
This piece of code does not allow our application to run.
So let's selected here inside this uncreate method.
I just want to select this piece of code here that is actually related to the floating action button
and deleted.
Right.
So make sure that you actually do not to delete the closing curly braces.
This creates Meffert here.
So now the error is solved.
Let's run an application again.
Let me show you the emulator let me increase the width and height of this emulator so that you can see
better.
So now let's wait.
And by the way if you want to actually increase the size of your Java code here you just need to click
on at the top just click an android studio.
So if you are using a Windows machine you just need to click fight.
And then click on settings.
So if you are using a Mac just click on Android sudi at the top and then click on preferences.
So now here opened the editor here by just clicking on this little triangle and then open our colors
and fonts and then click on font.
So here in order to actually increase the font size of our job codes we need to create a new scheme.
So here you just need to click on Save As.
And then you just need to give a unique name to your skin.
For example my unique scheme right and then click on OK.
So we actually created a new scheme and now I can increase the font size of my job of course.
So currently it is now 22 right.
I can easily see two for example 50 and then I can click on OK.
So as you can see the full size of my Dovercourt now increased or you can actually change the theme
of your Would you.
So in order to do that you just need to click on at the top just click on Android studio preferences
and an open editor and in the inside it has this critical general here and you can see that we have
this appearance.
OK.
You can actually change these properties here.
But let's actually click on these colors and fonts and click on general here.
Instead these colors and fonts.
And now I can actually change the theme of my application so I have default.
So these are the things that I actually created in the past.
I have to actually copy and all these other stuff.
This is my new scheme.
My unique scheme.
So you can see that the font size increased both or you can actually make it bold as you can see here.
You can make them Halik or bold so you can actually change this back and ankle.
So for example if I select this you can see this.
It says back in the late.
And we can see the splash color if I click on it I can change the background color of my code.
So for example I can select this right here at the bottom and I can actually change it to blue if I
could kind of choose I can click on OK here at the bottom as you can see the background color here is
now blue.
If you want to change them I just need to again.
I just need to go to preferences again and lose your preferences.
And again if you are using a Windows machine you just need to click on file settings so preferences
and again are just to go inside the editor colors and fonts and in general and here are for the packet.
I can actually change the background color to for example green.
If I click and choose Now the background color is green.
So let's actually make it little black.
So let's actually take his handler and then just drag it here at the bottom so that the back and color
is going to be black and then click can choose.
So now the background color is black and now or let's actually click on this once again.
Let me actually decrease the font suit so that it is actually training free.
Let's click on OK.
So now we can see that the background color is black.
And you can see that the font size of my double quotes is actually 23.
I can actually change the text.
So let's actually click on these preferences here and then go to font.
And now I can click on this general so you can see this for Grant.
Right.
So I can't change this for foreground color through for example red literally can choose.
And let's see what happens.
You can see that the color of this text is now actually red.
If I click on OK you can see now these colors here this red color for specific features.
So let's actually go back to and look at the top and then click on preferences again.
And let's actually change this color to for example to blue.
And then click on Tues and then OK.
So you can see now it is blue.
Let's go to Andrew in studio again preferences.
Let's change the color to white.
So here at the bottom I can actually siliceous handle it and drag it to the top.
And now I can just put this here this pointer at the center.
And then you can just click and choose.
So now the color is white right.
So you can see this white color here.
So hopefully that makes sense.
And you can actually customize the font color the background color the foreground colors you can do
anything with your Android studio.
So let's let's actually let me show you the average video here.
Now you can see that our application is running on the simulator and you can see this takes here at
the center.
Right.
So I think that's enough for the whole deal in the next it's really going to continue building this
application.
And by the way I actually created this tutorial in order to update the original part 1 app.
Number two section of the course of the Antrix studio of course.
I am actually updating decors So please if you have any problems if you actually encounter any problems
regarding Android studio and specifically its newest features please post the discussion in the course
and then I do my best to answer all of your questions.
Thank you very much for watching.
And I see you next year Tauriel.