1
00:00:00,570 --> 00:00:05,280
And here as you can see again I gave a key to this checkbox preference.

2
00:00:05,340 --> 00:00:09,540
So the key is going to be checkbox Front number two text one.

3
00:00:09,750 --> 00:00:13,680
So as you can see here in our project structure I have a free Faunce.

4
00:00:13,860 --> 00:00:21,710
So I created free checkbox preferences for free for all of these fonts that I have in my assets folder.

5
00:00:21,840 --> 00:00:23,600
Inside these forms directory.

6
00:00:23,850 --> 00:00:25,420
The first one is for this chunk.

7
00:00:25,450 --> 00:00:27,210
Five Auty of font.

8
00:00:27,270 --> 00:00:32,020
And the second one is is going to be for this Fauntleroy Blount that PTF font.

9
00:00:32,190 --> 00:00:38,700
And the first one tick tick box preference is going to be for this wunderbar the more that you have.

10
00:00:38,700 --> 00:00:41,560
So let's go back to our preferences underlined for that example.

11
00:00:41,580 --> 00:00:49,680
So here I have this checkbox preference and the key is going to be checkbox font number to text 1.

12
00:00:49,920 --> 00:00:52,530
So this is going to be the font for our text.

13
00:00:52,530 --> 00:00:54,600
One phone number two right.

14
00:00:54,660 --> 00:00:57,170
I have this font here font literally Brown.

15
00:00:57,870 --> 00:01:04,640
And now I gave a title to this checkbox preference that the title is going to be the name of the font.

16
00:01:04,740 --> 00:01:10,130
Fauntleroy Brown and the Summary The description is going to be this is phone number two.

17
00:01:10,440 --> 00:01:11,130
OK.

18
00:01:11,490 --> 00:01:16,820
And the default value is going to be the phone the name of the phone itself in the double quotes Fauntleroy

19
00:01:16,830 --> 00:01:25,110
Brown that data TGF And as you can see here I am actually ending artistic experience by putting this

20
00:01:25,650 --> 00:01:28,550
closing tag here checkbox preference.

21
00:01:28,560 --> 00:01:29,250
OK.

22
00:01:29,700 --> 00:01:36,380
So here again I have another checkbox preference for this first format that she is going to be checkbox

23
00:01:36,620 --> 00:01:37,110
for.

24
00:01:37,160 --> 00:01:39,610
Number of free text 1.

25
00:01:39,750 --> 00:01:47,430
Ok phone number free for the text 1 are actually gave a wrong name to this of the first form the name

26
00:01:47,430 --> 00:01:49,780
of the first phone is wunderbar.

27
00:01:49,860 --> 00:01:51,750
Space them all that what you have.

28
00:01:51,870 --> 00:01:53,140
So this is run OK.

29
00:01:53,310 --> 00:02:00,750
So I need to actually delete this name here for the title and I need to actually put the same name that

30
00:02:00,780 --> 00:02:04,150
I have here for this front one there.

31
00:02:04,890 --> 00:02:05,290
OK.

32
00:02:05,320 --> 00:02:07,370
One dead body.

33
00:02:07,600 --> 00:02:09,730
Space them all.

34
00:02:10,270 --> 00:02:10,730
OK.

35
00:02:10,840 --> 00:02:12,260
That's all.

36
00:02:12,460 --> 00:02:15,510
So now this is the right name for this font.

37
00:02:15,840 --> 00:02:16,520
OK.

38
00:02:16,830 --> 00:02:19,690
And again I have this summary that is phone number free.

39
00:02:19,710 --> 00:02:22,480
And again as you can see I have this default value right.

40
00:02:22,620 --> 00:02:26,360
So as you can see here I put this Auty here.

41
00:02:26,640 --> 00:02:28,420
It's not necessary to put this all to you.

42
00:02:28,440 --> 00:02:31,910
This is just the titel delete this OTFE here.

43
00:02:32,040 --> 00:02:32,640
OK.

44
00:02:32,940 --> 00:02:37,500
So now for the default value again I have this wrong value here.

45
00:02:37,500 --> 00:02:37,890
OK.

46
00:02:37,980 --> 00:02:45,100
So this value is must be the same as these are to name here wunderbar spaced them more that what you

47
00:02:45,110 --> 00:02:45,230
have.

48
00:02:45,240 --> 00:02:49,760
So again I'm going to type in wunderbar wonder but.

49
00:02:50,150 --> 00:02:50,540
OK.

50
00:02:50,550 --> 00:02:54,970
Space them all that OTTF.

51
00:02:55,200 --> 00:02:57,210
OK so this is going to be the default value.

52
00:02:57,210 --> 00:02:58,930
So this is really important.

53
00:02:59,010 --> 00:03:04,530
They must be the same as the name of this phone here and here as you can see this is just a title in

54
00:03:04,530 --> 00:03:10,380
order to let the user know what is going to be the name of the actual type that they want to use.

55
00:03:10,380 --> 00:03:19,270
So this is very important that you use that is actually the best name the right name for your Fontenay.

