Hire everyone in this tutorial we're going to go ahead and create another Android application.
So just click on this.
Start in your Android studio project and then for the application name just type in here.
App number 42.
OK.
And then click on next here.
Choose API 16 Android 4.1 Jelly Bean for the minimum STK.
OK.
And then click on next here choose Blancher activity next and then click on finish.
So as you can see here I have these floating action button here and I want to delete this one.
So here first of all me actually delete this hello or take through.
So just select it and then present it here on your keyboard.
And here in order to delete this routine action button I need to WDTN this activity underline minute
example and then choose this fluting action button and then press on delete key on my keyboard.
So that asks you to go back and say this content underline made that example in order to design the
actually the interface of our application.
So here let me make sure that Kalahandi stop here in order to make this design area wider.
OK so now first of all I just need to write a linearly Ellsworthy card into this relatively out.
So just select it and put it at the center at the center of this relatively out here as you can see
here.
So now let's actually drag a large takes you into this linearly out vertical.
OK.
So you can actually put it at the center of this linearly as vertical.
So I just put it here.
And as you can see here for the latest gravity here it says Center underline horizontal OK as you can
see here.
So now let's actually get double click on this text view and for the text just type in here let's access
contacts.
OK.
And here just leave it to leave the ID as a default because we don't want to actually access these text
view from our double quotes.
OK.
And now for this actually actually changed some of the properties of this takes view.
So just selected.
And then here we can actually searched for the text size attributes as you can see we have these text
attributes and we have this text size attribute here.
So for the text size they're saying the volume number 50 is P.
OK so remember for the size of your texts it's better to actually use the Espey after your values.
Ok so it's Espey stance for our activities screen density.
Okay.
And here I need to actually press Enter key on my keyboard.
So now as you can see that the size of my text view is actually increased.
And here I can I can also change the color the text color of my text view here.
So as you can see I have this text color attribute so just selected.
And here you can actually assign a value for the color.
So just just put a hash tag here.
And for the color I can't just put the number forty four five if four five free.
And here I need to present Enter key on my keyboard.
So as you can see here the color of my actually did the color of my text is actually white now.
So I can see the color now.
So as you can see this is not the proper color for this takes you.
OK so because the background color here as you can see is white.
So we cannot see the actual text here.
So I need to actually change the colors for the black color.
You need to actually put the value of 0 0 0.
And now as you can see the color is black.
And for the white color you can actually use hash tag f f f.
Now as you can see the color is white.
Ok so you can actually use other values.
You can actually use some of the websites on the Internet.
We can get you to select one of those colors and then put it here.
OK.
Some of those color codes.
So that's what we're going to do now here.
So now open your web browser.
So here you just need to actually put this you Arel in your search bar on your web browser as you can
see here DML our color code stuff.
Come and here you can find the hex color codes here.
OK.
So here for example I want to actually choose this color blue.
So I just need to select it.
And here inside the Android studio for the text color I just need to put this value here and then press
on Enter key on my keyboard.
So as you can see here the text color of my takes you is actually changed.
So now I want to actually track a quick contact patch into my extruded interface here.
So here inside these experiments are for there as you can see we have this creature contact patch here.
OK.
So just select it and put it inside this linearly alterity call here at the center.
OK.
So as you can see here this is actually a contact patch.
So let's actually go back inside of a browser.
And now as you can see inside inside these are Android documentation.
You just need to actually put this you are held in your search bar on your web browser as you can see
here and you will be guided to this page.
And here we have this quick contact patch.
And as you can see here this class is actually a public class and it describes this class actually extends
from this image view class and should this class inherits all of the features and behaviors of this
in his view class and this class also implements this unclick listener interface.
OK.
So this.
So whenever whenever we actually click on the contact patch it can actually listen to the clicks of
the user.
And then it's going to respond to that or click.
So now let's actually go back to our web browser here.
As you can see here it says which it used to show an image of the standard queek which contact patch
and on click behavior.
OK.
And here you can see the summary.
It inherited XML attributes from class Android that feature that image view.
And for the class Android that view that view.
OK.
And here the inherited Constans view.
Here we have the fields as you can see here.
And here we have some of the constructors for this are Queechy contact patch as you can see here.
So the most important methods are here public benefits as you can see as signed contact from Imake.
So we can actually assign a contact based on an email address as you can see here is signed contact
from Imake of different parameters as you can see here.
So as you can see here this one accepts for arguments e-mail address a lazy look up and bundle extras.
So this one as you can see accepts two arguments e-mail address and lazy look up and here as you can
see assign context from phone as you can see here for number and lazy look up and here as you can see
a signed contact from phone with different parameters and other methods.
OK so now let's actually go back to our Android studio.
So I think the design of our application is actually finished.
So now let's go back and say this main activity that double file here.
And let's actually did it this block of code that is related to the floating action button.
And this actually did it.
And so these are lines of code that are related to the Options menu that I talked about in the previous
tutorials.
So now inside these are uncreate Smurfette I'm going to actually put in my own code here.
So here we just need to create an object from the squeege contact patch that we actually put here.
So as you can see here we have a quick contact patch here.
So if I actually double click on it as you can see we have an artsy attribute and we have an ID attribute.
So the idea is Queechy contact patch.
So the default is OK.
And it's actually to go back and say this main activity of java file here inside these uncreate Meffert.
Now I'm going to create an object from the squeege contact patch class as you can see here and then
I'm going to assign an a name to this object which can take the bad assignment operator.
And here I just need to cast this object to a quick contact patch object or K which can take the batch
file into view by ID are that Id thought which contact patch.
OK.
And then I need to put a semicolon at the end of my statement.
So now let's actually call MFL on the squeege contact patch.
So here for this application I want to actually assign a contact from the phone as you can see here
inside this web browser.
We have this method is signed contact from phone as you can see so we can actually use this method here.
And now I can't just type in query contact patch that is signed contact from foreign as you can see
here.
So we used this version of this Meffert that actually exits two arguments without these extras.
That is of tape bundle.
OK so storing phone number.
So here we need to actually specify a phone number.
So I just need to put in to double quotes here and instead of double quotes I can't just putting in
a phone number.
For example this number and here for the second argument the lazy Look-Up.
OK.
So for this argument I assigned a value through the lazy lookup so that we can actually easily see the
contacts.
And now it's actually as you can see here we have an error in our project and we need to actually delete
this error before we actually get on our project.
So I think it's a bug in Android studio because it's showing this error out of nowhere.
So let's actually click on this run button here and then click OK.
So as you can see here we cannot see this can't contact patch that we actually put here inside this
content underline When example.
So here I just need to click on this clear cashier and as you can see I put a quick contact about here
but I cannot see this Quicken text patch on my emulator.
So what's the problem.
The problem is that this quick contact patch if I actually go back inside this documentation as you
can see the squish contact patch actually inherits all of the features and behaviors of this image view.
So we can actually assign an image to the squeege contact patch and if we actually double click on it
we can see that we can actually assign an image.
So here I'm just going to actually copy and paste an image in our project so that we can actually refer
to that image and put it here.