1
00:00:00,290 --> 00:00:06,260
Hi everyone in this tutorial I want to talk about using images in our tap host.

2
00:00:06,450 --> 00:00:14,280
So as you can see here I already talked about using a tap host in your projects and are not actually

3
00:00:14,280 --> 00:00:22,230
app 46 project I told you how to use Paphos but I didn't tell you how to actually use images instead

4
00:00:22,230 --> 00:00:26,060
of text in order to use for your taps.

5
00:00:26,150 --> 00:00:26,800
OK.

6
00:00:27,030 --> 00:00:34,940
So here in your main activity class where you actually specify the indicator for your speed.

7
00:00:34,950 --> 00:00:41,520
For example here I am actually creating a top host object and then here I am setting setting up this

8
00:00:41,520 --> 00:00:43,990
tap host get local activity manager.

9
00:00:44,340 --> 00:00:47,120
And here I want to specify the tap host one.

10
00:00:47,130 --> 00:00:48,210
OK tap one.

11
00:00:48,470 --> 00:00:50,390
So tap tap tap spek.

12
00:00:50,400 --> 00:00:58,350
So here I am creating an object of type speech tab space as you can see here and here I am said specifying

13
00:00:58,350 --> 00:01:05,130
that tab host does not have spirit 1 so this value here in say that inside the double quotes is the

14
00:01:05,130 --> 00:01:05,500
tack.

15
00:01:05,520 --> 00:01:05,950
OK.

16
00:01:06,000 --> 00:01:14,130
But here are the most important line of code here is line 26 where I am actually specifying the indicator

17
00:01:14,250 --> 00:01:15,360
for my spec.

18
00:01:15,600 --> 00:01:19,250
So spec that set indicator tap 1.

19
00:01:19,500 --> 00:01:22,160
So let me you to delete this piece of code here.

20
00:01:22,500 --> 00:01:27,220
And again I can just type in that set indicator.

21
00:01:27,360 --> 00:01:30,230
So as you can see here we have free kinds of methods.

22
00:01:30,300 --> 00:01:39,030
The first one actually accepts a value of type chart sequence again which is actually the same as string

23
00:01:39,540 --> 00:01:46,310
and a value of type triable where I can actually specify an image inside my triable folder.

24
00:01:46,500 --> 00:01:53,440
And the second method is set indicator as you can see this method actually accepts only one argument.

25
00:01:53,610 --> 00:02:03,900
And here we can specify the title of our tap and this if it actually accepts only one argument and the

26
00:02:03,900 --> 00:02:06,470
data type of the argument is view.

27
00:02:06,660 --> 00:02:11,930
But here we want to actually use this if it's set indicator a label an icon.

28
00:02:11,940 --> 00:02:18,870
So if we actually click on these Mefford here and as you can see here now for I want to actually use

29
00:02:18,930 --> 00:02:21,880
images instead of a titles for my tabs.

30
00:02:22,020 --> 00:02:29,490
So for the title I just don't want to use titles so in order for use in actually titel I just need to

31
00:02:29,550 --> 00:02:31,640
assign the value empty stream.

32
00:02:31,680 --> 00:02:34,580
Ok just to double quotes come up.

33
00:02:34,770 --> 00:02:40,560
And for my second argument and here let me actually show you in my project structure inside my triable

34
00:02:40,560 --> 00:02:42,210
folder I have some images.

35
00:02:42,330 --> 00:02:42,990
OK.

36
00:02:43,410 --> 00:02:48,810
So you can actually use these images in your addressable folder bear beard or cat.

37
00:02:49,140 --> 00:02:52,420
And here I can just referred to those images.

38
00:02:52,590 --> 00:03:00,690
So how do I refer to that triable folder image inside my resources so here I can just type in get resources

39
00:03:01,500 --> 00:03:10,550
that get triable as you can see here we have these Misfit's here get triable And here inside it Prentice's

