Hire everyone in this theater you are really going to go ahead and create our 17th Android application.
So just click on this start in your Android studio project and here for the application name just type
in here app 17 and you can you can actually specify the company domain package name and project location
here and then click on next and here choose API 16 Android 4.1 Jelly Bean for minimum STK.
Ok phone and tablet and then click on next.
And then here choose Blanche activity next.
OK.
And here we can actually specify a name for the activity name lay out the name title and menu resource
name OK.
So click on.
Finish.
OK so now let's actually select this over text view here and then press on delete key on your keyboard
and it lets you to go inside this race folder lay out an activity on the line.
In that example and here choose these floating action button here and then press and delete key on your
keyboard.
OK so now let's actually go back and say this content underline man made that example.
And here we can actually design our user interface for this application.
OK.
So first of all we need to actually write a linearly or 20 call into this relatively old Hiroki.
So just put this linearly vertical at the center of this relatively out.
OK.
So now let's actually track linearly out horizontally into these linearly or 20 call.
OK.
So now again right.
And are there really any lay out horizontal into this linearly or horizontal here.
OK.
Again select this linearly horizontally here and put it inside these linearly horizontally here.
OK.
So as you can see here I actually made a mistake and I didn't actually put these are linearly or horizontal
inside these linearly at horizontal here.
And mistakenly I did put this a linear horizontal in so it is linearly earthwork the quality.
So we just need to address this linearly horizontal and put it inside these linearly or horizontal here.
OK.
So as you can see here I have two linearly outs here as you can see inside these linearly or horizontal.
OK.
So let's actually select both of these linearly else here.
And for the layout with assigned values 0 and for the lay out weight assign the values zero point five.
OK.
So here I am actually assuming that the weight of these are linearly held horizontal is for example
number one.
OK.
And I am actually giving to each of these linearly else here the values zero point five for the lay
rate.
So each of these linearly out here are actually taking a half of the Veith of these linearly or horizontal
loci.
So I did actually assign the value 0 to lay out of each of these are linearly or else.
And I actually assign the value 0.5 to the lay out rate of this linear linearly else so that these are
linearly.
And actually taking a half of the width of these linearly out horizontal.
OK.
So hopefully that makes sense.
And now let's actually track a text view into this linearly or horizontally here.
So just select these large takes you here and put it inside these linearly and horizontal here.
OK.
And double click on this text view.
So for the text for the text just type in here rates and I don't want to give an I.D. to the States
view because I don't want to actually interact with these component from my java code.
OK.
So I'll just leave the ID as default and let's actually drag and other takes you inside this search
and linearly and hold onto it as you can see here.
So just select these large takes here and then put it inside these linearly out horizontal here.
OK.
And double click on this text view.
And for the text just typing here a number of stars.
Ok so now let's actually do an ordinal linearly at horizontal into this linearly out vertical.
OK.
So as you can see here we have another linearly or horizontal inside linearly out.
Well OK so now let's actually do a linearly or two vertical this time Enceladus this linearly of horizontal
and again right.
I know there are linearly out vertical in so it is linearly out horizontal OK.
So as you can see here we have two linearly outs inside this linearly or horizontal.
So analysis actually our select both of these are linearly outs here and for the lay out to feed the
values 0 and for the lay out weight assigned values 0.5.
Again I am actually assuming that the delta V of these are linearly horizontally.
Here is actually one OK the value of the left which is linearly and horizontal is one and I am actually
giving in and these two linearly held here are actually taking a half of the Veith of these linearly
out horizontally.
So I actually assign the value 0 to the outfit and I actually assigned the values 0.5 to delay of weight
of these linearly else here.
OK so now let's actually select a text view here large text view and put it inside these linearly or
two vertical here.
OK.
So now double click on this takes you here for the text.
Just delete the text of this text view and for the ID just type in here TXI the rates.
OK.
And again that's actually right.
And other large takes you into this nearly 30 call and double click on the takes you.
And here for the text again.
Delete the text of this text view and for the OED just type in here Teague's the number of starts.
OK.
So now the design of our user interface is actually finished.
And now we can actually go inside this main activity that you will find here and here.
Delete these lines of code that are actually related to the options menu and here.
Delete this block of code that is related to the floating action button.
Ok so now we can actually put our own codes here.
Now let's actually create two takes few objects.
So here I just need to refer to the name of the text view class and the name of my object is DXi rates
OK.
Assignment operator and that I need to cast this object to a text view object find view by ID or that
Id Dot T X the rates.
OK semi-colon again takes you to the number of stars number of stars or the assignment operator.
And then I need to adjust this object to take the view object find view ID on that ID Dot T x the number
of stars OK let's actually declare two string objects.
So strange.
OK.
And the name of our string object is all it takes the radius value a semicolon here I don't want to
actually instantiate this object.
I just declared this strange object here.
OK.
Again strange old tricks the number of stars.
Well you OK.
So now let's actually create an array of integer numbers.
So here I want to actually create an alley of integer numbers.
So first of all I need to specify the type of my array and.
OK.
And then I need to actually specify that I am going to create an array.
So I just need to put in a pair of brackets after my type name.
And then here I need to actually keep a name to my array.
So the name of my AT EASE people creates OK assignments.
Operator And then here I want to instantiate this a by giving us some values to this array.
So here.
So here I need to actually give a value between number 1 and the number of 5.
OK.
For example number one.
OK.
Number one for the index 0.
Number four for the index one number free for the index to.
And for example number five for the index free 2 5 1 3 4 5 2 4 5 8.
And then I need to put in a semi-colon at the end of my statement.