Hi everyone in this theater you are really going to go ahead and create an animal Codys application.
So just click on the start in your Android studio project and then for the name of your application
name as you can see here just type in here animal quis as you can see here you can specify the company
domain the package name.
And here you can specify the project location.
And as you can see here we have this include C++ support.
So do not check the sequence here and here click on this next here.
As you can see for the minimum STK choose AP I-24 Android 7 point zero nugget.
OK.
If you have actually higher versions of this android 7 is that OK for me this is Android 7.0.
No good.
And the reason that I want to use Android 7 here for my minimum SDK is that because I want to show you
the newest AP or is that are actually introduced in Android I need to choose the minimum SDK as AP I-24.
Okay this is really important.
And here choose a phone and tablet as the mediumistic or phone and tablet because you want to create
applications for phone and tablet later.
I may actually create courses for creating applications for well devices or TV devices or Also Android
Auto.
So now click on this next here and here here just choose this basic activity here.
As you can see there isn't that I need you to choose the space of your basic activity is that because
in this application I want to introduce you.
There are fragments in Android.
So choose this basic activity because if I actually choose this actually this activity as the model
we actually get a fragment for free.
OK so two is this basic activity and then click next.
And here you can specify the activity name lay out name the title of the activity main activity and
as you can see here we're going to get a menu resource as you can see here so we can specify the name
of the menu resource.
So it's ok menu made and here as you can see it says use affreightment.
So here again because I want to actually introduce you to the concept of fragments in Android you need
to actually check this checkbox here that says Use affreightment and then click on finish.
So now as you can see here our project is created.
So now it's actually double click on the layout folder that is inside this folder and here as you can
see we have this activity underlaid minute example.
So here is the text of this activity so if I click on this design tab here at the bottom.
Now as you can see here you can see the user interface of this activity.
We have this content on the line that means that example as you can see here and we have also this fragment
underlayment that example.
So first of all let's actually double click on this activity underline minute maid of the image here
as you can see we have this activity and now it's actually double click on this activity on the alignment
of the stem and here at the top.
Just in order to make this area abiders just double click on the top here in order to make it make this
area there.
As you can see here again we have this floating in action button.
So are selected and that person delete key on your keyboard.
And here we have this activity.
So let's click on this text tab here at the bottom as you can see here.
Bodily out we have tool bar as you can see here.
And as you can see now you can see if I click on this preview here at the right hand side.
Now you can see that this is actually the upper left right.
So for now we don't wanna actually work on this activity underline made that example.
But I just wanted to show you that we have these codes.
We have this example code.
In order to put some of the basic human interface components inside our of use an end user interface
inside our activity.
So we have this app Amberly out and we have also this tool bar.
So we use them as you can see here at the top.
OK.
For now I'll just leave them here.
And now let's actually go inside this content underline made that example here at the top I have this
tab here.
Just click on it as you can see here we have this user interface such as selectees hello world takes
you here and now as you can see we cannot select this hello world view.
Why again because I chose to use a fragment inside our application I cannot interact directly with this
content content.
Underline that example OK because we have a fragment inside this activity.
So now if I click on this text tap here at the bottom.
Now as you can see here we have actually a block of code that is actually related to the fragment.
We have a fragment as you can see here the name of our block of code here is fragment.
And here we have a manual space as you can see here.
And we have an idea for displacement Android call an ID as you can see here at Sun at same place Id
slash.
This is the idea of this fragment as you can see here.
So let's actually change this idea to animal quizz animal quizz fragment
and here we have a name for displacement camp that example that is a site that that animal Chloes as
you can see here that main activity fragment right.
This is the name.
So here we have ballet outfit.
So again let me point out that the name must be actually different for you because we have a package
name as you can see here.
This is the name of my package.
So this package name is actually different for your application.
OK.
So do not worry if this value is actually different from your right in front of your value of this name
attribute and this name attribute is not really important.
But we put them here as you can see here.
So we have this lay out Viets as you can see which is actually match parent.
We have this lay out white again much parent.
These are fragments right in the right hand side.
Inside this preview again we are actually we have this user interface but we we are shown in a fragment
here we have this fragment inside this content underline minute example.
So now as you can see we have this layout behavior.
So as you can see the lay out his behavior is Android that supports that design that vidiot that app
partly out scrolling view.
So here are just it's not really important just ignore this attribute but just put that put that attribute
here.
OK.
We have so much important things to talk about.
So just ignore this one here and we have a lay out as you can see here tools lay out.
Right.
So the layout is a fragment underline made that example.
So now as you can see if I show you the product structure by just holding the command key on my keyboard
and the number one key on my keyboard.
So if you are using a Windows machine you can actually select you can hold the control on your keyboard
and then Pirzada number one key on your keyboard or you can actually click on the view here at the top
and then tool windows and then click on this project here so that you can see the project structure
here at the left.
And now as you can see if you have this fragment underlayment that is there and so this is the layout
right tools lay out.
And as you can see at St. lay out refers to this layout folder inside this project structure.
And then we can refer to this name fragment underline main.
So now as you can see it is our content underline that they submit right.
So we put this flag on the underlying that example inside this content underlying minute example.
So now.
Because we cannot directly interact with this content underline minute example.
We need to interact with this flagmen and to underline that it mean that a symbol that's the only reason
that we actually want to use fragments in our Android application.
So just click on this fragment underline monetarism in here.
And as you can see here at the top you have this tab name fragment underline minute ASML so just double
click on it.
And now as you can see here this area is now wider.
So at the bottom we have this text tab and we have this design tab so just click on this design tab
here as you can see.
Now if you want to select this hello world view here.
Now I can't select the cell overtakes view.
I can actually interact directly with this hello world you here and in person delete key on your keyboard.
So analysts actually design the user interface our application but before that I want to actually show
you a demo of the application that we are going to build in this lesson.