1
00:00:00,450 --> 00:00:04,380
So as you can see here now our application is running on this emulator.

2
00:00:04,500 --> 00:00:09,420
And now as you can see this text here is the font of this text is already changed.

3
00:00:09,420 --> 00:00:10,080
Why.

4
00:00:10,080 --> 00:00:12,020
Because inside our menu.

5
00:00:12,060 --> 00:00:18,480
And if I click on to sitting here now as you can see here this font here is actually checked the checkbox

6
00:00:18,690 --> 00:00:19,410
of this font.

7
00:00:19,410 --> 00:00:22,300
Chunk 5 is actually checked so it is true.

8
00:00:22,440 --> 00:00:29,670
So now the shirt preferences is going to actually give our application the value and then it's going

9
00:00:29,670 --> 00:00:32,190
to actually put that specific font here.

10
00:00:32,280 --> 00:00:33,130
As you can see here.

11
00:00:33,150 --> 00:00:34,140
Right.

12
00:00:34,140 --> 00:00:36,250
So let's actually click on this menu here.

13
00:00:36,270 --> 00:00:41,100
And then the settings and let's And check this checkbox and this this time it's actually checked this

14
00:00:41,100 --> 00:00:42,600
checkbox here fault.

15
00:00:42,610 --> 00:00:45,410
Leroy Brown OK this is number two.

16
00:00:45,450 --> 00:00:51,660
So if we click on back here now as you can see this is a text number two.

17
00:00:52,060 --> 00:00:52,610
Right.

18
00:00:52,710 --> 00:00:55,170
But here as you can see we have a problem.

19
00:00:55,410 --> 00:00:59,180
So if I actually click on this manual button and then click on settings here.

20
00:00:59,280 --> 00:01:03,030
Now as you can see here these are actually here.

21
00:01:03,030 --> 00:01:05,430
Here is the settings for our text.

22
00:01:05,430 --> 00:01:08,250
One text viewer one text number one settings.

23
00:01:08,400 --> 00:01:10,840
And these are these checkboxes.

24
00:01:11,160 --> 00:01:16,230
And this is these are the radio buttons that are actually related only to the text you one right.

25
00:01:16,560 --> 00:01:22,380
And when I actually click on the settings here and then I actually checked this checkbox default of

26
00:01:22,380 --> 00:01:23,200
the text view.

27
00:01:23,220 --> 00:01:25,860
One should change not this takes you two.

28
00:01:25,890 --> 00:01:27,250
So what's the problem.

29
00:01:27,270 --> 00:01:32,050
The problem is inside but specify the phone for text you want here.

30
00:01:32,060 --> 00:01:33,790
As you can see the problem is here.

31
00:01:33,990 --> 00:01:36,400
The problem is that it does.

32
00:01:36,400 --> 00:01:41,400
Or else if statement here is going to actually set the typeface for TJX the takes.

33
00:01:41,400 --> 00:01:45,820
Number two this is on the top for this must be set under this thing.

34
00:01:45,870 --> 00:01:47,690
It actually takes number one.

35
00:01:48,090 --> 00:01:50,340
And here again we have the same problem.

36
00:01:50,530 --> 00:01:52,170
It takes number one.

37
00:01:52,530 --> 00:01:53,230
OK.

38
00:01:53,550 --> 00:01:54,990
The typeface must be set.

39
00:01:55,020 --> 00:01:57,400
And this is the one that takes you here.

40
00:01:57,410 --> 00:02:05,060
I actually intentionally actually put that photo or other text intentionally.

41
00:02:05,120 --> 00:02:12,400
I actually assigned the typeface for the other takes views to show you that there is a problem that

42
00:02:12,480 --> 00:02:18,410
these settings are holes or actually only related to this text view one.

43
00:02:18,750 --> 00:02:19,430
OK.

44
00:02:19,740 --> 00:02:23,020
And here you need to actually fix this problem.

45
00:02:23,200 --> 00:02:29,430
The Takes number one takes it takes number of on again because these settings are related only to the

46
00:02:29,430 --> 00:02:30,280
takes one.

47
00:02:30,390 --> 00:02:30,930
OK.

48
00:02:31,140 --> 00:02:38,190
So that's why it actually changed the format of the text to text you to right.

49
00:02:38,190 --> 00:02:39,870
So let's run our project again.