56
00:03:19,290 --> 00:03:19,920
OK.

57
00:03:20,220 --> 00:03:26,970
And here I am actually closing this preference this checkbox preference here by putting disclosing tack

58
00:03:27,000 --> 00:03:33,870
here as you can see and now again inside these preferences Underland find examine as you can see I have

59
00:03:33,870 --> 00:03:39,640
this preference category so I actually created this category for text number one.

60
00:03:39,870 --> 00:03:46,080
And these are going to be the checkboxes for text number one in order to let the user select a specific

61
00:03:46,080 --> 00:03:49,960
font for text number one that you can see on this emulator for this.

62
00:03:50,040 --> 00:03:51,030
This is text number one.

63
00:03:51,030 --> 00:03:51,640
Right.

64
00:03:51,960 --> 00:03:55,920
And here as you can see I have this list preference.

65
00:03:55,920 --> 00:03:57,060
So what is this.

66
00:03:57,420 --> 00:04:03,390
This list proofread this is going to show the user some radio buttons in order to let the user choose

67
00:04:03,390 --> 00:04:10,290
one of the options in order to specify the size of the text that they want to actually change.

68
00:04:10,290 --> 00:04:17,520
So here as you can see I have this list of friends I opened this task list preference and I gave a key

69
00:04:17,580 --> 00:04:18,780
to this list preference.

70
00:04:18,780 --> 00:04:22,770
The key is font underline size underline text 1.

71
00:04:22,830 --> 00:04:30,180
So remember that I told you always for your key names you just capitalized your key names.

72
00:04:30,180 --> 00:04:31,380
This is really important.

73
00:04:31,440 --> 00:04:35,600
And here as you can see I have this title here.

74
00:04:35,820 --> 00:04:42,360
The title is specify the size of your fonts for text view one as you can see here.

75
00:04:42,420 --> 00:04:49,560
Here I want to actually let the user know that I want to actually specify the size of the phones so

76
00:04:49,560 --> 00:04:51,150
that they know what to do.

77
00:04:51,150 --> 00:04:53,920
This is the title for this list preference.

78
00:04:53,940 --> 00:04:59,320
So remember this preference is going to actually show the user a list of radio buttons.

79
00:04:59,400 --> 00:05:03,560
So the user can only choose one of the two options.

80
00:05:03,580 --> 00:05:09,760
One of the radio buttons and then accordingly change the size of the text view that they want to change.

81
00:05:09,760 --> 00:05:15,940
So for this specific case we want to change the size of the text one.

82
00:05:15,990 --> 00:05:16,360
OK.

83
00:05:16,360 --> 00:05:21,910
We hope we are actually inside this preference category for this takes text number of settings as you

84
00:05:21,910 --> 00:05:22,770
can see here.

85
00:05:22,780 --> 00:05:26,470
So inside this preference category I have this list preference.

86
00:05:26,530 --> 00:05:29,970
The key is font size one font size takes one.

87
00:05:30,010 --> 00:05:35,250
The title is specified the size of your fonts for text you want.

88
00:05:35,410 --> 00:05:36,050
OK.

89
00:05:36,340 --> 00:05:39,890
And the dialog title is choose one of these sizes.

90
00:05:39,910 --> 00:05:46,000
So here it is going to be the title of the dialog that is going to be shown to the user so that they

91
00:05:46,000 --> 00:05:52,560
can see that it says choose one of these sizes and we have these entries and entry values.

92
00:05:52,810 --> 00:05:58,720
So these entries and three values are going to be the numbers that they use that can actually choose

93
00:05:58,720 --> 00:06:01,480
for the size of their text views.

94
00:06:01,510 --> 00:06:04,550
So in a minute I'll talk about that here.

95
00:06:04,810 --> 00:06:08,850
And here I have this default value the default value is 10.

96
00:06:08,860 --> 00:06:12,400
So the default text size value is going to be 10.

97
00:06:12,400 --> 00:06:17,290
So this is really important that actually provide a default value so when the user doesn't actually

98
00:06:17,500 --> 00:06:24,400
want to select any of the radio buttons or doesn't want to actually choose one of the text sizes the

99
00:06:24,400 --> 00:06:25,920
default value is going to be 10.

100
00:06:26,110 --> 00:06:29,700
So what are these in threes and three values.

101
00:06:29,770 --> 00:06:36,760
So I have these entries as you can see here are these entries at sign Arey slash font sizes.

102
00:06:36,820 --> 00:06:42,940
And here I have these three values at sign Aure slash font size font sizes values.

103
00:06:43,000 --> 00:06:50,360
So this at site Aure actually first try this treaty actually exemplified that we have in our project.

104
00:06:50,440 --> 00:06:58,990
So what is that exemplified that XML file is inside our values directory here inside our project structure

105
00:06:59,050 --> 00:07:03,460
values directory inside these strings that XML file here.

106
00:07:03,490 --> 00:07:04,330
So this at St..

107
00:07:04,340 --> 00:07:08,860
Ara refers to this isn't exemplified strings that example.

