And this is our main activity class.
So as you can see here this main activity class actually extends from this app combat activity here
at combat activities or class.
OK.
And this main activity class actually inherits all of the features and behaviors of this app combat
activity.
OK.
And we can use those features and behaviors in our application.
So you may wonder how we can actually find the behaviors or features or instance variables of other
classes that are actually predefined for us.
And the answer is to actually use the Java documentation's.
So how we can actually find the Java documentation.
So in order to find out about the Java documentation's or about the Android documentation's you need
to open the Open your web browser and here just type in hushed TTP as Colon slash slash docs dot Oracle
dot com slash Java asthe slash 8 slash docs slash API and then press enter on your keyboard.
So as you can see here now as you can see these are all the packages that are actually predefined for
us in order to help us create our own Android applications rapidly.
And as you can see here these are all the packages that are available for us and these are all the classes
that are available for us and we can use them and I highly recommend that you actually read all of these
descriptions about these packages.
For example this is the job of that applet package.
OK.
And this is the description for this package.
So as you can see this package provides the classes necessary to create an applet and take classes and
applet uses to communicate with its applet context.
OK.
Or if you want to actually vote with the network you can actually find the job of that net package as
you can see here.
This is the jobs that net package.
So this package provides the classes for implement any networking applications.
OK.
So if you want to actually create an application that is related to the network we can actually use
the methods and classes inside this package or as against it this is the Java that total package this
package contains the collections Flamebird legacy collection collects classes events model dates and
time facilities international law zation and other classes and lots of other packages.
OK so this documentation is going to be your best friend when you want to actually create Java or Android
applications or if you want to actually find out about documentation's about about the Android inside
your web browser just typing here.
Developers that Android dot com slash guide slash index that is Steimle.
OK.
So as you can see here for example if you want to actually create an application that uses the media
and camera if I just click on this arrow here and here for example if I click on this media playback
back here as you can see it's going to actually show me some are descriptions and codes that are required
for actually creating applications that is related to media playback.
OK.
So hopefully that makes sense.
So you don't actually have to know about all of these descriptions or methods now but are at the end
of this course you will be more familiar with these concepts.
OK.
So let's go back inside the Android studio.
OK.
As I said earlier in this tutorial this main activity class actually inherits from this app Compaq's
activity here.
OK.
If I hold the command key on my keyboard and press that app combat activity here as I can see this is
the average computer activity.
But if you are using a Windows machine you need to actually hold the control key on your keyboard and
then click on Add combat activity here.
OK so as you can see here these are the Misfit's that is inside after combat activity.
OK.
So as you can see here this Apple computer activity actually inherits from this fragment activity here.
OK.
I'll talk more about implements later but for now just know that these are combat activity inherits
from this fragment activity inside this app Campana activity.
We've got these methods and create Meffert on post create Manford and other methods.
And inside these main activity it as you can see we are using these Smurfit uncreate Smurfit.
So because we are actually inheriting all of the behaviors that is inside this app compared to activity
we can actually use the Smurfette here.
OK.
And inside display if we can put our own implementation.
OK.
So let's go back inside the Apple computer activity.
And here if I hold the command key on my keyboard and click on fragment activity here.
Now as you can see these are the behaviors that is inside these this fragment activity here.
OK.
And again this fragment activity actually extends or inherits from the base fragment activity honeycomb.
OK.
So hopefully that makes sense.
Let's actually close this tab here and again close this up fragment activity that java file here.
So now I want to actually create some examples.
OK.
Now let's go inside the content underline made that example.
And here just dragging up linearly out into the screen here.
OK linearly out vertical.
Okay.
And just put it here and just click on these relatively out here and just find the padding attribute
here and just open this padding attributes by just clicking on this little triangle here.
And for the oh I'll just type in zero.
OK.
Now as you can see here are the feet and the height of these are linear layout is actually much padded.
OK.
So as you can see here are the width and height of this linear layout.
It covers the entire screen.
So if you just click on these linear layouts where Stichel here and here you can actually see that the
attributes related to this linear layout lay out which as you can see it is match parent and lay out
height.
It is much padding.
OK so large this will and just are dragging here and here just double click and this takes you here
for the text just typed in animal.
And for the idea the anemone.
OK.
And again dragging another takes you into this linearly out and double click on this text you for the
text us type in here chats and for the ID TXI the chat OK.
And again like in another text you hear just just double click on this text you hear for the text just
type in here line and for the ID the lion OK.
And again just like in another text you hear double click on it for the text just type in here.
Leppert OK.
And the idea here is the Lepard.
OK.
And again and drag and other text you hear just double click on this text view.
And for the text just typing here word and for the idea to use the word ok.
Select all of these text use here and then.
So you might actually give padding to these text views.
So I need to actually find the padding attributes here and here for the I'll just type in here 10 and
I want to give Omar Amergin to these text use.
So I just need to find in the lay out margin here and 40 or just type in here 10.
OK.
So now as you can see I've got five takes to use here and I gave a takes and an idea to each of these
takes us here.
OK.
So that I can actually interact with these objects which are on this screen Vilda overcoats.
OK.
So let's actually go back and say the main activity here.
And as you can see here this is our main activity.
OK.
Now I want to actually create five different classes with these names.
OK.
A class called animal or class called chat's a class called lion and a class called the leopard.
And finally a class called Bird.
OK.
So let's see how we can do that.
So in order to create a class you need to actually click on doubleclick on this Java folder here and
then double click on this folder here.
And then in it you actually click on File new Java class.
OK.
So for the class name just type in here element and then click on OK.
So as you can see here this is our Animal class and this class is inside this package here.
OK.