50
00:02:39,960 --> 00:02:43,580
So now as you can see our application is again running on the simulator.

51
00:02:43,620 --> 00:02:47,060
And now as you can see the front of the takes you want is changed.

52
00:02:47,070 --> 00:02:52,680
So if I click on this menu button and then the settings and hand as you can see the value of this checkbox

53
00:02:52,980 --> 00:02:53,480
is checked.

54
00:02:53,480 --> 00:02:54,480
So it is true.

55
00:02:54,660 --> 00:03:00,660
And here in our main activity here you can see that the front of the takes of your want is changed.

56
00:03:00,810 --> 00:03:03,350
So let's actually change this form to to another one.

57
00:03:03,350 --> 00:03:06,240
For example this one sort is on Chiquita's.

58
00:03:06,240 --> 00:03:08,850
This one here we need to check this one.

59
00:03:08,970 --> 00:03:15,300
And if I click on back here now you can see it at the front of the takes we want again is changed.

60
00:03:15,330 --> 00:03:17,010
So it's working correctly.

61
00:03:17,160 --> 00:03:17,460
OK.

62
00:03:17,460 --> 00:03:18,940
There is no back here.

63
00:03:19,790 --> 00:03:24,790
And now let's actually put some other settings for the other takes views.

64
00:03:24,810 --> 00:03:28,850
So this is that text one text number one settings.

65
00:03:28,860 --> 00:03:33,130
Now you need to put text numbers to settings and text number three settings right.

66
00:03:33,150 --> 00:03:38,980
So let's go back to our Actually preferences underlined for just that example here.

67
00:03:39,210 --> 00:03:44,760
After this preference category here as you can see this is the preference category for text number one

68
00:03:44,760 --> 00:03:46,170
settings right.

69
00:03:46,200 --> 00:03:52,980
So after this article is after the ending tag of this and skeptically here as you can see this is the

70
00:03:52,980 --> 00:03:54,840
ending tag here.

71
00:03:54,930 --> 00:03:57,750
Here we need to actually say this preference screen.

72
00:03:57,780 --> 00:04:00,370
Now we can actually put other preference categories.

73
00:04:00,540 --> 00:04:05,190
So I'm going to paste in some more lines of code here and then I'm going to explain to you what's going

74
00:04:05,190 --> 00:04:06,190
on here.

75
00:04:06,210 --> 00:04:12,170
So as you can see here these are the lines of code that I actually pasted here.

76
00:04:12,460 --> 00:04:18,530
I actually pasted another pretty friends category here after the ending tag of this preference.

77
00:04:18,540 --> 00:04:22,310
Catechetical to here for this takes a number of settings.

78
00:04:22,470 --> 00:04:28,780
I have another preference category here so Pyfrom skeptically Andray title Andrle title.

79
00:04:28,820 --> 00:04:32,830
And as you can see the title is Text Number two settings here.

80
00:04:33,220 --> 00:04:37,180
And again I have free checkboxes here checkbox preference.

81
00:04:37,440 --> 00:04:45,020
As you can see here and now as you can see the first one is the key of the first one is checkbox.

82
00:04:45,030 --> 00:04:47,190
Number one takes two.

83
00:04:47,220 --> 00:04:49,220
This is very important actually.

84
00:04:49,350 --> 00:04:55,460
I need to actually put a unique key for this checkbox checkbox front number one for text.

85
00:04:55,470 --> 00:05:02,500
So these are the settings for text view to four that's actually emulator for this text view here.

86
00:05:02,510 --> 00:05:10,490
Here I am actually putting the settings for this text view so checkbox for number one takes to the title

87
00:05:10,490 --> 00:05:11,380
is 25.

88
00:05:11,390 --> 00:05:17,740
Again the summary is this is one number of on and the default value is this to chunk that OTTF.

89
00:05:17,840 --> 00:05:18,380
OK.

90
00:05:18,380 --> 00:05:25,130
And here I am actually closing this checkbox preference task here and here again I have another checkbox

91
00:05:25,140 --> 00:05:28,450
preference and again the key keys checkbox.

92
00:05:28,460 --> 00:05:30,660
Number two for text 2.

93
00:05:30,830 --> 00:05:37,670
And as you can see at this KEAYS checkbox font Number two the second form for takes two and the title

94
00:05:37,670 --> 00:05:43,610
is foreign to Leroy Brown and the summary is this is format number two and the default value is the

