1
00:00:00,800 --> 00:00:06,730
Hi everyone in this story I want to let you know that this class main activity must actually implement

2
00:00:06,820 --> 00:00:09,850
the view switches that view factory interface.

3
00:00:10,120 --> 00:00:16,390
So after implementing this view that unclick listener interface put a comma and then to step in here

4
00:00:16,390 --> 00:00:19,120
views to share that view factor interface.

5
00:00:19,390 --> 00:00:24,100
So when you actually implement this interface it's going to actually show you an error and it's gonna

6
00:00:24,190 --> 00:00:28,770
tell you that we must actually implement the make view method.

7
00:00:29,020 --> 00:00:30,420
So let's actually go.

8
00:00:30,440 --> 00:00:32,860
And let me show you the view of it here.

9
00:00:33,040 --> 00:00:35,960
So here it is actually they make fumar of it.

10
00:00:36,010 --> 00:00:42,310
So make sure that you are actually inside the curly braces of the main activity class here and implement

11
00:00:42,460 --> 00:00:42,710
this.

12
00:00:42,700 --> 00:00:44,930
Make room for it inside your class.

13
00:00:45,130 --> 00:00:50,700
So this made me make room if it is actually necessary if you want to actually use the View switcher

14
00:00:51,040 --> 00:00:54,870
and if you want to use the animation effects that we are looking for.

15
00:00:55,210 --> 00:01:00,840
So inside the curly braces of this make you view Mefford we must create an image view here.

16
00:01:00,880 --> 00:01:05,770
So Image view in issues of this is we are actually creating a variable of that image view here.

17
00:01:05,770 --> 00:01:09,620
And here you are creating a new object of type image view in code.

18
00:01:09,640 --> 00:01:10,330
Right.

19
00:01:10,390 --> 00:01:12,870
So we must actually pass the context here.

20
00:01:12,880 --> 00:01:19,640
Main activity that this and we're going to specify a scale type of the image you use so image view that

21
00:01:19,660 --> 00:01:26,560
set state type image view does Kate hope that fits that fit x and y so it can actually fit the entire

22
00:01:26,740 --> 00:01:31,810
actually x space and the entire white space.

23
00:01:31,870 --> 00:01:37,570
And here in line number two hundred and twenty three if you are specifying depth and the height of the

24
00:01:37,570 --> 00:01:38,330
image view.

25
00:01:38,440 --> 00:01:44,740
So Image view that sets lay out perhaps new imagery to so because you're going to have an image view

26
00:01:44,790 --> 00:01:50,390
inside our image switcher so we're going to use image switcher in order to show our images to the user

27
00:01:50,400 --> 00:01:50,970
right.

28
00:01:51,040 --> 00:01:55,700
So this image is going to be a shell that is going to hold images.

29
00:01:55,870 --> 00:01:59,950
So we must actually specify the first vet and the height.

30
00:01:59,980 --> 00:02:01,370
So new image other.

31
00:02:01,390 --> 00:02:05,420
So this is going to be the pattern about image view right that left perhaps.

32
00:02:05,690 --> 00:02:08,640
And here for the video I passed the value of 1000.

33
00:02:08,660 --> 00:02:12,610
And for the for their height I passed the value 1000 if you want.

34
00:02:12,610 --> 00:02:14,690
You can actually change these values.

35
00:02:14,710 --> 00:02:20,580
And finally we must return the image view from the Smurfette because the return type of this method

36
00:02:20,650 --> 00:02:21,450
is value.

37
00:02:21,670 --> 00:02:24,960
An image of you is actually a subclass of view.

38
00:02:25,150 --> 00:02:25,670
Right.

39
00:02:25,720 --> 00:02:31,340
So it is OK to pass to actually turn image view because image view is our view.

40
00:02:31,340 --> 00:02:35,170
The reason is our relationship between image and real.

41
00:02:35,560 --> 00:02:36,710
So that's it.

42
00:02:36,960 --> 00:02:41,260
In the next tutorial I can actually show you how we can actually use the Mitsui shirt to show the images

43
00:02:41,260 --> 00:02:41,960
to the user.

44
00:02:42,070 --> 00:02:45,040
Thank you very much for watching and I'll see you the next tutorial.