40
00:03:10,590 --> 00:03:12,220
of this get thrown Hebel Meffert.

41
00:03:12,360 --> 00:03:22,050
I can just type in our thoughts triable that bear aren't here at the end of our statement I need to

42
00:03:22,050 --> 00:03:23,860
actually put in a semi-colon.

43
00:03:24,240 --> 00:03:28,220
So now let's actually run our project and see what happens.

44
00:03:28,560 --> 00:03:33,160
So as you can see here now our application is running on this emulator.

45
00:03:33,390 --> 00:03:36,160
And here we can see this image here.

46
00:03:36,270 --> 00:03:37,080
OK.

47
00:03:37,380 --> 00:03:43,270
So now I have to actually specify an image for these two taps tap to and tap free.

48
00:03:43,290 --> 00:03:49,950
So here I can just scroll down and here in this line of code that I am actually specifying the indicator

49
00:03:50,220 --> 00:03:54,880
of this spec I can just delete this text here.

50
00:03:55,230 --> 00:03:58,640
I just need to put in an empty string value comma.

51
00:03:59,100 --> 00:04:09,050
And here I can just type in get resources that get triable and inside the apprentice's of this triable

52
00:04:09,050 --> 00:04:10,520
Meffert get the global Meffert.

53
00:04:10,620 --> 00:04:18,420
I can just type in our DOT ID or that are triable dot chat.

54
00:04:18,980 --> 00:04:23,070
OK so now let's actually run our project again and see what happens.

55
00:04:23,070 --> 00:04:29,730
So now as you can see our application is running on this emulator and here I have this image for my

56
00:04:29,730 --> 00:04:33,790
second tabouli out as you can see here I have image instead of text.

57
00:04:33,810 --> 00:04:34,450
OK.

58
00:04:34,650 --> 00:04:40,680
So it is really important that you actually assign an empty string value here for your first argument

59
00:04:40,680 --> 00:04:42,700
of this set indicator met Meffert.

60
00:04:42,750 --> 00:04:43,270
OK.

61
00:04:43,290 --> 00:04:48,330
If we actually assign a value here and if we run my project now let's see what happens.

62
00:04:48,330 --> 00:04:51,920
So now as you can see our application is running on the simulator.

63
00:04:51,960 --> 00:04:58,520
And here instead of image I can see this value that I assigned for this string value here.

64
00:04:58,530 --> 00:05:00,540
OK for this first argument.

65
00:05:00,600 --> 00:05:05,020
So it is very important that you assign an end an empty string value.

66
00:05:05,040 --> 00:05:10,270
So here again I want to actually specify an image for this to have free.

67
00:05:10,380 --> 00:05:15,230
So here I can just assign an empty string value for this set indicator.

68
00:05:15,720 --> 00:05:16,950
And then comma.

69
00:05:17,310 --> 00:05:34,080
And here again just typing get resources dot get tribal art that I ordered triable dot Chao our thoughts

70
00:05:34,250 --> 00:05:40,920
Roybal dot let me see what images we have here because I have this image so I can just type in bird

71
00:05:42,060 --> 00:05:46,130
and now let's actually done our project here and see what happens.

72
00:05:46,560 --> 00:05:51,880
So now as you can see I have these images here for my Tapps.

73
00:05:51,930 --> 00:05:55,080
I have this image this bird image for my first job.

74
00:05:55,180 --> 00:06:00,400
We have this chat image for my second tab and I have this image for my efforts there.

75
00:06:00,480 --> 00:06:01,080
OK.

76
00:06:01,380 --> 00:06:03,500
So hopefully that makes sense.

77
00:06:03,690 --> 00:06:09,030
And I think that's enough for this tutorial so if you have any questions please put the discussion in

78
00:06:09,030 --> 00:06:12,710
the course and then I do my best to answer all of your questions.

79
00:06:12,720 --> 00:06:15,750
Thank you very much for watching and I'll see you in the next tutorial.