95
00:05:43,610 --> 00:05:44,520
name of the font.

96
00:05:44,570 --> 00:05:45,170
OK.

97
00:05:45,470 --> 00:05:49,270
And here I am actually closing this checkbox preference tag.

98
00:05:49,430 --> 00:05:53,470
And here I have another checkbox preference as you can see here.

99
00:05:53,870 --> 00:06:00,730
Again the key is checkbox form to number three takes two to type that the title is actually wrong.

100
00:06:00,890 --> 00:06:07,030
As you can see here need to actually put the name of are actually the name of our font.

101
00:06:07,040 --> 00:06:13,570
So as you can see here in our project structure the name of our second name of our first format is of

102
00:06:13,790 --> 00:06:15,290
Vondelpark.

103
00:06:15,750 --> 00:06:20,870
Wonder So let me ask you to change the name to wander.

104
00:06:21,100 --> 00:06:24,480
But space them all.

105
00:06:24,840 --> 00:06:28,850
OK so this is the title of our check box preference as you can see here.

106
00:06:28,930 --> 00:06:30,970
The summary is this is from the number of free.

107
00:06:30,990 --> 00:06:41,080
And again we need to change this default value to wander bar space them all that or T.F. And as you

108
00:06:41,080 --> 00:06:47,620
can see here we are actually closing this checkbox pretty friends here with this the ending tag here

109
00:06:47,650 --> 00:06:48,670
as you can see.

110
00:06:48,940 --> 00:06:55,720
And we have another list pretty friends as you can see here for specifying the text size of our takes

111
00:06:55,790 --> 00:07:02,590
you to again we have this key font size takes to title specify the size of your phone for text view

112
00:07:02,590 --> 00:07:04,810
to the dialog title.

113
00:07:04,810 --> 00:07:11,290
Choose one of these types sizes and as you can see we have again these entries font sizes and font sizes

114
00:07:11,290 --> 00:07:12,210
values.

115
00:07:12,460 --> 00:07:15,890
And we have this default value in Habberton right.

116
00:07:15,940 --> 00:07:19,980
So now as you can see this is the ending tag of this lispro France.

117
00:07:20,200 --> 00:07:24,880
And here as you can see we are ending this preference category four takes the butu.

118
00:07:24,880 --> 00:07:26,500
Ok text number two settings.

119
00:07:26,740 --> 00:07:28,770
So let's go back to our main activity that will file.

120
00:07:28,780 --> 00:07:34,850
Here again if you need to create another Smurfette for text view to specify the font for text you too.

121
00:07:34,990 --> 00:07:40,930
So after the ending curly brace of the Smurfette this specify the font to Fortescue one Mefford we need

122
00:07:40,930 --> 00:07:42,490
to actually add the second Meffert.

123
00:07:42,490 --> 00:07:47,420
So here I'm going to paste some of it and then I'm going to explain to you what's going on here.

124
00:07:47,560 --> 00:07:54,790
So as you can see here I actually pasted this method here now and here as you can see the Axis modifier

125
00:07:54,800 --> 00:07:56,470
of this Meffert is public.

126
00:07:56,620 --> 00:08:02,650
The return type of this method is void and the name of this left is specified the font for text.

127
00:08:02,650 --> 00:08:04,110
Butu right.

128
00:08:04,180 --> 00:08:09,820
And inside the Smurfit again if you have a free boolean variables as you can see here the first one

129
00:08:09,820 --> 00:08:13,310
is Phone number one for Takes Two value.

130
00:08:13,570 --> 00:08:20,500
The second one is found Number two for text to value and the first one the first value value but the

131
00:08:20,500 --> 00:08:24,940
name of the first variable is found Number three four takes two value right.

132
00:08:24,950 --> 00:08:27,930
We are here we are specifying the front for our sake.

133
00:08:27,940 --> 00:08:29,510
Second takes you as you can see here.

134
00:08:29,530 --> 00:08:31,990
This takes this it takes number to write.

135
00:08:32,350 --> 00:08:39,490
And here I am actually instantiating these boolean variables for a number of n for Takes Two value assignment

136
00:08:39,490 --> 00:08:40,410
operator.

137
00:08:40,420 --> 00:08:46,680
So here I want to actually get the shirt preferences object in order to access the value of this.

138
00:08:46,690 --> 00:08:50,210
For example let's go inside these preferences and then follow the example.

