So inside this main activity class I just want to declare some objects.
OK.
So here I'm going to paste in some lines of code and then I'm going to explain to you what's going on
here.
So as you can see here these are the lines of code that they actually pasted here.
OK.
First of all I actually created an object of type of type take three chair and the name of this object
is a text switch or one image button PTEN next want an image button between pre-warned.
OK so as you can see here inside this content underline.
I mean that example here as you can see if you have this text we shall hear.
And you have these two image buttons in so it is linearly and horizontal OK.
And here as you can see I created another text through each object and the name of this object is text
wish to and here image button Pythia next to image button between the two.
And here I created another object.
So the name of this object is text to feature free image button BTA next free and image button BATNA
DTN are free.
OK.
So now I want to actually create a free streamed phrase free arrays of types 3 inch inside this main
activity class so here I'm going to actually pasting some lines of code and then I'm going to explain
to you what's going on here.
So as you can see here I created these arrows here inside of this class.
So here let me actually create a newline character so that you can see these values better.
OK.
And as you can see here now.
This is my first Arey string values one.
And as you can see it is out it actually accepts values of type string.
OK.
And inside the array as you can see I only assigned two string values.
So as I said earlier in this tutorial in this video soulis tutorial that these are takes through each
area can only accept two strong values.
Ok so here as you can see I can only switch between two string values.
OK.
For example I can actually assign a free string values to these three and expect that this takes each
have to actually switch between those values.
OK so this takes switcher that this all.
This takes is actually inside that takes.
OK.
This takes so can only accept two string values.
So here as you can see I created a string of values one Arai and I assigned two values of type string
to this.
OK.
And he had actually created another Arey as you can see strength values too.
And here as you can see again I only assigned it to string values to this Aure.
And here we have these three values free.
And here again I assigned only two string values to this arii.
OK.
So now let's actually go inside this and create Smurfette here and now when i actually are pasting some
lines of code here here I want to actually instantiate these objects that they actually declared inside
these main activity class.
OK.
So here Enceladus uncreate Meffert you want to instantiate those objects.
So as you can see here these are the lines of code that they actually pasted here.
OK.
Takes three to one.
And here are actually a cast that this object will take so we should object find view by our Id thought
takes through each one.
And here again and next one image button and here Pythian next one BT and proven as you can see here
I am actually cast in this object to our image.
But an object find view by ID or the ID that Pythian prevalent.
And here this is for text to each two.
And here you can see that I actually referred to the text SUCIA to PTEN next to here as you can see
between and two.
And this is between and two.
And here we have these texts which are free as you can see I actually do referred to this suture free
ID.
OK.
Yet.
Our next three as you can see are that I did that between Nextly BT and our briefly are that ID data
between apre free.
OK.
So now let's actually create another Meffert inside the main activity class as you can see here.
So after the end in curly braces of this uncreate Meffert and inside of this main activity class you
want to create another method.
So here I'm just gonna pasting this Nevitt here and then I'm going to explain to you what's going on
here.
So as you can see here this is the method that they actually pasted here.
OK so let me actually create a new line here so that he can see these values here.
OK.
And as you can see the axis of this method is private the return type of this method is void.
And this means that this method is going to return nothing.
OK.
And the name of this method is used the animation for text switcher.
OK.
So as you can see here insert is emulator vanille actually click on the next button here.
Now you can see an animation effect here.
OK.
And here as you can see an animation effect.
OK.
So this if it does that job for us.
OK.
And this never actually exits an object of type takes through each hour.
OK.
So inside this Meffert as you can see first what I referred to the name of this argument takes the chair
that sits in animation.
OK animation you tell us that animation.
First of all I need to specify the context.
So main activity that this and that here I need to actually specify the type of animation that I want
to actually use on my text through each other.
So the set in animation is fade in and we have another type of animation set out animation as you can
see here the same.
And this one views fade out.
OK.
So Vendi actually when the text is going to appear here and this text creature as you can see you have
a fading effect and when the text is going to actually disappear you have a fade out effect.
OK.
So hopefully that makes sense.
And now let's actually create another to fit inside this main activity class.
So here I'm just gonna are pasting this method here and then I'm going to explain to you what's going
on here.
So as you can see here this is the Meffert that they actually pasted here.
As you can see and here as you can see the Axis modify of this method is private.
The return type of this method is void and this means that this method is going to return nothing and
the name of this method is create takes you by either reading over the values of the A for taste sweeter.
OK.
So as you can see here inside this emulator.
OK.
Now we have takes viewers insight or taste sweeter.
OK.
And here the Spirit is going to actually create toothpicks views as you can see these are the face views
by actually iterating over the values inside these areas.
OK.
So for example as you can see here are the name of this live it is create tasty view but iterating over
the values of the arrow a four takes each hour.
So here I actually specified two arguments as you can see here I specified two arguments for the Smurfette
as you can see the first argument is actually of type String Array.
OK.
String values.
And the second argument is of type taste sweeter and the name of this argument is texture.
So let's see what's going on inside of this.
OK.
And here we have a for loop inside Apprentice's of this for loop.
First of all I actually created an integer value bit of type as you can see the name of this body in
the index index.
And then I assigned the value zero to this valuable.
And then here I actually created created a condition in which determines that how many times this group
is going to be executed.
And here had specified that after each execution of after each execution of this follow or the value
of this index value is going to be incremented by one.
OK.
And insert is for loop.
First of all Flight 77 as you can see I created an object of type text view.
OK.
And the name of this object is the view.
And as you can see here by putting this new keyword here I am actually instantiating this object and
then here for the constructor of a text.
View our class as you can see I need to actually pass the context so the context would be diskless main
activity that this.
And then here I actually referred to the name of this object DXi that set text.
So here I want to actually assign a value to this text view.
So excited that a text string values.
So here I'll refer to this.
I agree this argument as you can see is this argument is of type string.
OK.
String values sup index.
So here it's going to iterate over the values that are inside of this string values array which is going
to pass through this method as an argument as you can see here and then it's going to assign those values
to these takes the view object as you can see here text view.
And we have again inline 1796 the view that said color color that's blue.
OK.
Or here I can actually change this colors for example to red.
OK.
And here we have this Meffert takes the view that said text size.
So here I can I try to change this size to what for example Fretty.
OK.
I am setting the size of this text view.
And here we have this text through chair.
This is really important this line of code here.
We actually referred to this text 3 to object as you can see here that we actually receive as an argument
from the Smurfit OK take switches that add value.
OK take the view.
So here you are actually adding these takes views that actually are created inside of this for loop
if you are actually adding to text views to this text to each other.
And that's why we can see those values here when we actually create.
Click on this next spot and we can actually switch between those values.
So these are these are the text views that are inside of this are take switcher.
OK.
So hopefully that makes sense.
And now.