108
00:07:09,100 --> 00:07:11,540
So let's double click on these strings that XML here.

109
00:07:11,560 --> 00:07:18,820
And as you can see here I have these values here resources and I have this value stream name app name.

110
00:07:18,820 --> 00:07:23,610
So this is going to be to specify the name of our actually application.

111
00:07:23,910 --> 00:07:30,990
And as you can see I have this XML value so now I won't actually paste in some lines of code here inside

112
00:07:31,000 --> 00:07:36,260
these resources tag here and then I'm going to explain to you what's going on here.

113
00:07:36,280 --> 00:07:43,170
So as you can see here inside these strings that XML file here I actually pasted these lines of code.

114
00:07:43,210 --> 00:07:45,250
So now I'm going to explain to you what's going on here.

115
00:07:45,250 --> 00:07:52,300
First of all as you can see I have this strange Arey tag here as you can see and the name of this tag

116
00:07:52,330 --> 00:07:54,470
is font sizes.

117
00:07:54,580 --> 00:08:00,850
So this is going to be the font size is that the users can use in order to change the size of the phones

118
00:08:00,910 --> 00:08:02,080
of their views.

119
00:08:02,110 --> 00:08:02,890
Right.

120
00:08:03,250 --> 00:08:06,770
And I have these items inside the string at ATAC.

121
00:08:07,030 --> 00:08:07,610
OK.

122
00:08:07,810 --> 00:08:11,600
The first item is for example 20 DPI.

123
00:08:11,830 --> 00:08:21,880
The second item is 40 DPI as you can see here for 45 DP 50 DP 55 DP 60 DP 65 DP and 70 DP.

124
00:08:21,880 --> 00:08:24,990
And here I am closing this string at ATAC here.

125
00:08:25,000 --> 00:08:31,150
This is very important that you actually pro-white are a strange strange R8.

126
00:08:31,240 --> 00:08:31,650
OK.

127
00:08:31,720 --> 00:08:38,980
In order to put your items for these values because I want to show to the user a dialog and let them

128
00:08:38,980 --> 00:08:44,920
actually choose one of the radio buttons in order to specify for example a text size for example for

129
00:08:44,920 --> 00:08:47,380
25 dpi or 55 DP.

130
00:08:47,450 --> 00:08:48,100
OK.

131
00:08:48,520 --> 00:08:52,350
And here as you can see I have these streambed at a again here.

132
00:08:52,420 --> 00:08:54,030
I have to string arrows here.

133
00:08:54,190 --> 00:09:02,010
Right staring at it and the name is font sizes values the name of this first string and it is font sizes

134
00:09:02,530 --> 00:09:04,800
and the name of the second string at a.

135
00:09:04,810 --> 00:09:08,230
Here is font size as values.

136
00:09:08,440 --> 00:09:10,440
And again I have these items.

137
00:09:10,600 --> 00:09:14,820
And as you can see I only have these values without the DP here.

138
00:09:15,010 --> 00:09:15,830
OK.

139
00:09:16,090 --> 00:09:20,670
I just put these values number 25 to 40 45 50 55.

140
00:09:20,800 --> 00:09:26,820
So now of an add on our application you'll understand more why we actually created these string address

141
00:09:26,830 --> 00:09:27,450
here.

142
00:09:27,670 --> 00:09:28,100
OK.

143
00:09:28,150 --> 00:09:35,110
For now just know that you need to actually put this here for 25 DP or 40 DP in order to let the user

144
00:09:35,110 --> 00:09:41,050
to select one of these values but the values that are that are going to be shown to the user are going

145
00:09:41,050 --> 00:09:43,000
to be these values.

146
00:09:43,000 --> 00:09:43,370
OK.

147
00:09:43,480 --> 00:09:48,010
So now when then I don't project you can understand what's going on here.

148
00:09:48,040 --> 00:09:51,020
So let's go back to our preferences on the line firelit example.

149
00:09:51,110 --> 00:09:53,840
And now as you can see the arrows are gone at sign.

150
00:09:53,890 --> 00:09:58,990
R.A. size is an added form sizers values isn't going to be the font sizes values.

151
00:09:58,990 --> 00:10:02,190
OK you can put your own font sizes here.

152
00:10:02,200 --> 00:10:10,030
For example number 108 200 300 or whatever values for it you just need to add more items here and here.

153
00:10:10,090 --> 00:10:11,400
OK this is very important.

154
00:10:12,940 --> 00:10:14,000
And now.

155
00:10:14,030 --> 00:10:20,890
So now that I have these values this preference category for my tastes you're number one.

156
00:10:21,020 --> 00:10:27,810
That's actually our go to our main activity that justified here and now let's actually create an intent.

157
00:10:27,860 --> 00:10:33,560
So I want to create an intent and I want to move from this activity to the preferences activity but

158
00:10:33,560 --> 00:10:36,090
we don't have the Prevx friend says activity yet.

159
00:10:36,170 --> 00:10:40,170
So we need to create that preferences activity in our project.

