Hi everyone in this story I want to let you know that this class main activity must actually implement
the view switches that view factory interface.
So after implementing this view that unclick listener interface put a comma and then to step in here
views to share that view factor interface.
So when you actually implement this interface it's going to actually show you an error and it's gonna
tell you that we must actually implement the make view method.
So let's actually go.
And let me show you the view of it here.
So here it is actually they make fumar of it.
So make sure that you are actually inside the curly braces of the main activity class here and implement
this.
Make room for it inside your class.
So this made me make room if it is actually necessary if you want to actually use the View switcher
and if you want to use the animation effects that we are looking for.
So inside the curly braces of this make you view Mefford we must create an image view here.
So Image view in issues of this is we are actually creating a variable of that image view here.
And here you are creating a new object of type image view in code.
Right.
So we must actually pass the context here.
Main activity that this and we're going to specify a scale type of the image you use so image view that
set state type image view does Kate hope that fits that fit x and y so it can actually fit the entire
actually x space and the entire white space.
And here in line number two hundred and twenty three if you are specifying depth and the height of the
image view.
So Image view that sets lay out perhaps new imagery to so because you're going to have an image view
inside our image switcher so we're going to use image switcher in order to show our images to the user
right.
So this image is going to be a shell that is going to hold images.
So we must actually specify the first vet and the height.
So new image other.
So this is going to be the pattern about image view right that left perhaps.
And here for the video I passed the value of 1000.
And for the for their height I passed the value 1000 if you want.
You can actually change these values.
And finally we must return the image view from the Smurfette because the return type of this method
is value.
An image of you is actually a subclass of view.
Right.
So it is OK to pass to actually turn image view because image view is our view.
The reason is our relationship between image and real.
So that's it.
In the next tutorial I can actually show you how we can actually use the Mitsui shirt to show the images
to the user.
Thank you very much for watching and I'll see you the next tutorial.