Hire everyone in this Tauriel we're going to go ahead and create our 16th Android application.
So just click on this.
Start a new Android studio project.
And here we need to actually specify our name.
So just typing here.
App 16.
And you can actually specify the company domain package name and project location.
Click next and choose API 16 Android 4.1 Jelly Bean for minimum STK next blank activity next.
And here you can actually specify a name for activity namely health name title or Mineo resource name
and then Italy can finish.
And here select this hello world takes you here and then present it here on your keyboard and then click
on this layout folder activity underline made that example as you can see here and then select this
floating action button here and then press on the delete key on your keyboard.
OK.
So let's go back and say this content underline.
Mean that it's a male.
And here we can actually design our user interface for this application.
OK.
Now let's actually track our linear layout vertical into this relatively out.
OK.
Just put it at the center of this relatively out OK.
And now let's actually write a linear layout horizontally into this linearly alphabetical.
OK.
So now again drak are linearly out horizontal into this linearly and horizontal as you can see here
OK.
You can either put it here or you can actually put it inside this componentry section and put it inside
this linearly and horizontal.
OK.
So as you can see here we have a linearly horizontal inside is linearly or put onto that we actually
put here.
OK.
Now let's actually write another linearly out horizontal into this linearly out horizontal as you can
see here.
OK.
So just put it here.
So now we have two linearly outs as you can see.
Now we have two linear layouts inside this linear layout horizontal OK so now let's actually try an
image into this first linearly out horizontal as you can see here.
So just select an image view here and then put it inside this linearly and horizontal as you can see
here.
OK.
So now as you can see if you have an image view inside this linearly or horizontally OK.
Now let's actually select a text view.
OK a large text view and then put it inside this second linear labeled horizontal OK.
So just put it here and now as you can see we have two early outs inside this linearly on what is tool
as you can see here inside this linearly out horizontal We have an image for you here.
OK.
And inside this linearly are horizontal we've got our takes you.
OK.
So now let's actually select this image for you.
OK.
And for the layout Tveit just assign the value of 50 and for the layout height assign the value 50.
OK so now let's actually import some resources some images to this project.
OK.
So I have actually some images inside these three resources folder on the desktop.
And here as you can see these are my images.
So just select these images and then press on command plus the letters C key on my keyboard and then
lets actually select this view here and then tool windows and then select the projector.
So as you can see here now inside this red folder we have a triable folder OK.
So here just select and these tribal folder and then press on the command key plus the little key on
your keyboard.
OK.
So as you can see here we can actually specify a directory.
So as you can see if you want to actually save our images in our in this tribal folder.
So just click on OK.
And as you can see here these are the images.
OK.
So now let's actually go back and say this content underline I mean another example and DoubleClick
and these are image view here.
And for the R C just select this button here as you can see and select on the project map here and essentially
closed this color folder by just clicking on this little triangle.
And here we can actually search for the image name.
So for example the name of our image is is Theiss 1.
OK.
So just select this image and then click on OK.
OK.
As you can see now we can see this image here.
OK.
So just double click on this image here and for the idea just type in here are UMG dice.
Number one.
OK.
So just select this takes you here and this actually find the ID attribute.
So as you can see here this is the id attribute.
So for the ID just type in here takes the dice.
Number one OK as you can see here let's actually select this linearly and horizontal as you can see
here.
Now for the layout of this linearly out horizontal as you can see here this is the layout width of this
linearly horizontally assigned the values 0.
OK.
And for the lay out weight assigned values 0.5.
Or you can actually assign the value 50.
Here I am actually assuming that the width of this linearly are horizontal as you can see here the width
of this linearly or horizontal is 100.
OK.
And for this linearly or horizontally I actually assigned the values 0 for the lay out V of this linearly
Atari's until and then I assigned the value of 50 to the lay out of eight of these linearly of horizontal
decay.
So in this way it's going actually this linearly and horizontal is going to actually take 50 percent
of the width of this linearly and horizontal OK.
And again selectees linearly and horizontal.
Now assign the value 0 to the out of this linearly and this until for the left weight assigned a value
50.
So as you can see here these two linearly outs are actually taking 50 percent of the Viets of this linearly
held horizontally.
So hopefully that makes sense and let's actually track and order linearly and horizontal here inside
this linearly or vertical.
So now let's actually track and another linearly out horizontal into these linearly out horizontal here.
OK.
As you can see here now this linear layout is inside these linearly are presented OK.
Let's actually write another linearly horizontally into this linearly or horizontal.
OK.
Now we have two linear layouts inside this linearly held horizontally.
So just select these two linear layouts.
Okay.
And then for the layout we assign the value 0 and for the layout weight you can either assign the values
0.5 or you can assign the value 50.
OK.
And then our select selectees first linearly left here.
Now let's actually derive an image view into this linearly and horizontal.
OK.
And then let's actually find the ID attribute of this image view.
OK.
So for the ID just type in here I m g dice.
Number two.
OK.
And then let's actually find the s are the attributes of this image view as you can see.
This is the as R C attribute here.
And here let's actually click on the spot in here.
OK.
Select this project map here close these colored folder.
And now we can actually search for the dice name for the image name as you can see here.
This is the base name here.
Too.
So select selectees Stice two here and then click on this OK here.
So now it's actually assigned a value of 50 for the layout of this image view and assign the value 50
again to the height of this image.
OK so now let's actually select this late linearly horizontal here.
Select a large text view here.
OK.
As you can see this is a large view and put it inside this linearly or horizontal.
OK.
So let's actually double click on this our Takes you here.
And for the ID just type in here he asks the dice.
Number two.
OK.
And then let's actually select.
This takes you here and essentially find the gravity attributes.
OK.
So as you can see here we have a gravity attribute here.
So just open describe the attribute by just clicking on this little triangle.
And check this check box here that says Center.
OK.
So this is the center checkbox.
So just check this checkbox.
And as you can see here.
OK.
Now let's actually select this linearly and horizontal.
And now as you can see if you have a gravity attribute here OK.
So just open this gravity attribute by just clicking on this little triangle.
And here check this center checkbox.
OK this is the center checkbox here.
So just check the search box.
And as you can see here now the search box is actually at the center of this linearly and horizontal.