So here I'm going to paste in some lines of code inside me an activity class and then I'm going to explain
to you what's going on here.
So as you can see here this is our Meffert.
OK.
And as you can see the Axis modified for this private's and the return type of the Smif it is void and
the name of this method is let's add the images to the view flipper.
So as you can see inside this content underline minute example you have of your Flipper here and you
want to actually actually add the images the animal images into this of you flipper here.
So in this main activity that Jubber file the name of this method is let's add the images to the view
flipper and this it actually accept an argument of type of view flipper.
OK.
So here inside is Meffert I created a for loop as you can see here.
And inside Apprentice's of this for the first table I created an integer value of type as you can see
the name of this value is index.
And I assigned a value zero to this variable.
And here I specify the condition which determines how many times this loop is going to be executed.
So until the value of this index valuable is actually less than the value of the length of any of the
animal images of this animal class then this group is going to be executed.
So remember that inside this animal class we declared this very aesthetic.
OK.
So we can access this Aure without creating an object from the Animal class.
OK.
So I just refer to the name of this class animal.
That animal image just Auret.
OK.
And here I specify that after each execution of this for loop the value of this index value is going
to be incremented by 1.
OK.
And then inside this loop as you can see here first of all I created an object of type image view new
image view and for the constructed of this image you mean to actually pass are actually a context.
So the sort of context would be are these class main activity that this and here I actually set an image
to this image view image view that set image resource animal that images Suppe index.
So it's going to actually set the specific image inside that specific of index of animal images.
As you can see inside these animal images as you can see here inside this Animal class.
OK.
And here are.
Let's set it up.
So here I call this method.
Let's lay out problems for you and then I passed this image you to this method as you can see.
So this it is going to be so that our image is going to be in sight and are linearly out.
So in this content underlaid minute example here as you can see we have this view flipper in so it is
linearly out.
OK.
So we are allowed to actually use that method.
Use this or set let's say perhaps for you as you can see we use this little linearly out here.
OK.
So here after calling this Meffert we actually referred to the name of this object image that said paddings
So here I am actually specifying the padding of my image view one for the left 100 for the top 100 for
the right and 100 for the bottom.
And here I actually added this image view OK to this view fully per object.
OK.
So we have this it can say this content underlined made that example.
Here you have this view flipper.
And here we want to actually look at this image use that we actually create throughout this for loop.
OK.
Inside these for loop of you we want to actually add these images to the flipper.
OK so now I find Let's actually create another method here.
So I'm just gonna paste in some lines of code here 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.
Here I actually created another Meffert.
And as you can see the axis of this method is private the return type of this method is void and the
name of this method is let's add the images to the view animator.
And as you can see here inside this content underlined that example you have this of your animator here.
OK.
So if you want to actually add the images to the view animator at this time.
OK.
So as you can see this mirror that she accepts an argument of type you animator and the name of this
argument is your animator.
And inside is for loop as you can see here.
First the first on inside the prentices of this world I created of Oleate but of type integer and the
name of this value is indexed and I assigned the value zero to this value.
And here I specify the condition of which determines how many times this loop is going to be executed.
So until the value of the index variable is less than the value of the length of binary images at 8
that is inside of this animal class then this loop is going to be executed.
And here I actually specified that after each execution of this for a loop the value of this index variable
is going to be incremented by 1.
An insight is for a loop.
As you can see here we have these lines of code.
So here first of all I created actually an object of type image view and here for the constructor of
this image we actually passed the context.
So the context is the name of this class main activity that this.
OK.
And here I actually want to set an image to our image view so image that set image resource.
OK.
So we've got to actually assign an image from the resources of our project.
OK.
So that image resource animal that animal images some index.
OK so it's going actually assigned a specific image to our image view.
And here as you can see we have this let's lay out palms for image view image view so here we called
this method.
As you can see literally as perhaps for imagery.
And as you can see here inside is our content underline minute.
They smell.
We have this of your animator.
Insight is linearly tickle OK.
So we are allowed to actually use this method.
This of let's lay out problems for you here for these of you animator.
OK.
Because our Actually our images are going to be inside linearly out.
OK.
So as you can see inside this method here I actually used linearly with that lay out palms.
OK.
So hopefully that makes sense.
And here I actually set the padding for my image view 100 for the left 100 for the top 100 for the right
and 100 for the bottom.
And here I want to actually add the images that they actually create inside this loop to this view animator.
OK.
So now I mean this actually create another Meffert inside this class.
So here I am I just get a pasting sometimes.
Sometimes I've got here and then I'm going to explain to you what's going on here.
So as you can see here are these are the lines of code that they actually pasted here.
And as you can see that the axis modifier of this method is private the return type of this method is
void and the name of this Moffit is used animation for Flipper.
OK.
So as you can see here inside these emulator these are actually application them all.
And here are these images are actually the inside of you flipper as you can see here.
OK.
And here I want to actually show you some animation effects on these images.
So here are these methods I should accept an argument of type if you flipper as you can see and hear
inside the Smurfette.
First of all I actually specified a set in animation and in animation.
So then they use that clicks for example clicks on this next spot in here as you can see here this animation
in fact.
OK we can see that this late in this late in left animation actually takes place here.
As you can see click click here as you can see this loading up lift animation.
So when the user clicks on this image and when the image is going to be disappear.
From this screen.
This actually this piece of code is going to be executed view Flipper's that set out animation.
OK animation you tell us that animation main activity that is.
So first of all we need to actually specify the context as you can see here.
And then we need to specify the specific type of animation that we want to use on our images.
So when the user clicks on this next button here as you can see at this set in animation takes place
as you can see in animation.
And then when they use it actually clicks on the next button and when the image is going to be disappears
from the screen.
This set out animation actually is going to be executed.
OK animation you tell us that animation main activity that this is this is the context.
And here this is the type of animation that I want to be.
I want I wanted to be executed on this image and use it when the image is going to be disappears from
the screen.
OK.
So now as you can see of the image is going to be disappeared from the screen.
This piece of code here is going to be executed.
OK.
And now this is the type of animation that we want to use.
And these are Andi's of Flipper.
OK.
What you want to actually use another type of animation on this of your animator.
OK.
So here I just need to create another fit for that view animator inside this main activity class.
So here I'm just going to paste in some lines of code here and then I'm going to explain to you what's
going on here.
So as you can see here this is them after they actually paste that here.
And as you can see that the axis modifier of this Meffert is private.
The return type of this if it is void.
And as you can see here the name of this method is used animation for view animator as you can see here.
OK.
And this move it actually accepts an argument of type if you animator.
And here as you can see I use I specified the animation setting animation.
So when the user clicks on this next button as you can see here now we can see that this type of animation
is going to be is going to take place here on this image as you can see.
And with that are that and in that fade in as you can see here and now Aravinda image is going to be
disappeared from the screen as you can see this piece of got here is going to be executed.
And Royte that are that and that fade out.
OK so our image is going to be faded out as you can see here.
So hopefully that makes sense.