139
00:08:50,800 --> 00:08:54,940
I want to access the values of this preference category it takes numbers number two settings.

140
00:08:54,940 --> 00:08:58,100
For example this checkbox autistic Polk's autistic works.

141
00:08:58,150 --> 00:08:59,970
So is this main activity that I will fight here.

142
00:08:59,980 --> 00:09:04,540
I referred to the name of this object shared preferences that gets Boullion.

143
00:09:04,620 --> 00:09:06,610
I want to access the boolean value.

144
00:09:06,610 --> 00:09:13,840
So this is going to be the key for our actually for our checkbox inside these preferences Underland

145
00:09:13,840 --> 00:09:18,340
Follette example here as you can see we have this checkbox phone number one takes two.

146
00:09:18,490 --> 00:09:21,180
So these are inside our main activity that are filed.

147
00:09:21,220 --> 00:09:26,730
I put this key checkbox for number one takes two and this is going to be the false value of c..

148
00:09:26,740 --> 00:09:30,690
So here I want to actually get to that boolean value right again.

149
00:09:30,730 --> 00:09:36,910
Number two for text to value share preferences that get boolean checkbox front.

150
00:09:36,910 --> 00:09:39,300
Number two takes two.

151
00:09:39,490 --> 00:09:42,650
And this is going to be the false value for the default.

152
00:09:43,150 --> 00:09:48,470
And here as you can see for the number three four takes two value shared preferences.

153
00:09:48,480 --> 00:09:52,730
Again I want to access that values that is open or our emulator.

154
00:09:52,750 --> 00:09:58,690
And if I click on settings here you can see that for example if we are inside the text number two settings

155
00:09:59,020 --> 00:10:05,320
if they use that for example checks this checkbox or this checkbox is going to actually give us the

156
00:10:05,440 --> 00:10:06,580
corresponding value.

157
00:10:06,610 --> 00:10:12,100
OK share preferences that gets boolean checks put font checkbox for the number of free takes two.

158
00:10:12,370 --> 00:10:14,640
And here is the false value right.

159
00:10:14,700 --> 00:10:18,490
And here as you can see again we have the same if statements.

160
00:10:18,520 --> 00:10:25,030
So if a phone number of one for text to value as you can see here if this boolean value value but is

161
00:10:25,030 --> 00:10:29,660
true if the if the value of this boolean value is true that's the meaning of this statement.

162
00:10:29,870 --> 00:10:33,520
If false number one for takes to value is true.

163
00:10:33,520 --> 00:10:35,230
Then execute this line of code here.

164
00:10:35,350 --> 00:10:39,870
So here we need to change the name to tier 60.

165
00:10:39,950 --> 00:10:41,530
The Takes number one.

166
00:10:41,530 --> 00:10:49,190
So here is again CTX the text number of that set pipe face phone number one as you can see here and

167
00:10:49,190 --> 00:10:52,810
here I have an ELSE IF statement as you can see here.

168
00:10:53,150 --> 00:10:53,750
Else if.

169
00:10:53,760 --> 00:10:59,190
Phone number two for text to value is true if the value of this boolean variable is true.

170
00:10:59,210 --> 00:11:02,740
As you can see here then it's going to execute this line of code here.

171
00:11:02,750 --> 00:11:09,540
So here we need to change this name to TXI the text number to that said typeface fonts number two.

172
00:11:09,860 --> 00:11:15,370
And if this condition here evaluates to false then it's going to be secure this ELSE IF statement else.

173
00:11:15,410 --> 00:11:21,380
If phone number three four takes to value is true then it's going to secure this line of code here.

174
00:11:21,380 --> 00:11:27,510
So here we need to change this name to the text number three that typeface phone number free.

175
00:11:27,530 --> 00:11:28,790
Right.

176
00:11:28,790 --> 00:11:31,710
So hopefully that makes sense.

177
00:11:31,790 --> 00:11:34,010
And now let's actually run our project.

178
00:11:34,040 --> 00:11:38,530
So now we need to actually call this Meffert from this are is your Meffert here.

179
00:11:38,750 --> 00:11:44,270
So he said our resume effort after calling these specify the font for text view of on my feet here I

180
00:11:44,270 --> 00:11:49,030
can't just call this second one specify the font for text butu.

181
00:11:49,520 --> 00:11:52,330
And now let's run our project and see what happens.

