Add radical help screen content
app/src/main/AndroidManifest.xml
13 | 13 | android:supportsRtl="true" | |
14 | 14 | android:theme="@style/AppTheme"> | |
15 | 15 | <activity android:name=".HelpRadicalActivity" | |
16 | - | android:label="@string/help_topic_radicals" | |
16 | + | android:label="@string/help_title_radicals" | |
17 | 17 | android:parentActivityName=".HelpActivity" | |
18 | 18 | tools:ignore="UnusedAttribute"> | |
19 | 19 | <meta-data | |
… | |||
21 | 21 | android:value=".HelpActivity" /> | |
22 | 22 | </activity> | |
23 | 23 | <activity android:name=".HelpRomajiActivity" | |
24 | - | android:label="@string/help_topic_romaji" | |
24 | + | android:label="@string/help_title_romaji" | |
25 | 25 | android:parentActivityName=".HelpActivity" | |
26 | 26 | tools:ignore="UnusedAttribute"> | |
27 | 27 | <meta-data |
app/src/main/res/layout/activity_help_radical.xml
7 | 7 | <LinearLayout | |
8 | 8 | android:layout_width="match_parent" | |
9 | 9 | android:layout_height="wrap_content" | |
10 | - | android:orientation="vertical"> | |
10 | + | android:orientation="vertical" | |
11 | + | android:padding="8dp"> | |
12 | + | ||
13 | + | <TextView | |
14 | + | android:id="@+id/textView1" | |
15 | + | android:layout_width="match_parent" | |
16 | + | android:layout_height="wrap_content" | |
17 | + | android:textSize="@dimen/subtitle_size" | |
18 | + | android:layout_gravity="center" | |
19 | + | android:textAlignment="center" | |
20 | + | android:text="@string/help_topic_radicals" | |
21 | + | android:layout_marginBottom="16dp" /> | |
22 | + | ||
23 | + | <TextView | |
24 | + | android:id="@+id/textView2" | |
25 | + | android:layout_width="match_parent" | |
26 | + | android:layout_height="wrap_content" | |
27 | + | android:text="@string/help_radical1" | |
28 | + | android:layout_marginBottom="16dp" /> | |
29 | + | ||
30 | + | <TextView | |
31 | + | android:id="@+id/textView3" | |
32 | + | android:layout_width="match_parent" | |
33 | + | android:layout_height="wrap_content" | |
34 | + | android:text="@string/help_radical2" | |
35 | + | android:layout_marginBottom="16dp" /> | |
36 | + | ||
37 | + | <TextView | |
38 | + | android:id="@+id/textView4" | |
39 | + | android:layout_width="match_parent" | |
40 | + | android:layout_height="wrap_content" | |
41 | + | android:text="@string/help_radical3" | |
42 | + | android:layout_marginBottom="16dp" /> | |
43 | + | ||
44 | + | <TableLayout | |
45 | + | android:layout_width="wrap_content" | |
46 | + | android:layout_height="wrap_content" | |
47 | + | android:layout_gravity="center" | |
48 | + | android:layout_marginBottom="16dp"> | |
49 | + | <TableRow | |
50 | + | android:background="@color/colorDarkerGrey" | |
51 | + | android:layout_width="wrap_content" | |
52 | + | android:layout_height="wrap_content"> | |
53 | + | <TextView | |
54 | + | android:text="@string/help_radical_kanji" | |
55 | + | android:layout_width="wrap_content" | |
56 | + | android:layout_height="wrap_content" | |
57 | + | android:padding="8dp" | |
58 | + | android:layout_gravity="center" | |
59 | + | android:textAlignment="center" | |
60 | + | android:textStyle="bold" /> | |
61 | + | <TextView | |
62 | + | android:layout_width="wrap_content" | |
63 | + | android:layout_height="wrap_content" | |
64 | + | android:text="@string/help_radical_components" | |
65 | + | android:padding="8dp" | |
66 | + | android:layout_gravity="center" | |
67 | + | android:textAlignment="center" | |
68 | + | android:textStyle="bold" | |
69 | + | android:layout_span="7" /> | |
70 | + | </TableRow> | |
71 | + | <TableRow | |
72 | + | android:background="@color/colorGrey" | |
73 | + | android:layout_width="wrap_content" | |
74 | + | android:layout_height="wrap_content"> | |
75 | + | <TextView | |
76 | + | android:layout_width="wrap_content" | |
77 | + | android:layout_height="wrap_content" | |
78 | + | android:gravity="center" | |
79 | + | android:padding="8dp" | |
80 | + | android:text="???" | |
81 | + | tools:ignore="HardcodedText" | |
82 | + | android:textStyle="bold" | |
83 | + | android:textSize="@dimen/subtitle_size" /> | |
84 | + | <TextView | |
85 | + | android:layout_width="wrap_content" | |
86 | + | android:layout_height="match_parent" | |
87 | + | android:gravity="center" | |
88 | + | android:padding="8dp" | |
89 | + | android:text="???" | |
90 | + | tools:ignore="HardcodedText" /> | |
91 | + | <TextView | |
92 | + | android:layout_width="wrap_content" | |
93 | + | android:layout_height="match_parent" | |
94 | + | android:gravity="center" | |
95 | + | android:padding="8dp" | |
96 | + | android:text="???" | |
97 | + | tools:ignore="HardcodedText" /> | |
98 | + | <TextView | |
99 | + | android:layout_width="wrap_content" | |
100 | + | android:layout_height="match_parent" | |
101 | + | android:gravity="center" | |
102 | + | android:padding="8dp" | |
103 | + | android:text="???" | |
104 | + | tools:ignore="HardcodedText" /> | |
105 | + | <TextView | |
106 | + | android:layout_width="wrap_content" | |
107 | + | android:layout_height="match_parent" | |
108 | + | android:gravity="center" | |
109 | + | android:padding="8dp" | |
110 | + | android:text="???" | |
111 | + | tools:ignore="HardcodedText" /> | |
112 | + | <TextView | |
113 | + | android:layout_width="wrap_content" | |
114 | + | android:layout_height="match_parent" | |
115 | + | android:gravity="center" | |
116 | + | android:padding="8dp" | |
117 | + | android:text="???" | |
118 | + | tools:ignore="HardcodedText" /> | |
119 | + | <TextView | |
120 | + | android:layout_width="wrap_content" | |
121 | + | android:layout_height="match_parent" | |
122 | + | android:gravity="center" | |
123 | + | android:padding="8dp" | |
124 | + | android:text="???" | |
125 | + | tools:ignore="HardcodedText" /> | |
126 | + | </TableRow> | |
127 | + | <TableRow | |
128 | + | android:background="@android:color/white" | |
129 | + | android:layout_width="wrap_content" | |
130 | + | android:layout_height="wrap_content"> | |
131 | + | <TextView | |
132 | + | android:layout_width="wrap_content" | |
133 | + | android:layout_height="wrap_content" | |
134 | + | android:gravity="center" | |
135 | + | android:padding="8dp" | |
136 | + | android:text="???" | |
137 | + | tools:ignore="HardcodedText" | |
138 | + | android:textStyle="bold" | |
139 | + | android:textSize="@dimen/subtitle_size" /> | |
140 | + | <TextView | |
141 | + | android:layout_width="wrap_content" | |
142 | + | android:layout_height="match_parent" | |
143 | + | android:gravity="center" | |
144 | + | android:padding="8dp" | |
145 | + | android:text="???" | |
146 | + | tools:ignore="HardcodedText" /> | |
147 | + | <TextView | |
148 | + | android:layout_width="wrap_content" | |
149 | + | android:layout_height="match_parent" | |
150 | + | android:gravity="center" | |
151 | + | android:padding="8dp" | |
152 | + | android:text="???" | |
153 | + | tools:ignore="HardcodedText" /> | |
154 | + | <TextView | |
155 | + | android:layout_width="wrap_content" | |
156 | + | android:layout_height="match_parent" | |
157 | + | android:gravity="center" | |
158 | + | android:padding="8dp" | |
159 | + | android:text="???" | |
160 | + | tools:ignore="HardcodedText" /> | |
161 | + | <TextView | |
162 | + | android:layout_width="wrap_content" | |
163 | + | android:layout_height="match_parent" | |
164 | + | android:gravity="center" | |
165 | + | android:padding="8dp" | |
166 | + | android:text="???" | |
167 | + | tools:ignore="HardcodedText" /> | |
168 | + | </TableRow> | |
169 | + | <TableRow | |
170 | + | android:background="@color/colorGrey" | |
171 | + | android:layout_width="wrap_content" | |
172 | + | android:layout_height="wrap_content"> | |
173 | + | <TextView | |
174 | + | android:layout_width="wrap_content" | |
175 | + | android:layout_height="wrap_content" | |
176 | + | android:gravity="center" | |
177 | + | android:padding="8dp" | |
178 | + | android:text="???" | |
179 | + | tools:ignore="HardcodedText" | |
180 | + | android:textStyle="bold" | |
181 | + | android:textSize="@dimen/subtitle_size" /> | |
182 | + | <TextView | |
183 | + | android:layout_width="wrap_content" | |
184 | + | android:layout_height="match_parent" | |
185 | + | android:gravity="center" | |
186 | + | android:padding="8dp" | |
187 | + | android:text="???" | |
188 | + | tools:ignore="HardcodedText" /> | |
189 | + | <TextView | |
190 | + | android:layout_width="wrap_content" | |
191 | + | android:layout_height="match_parent" | |
192 | + | android:gravity="center" | |
193 | + | android:padding="8dp" | |
194 | + | android:text="???" | |
195 | + | tools:ignore="HardcodedText" /> | |
196 | + | <TextView | |
197 | + | android:layout_width="wrap_content" | |
198 | + | android:layout_height="match_parent" | |
199 | + | android:gravity="center" | |
200 | + | android:padding="8dp" | |
201 | + | android:text="???" | |
202 | + | tools:ignore="HardcodedText" /> | |
203 | + | <TextView | |
204 | + | android:layout_width="wrap_content" | |
205 | + | android:layout_height="match_parent" | |
206 | + | android:gravity="center" | |
207 | + | android:padding="8dp" | |
208 | + | android:text="???" | |
209 | + | tools:ignore="HardcodedText" /> | |
210 | + | <TextView | |
211 | + | android:layout_width="wrap_content" | |
212 | + | android:layout_height="match_parent" | |
213 | + | android:gravity="center" | |
214 | + | android:padding="8dp" | |
215 | + | android:text="???" | |
216 | + | tools:ignore="HardcodedText" /> | |
217 | + | </TableRow> | |
218 | + | <TableRow | |
219 | + | android:background="@android:color/white" | |
220 | + | android:layout_width="wrap_content" | |
221 | + | android:layout_height="wrap_content"> | |
222 | + | <TextView | |
223 | + | android:layout_width="wrap_content" | |
224 | + | android:layout_height="wrap_content" | |
225 | + | android:gravity="center" | |
226 | + | android:padding="8dp" | |
227 | + | android:text="???" | |
228 | + | tools:ignore="HardcodedText" | |
229 | + | android:textStyle="bold" | |
230 | + | android:textSize="@dimen/subtitle_size" /> | |
231 | + | <TextView | |
232 | + | android:layout_width="wrap_content" | |
233 | + | android:layout_height="match_parent" | |
234 | + | android:gravity="center" | |
235 | + | android:padding="8dp" | |
236 | + | android:text="???" | |
237 | + | tools:ignore="HardcodedText" /> | |
238 | + | <TextView | |
239 | + | android:layout_width="wrap_content" | |
240 | + | android:layout_height="match_parent" | |
241 | + | android:gravity="center" | |
242 | + | android:padding="8dp" | |
243 | + | android:text="???" | |
244 | + | tools:ignore="HardcodedText" /> | |
245 | + | <TextView | |
246 | + | android:layout_width="wrap_content" | |
247 | + | android:layout_height="match_parent" | |
248 | + | android:gravity="center" | |
249 | + | android:padding="8dp" | |
250 | + | android:text="???" | |
251 | + | tools:ignore="HardcodedText" /> | |
252 | + | <TextView | |
253 | + | android:layout_width="wrap_content" | |
254 | + | android:layout_height="match_parent" | |
255 | + | android:gravity="center" | |
256 | + | android:padding="8dp" | |
257 | + | android:text="???" | |
258 | + | tools:ignore="HardcodedText" /> | |
259 | + | <TextView | |
260 | + | android:layout_width="wrap_content" | |
261 | + | android:layout_height="match_parent" | |
262 | + | android:gravity="center" | |
263 | + | android:padding="8dp" | |
264 | + | android:text="???" | |
265 | + | tools:ignore="HardcodedText" /> | |
266 | + | <TextView | |
267 | + | android:layout_width="wrap_content" | |
268 | + | android:layout_height="match_parent" | |
269 | + | android:gravity="center" | |
270 | + | android:padding="8dp" | |
271 | + | android:text="???" | |
272 | + | tools:ignore="HardcodedText" /> | |
273 | + | </TableRow> | |
274 | + | <TableRow | |
275 | + | android:background="@color/colorGrey" | |
276 | + | android:layout_width="wrap_content" | |
277 | + | android:layout_height="wrap_content"> | |
278 | + | <TextView | |
279 | + | android:layout_width="wrap_content" | |
280 | + | android:layout_height="wrap_content" | |
281 | + | android:gravity="center" | |
282 | + | android:padding="8dp" | |
283 | + | android:text="???" | |
284 | + | tools:ignore="HardcodedText" | |
285 | + | android:textStyle="bold" | |
286 | + | android:textSize="@dimen/subtitle_size" /> | |
287 | + | <TextView | |
288 | + | android:layout_width="wrap_content" | |
289 | + | android:layout_height="match_parent" | |
290 | + | android:gravity="center" | |
291 | + | android:padding="8dp" | |
292 | + | android:text="???" | |
293 | + | tools:ignore="HardcodedText" /> | |
294 | + | <TextView | |
295 | + | android:layout_width="wrap_content" | |
296 | + | android:layout_height="match_parent" | |
297 | + | android:gravity="center" | |
298 | + | android:padding="8dp" | |
299 | + | android:text="???" | |
300 | + | tools:ignore="HardcodedText" /> | |
301 | + | <TextView | |
302 | + | android:layout_width="wrap_content" | |
303 | + | android:layout_height="match_parent" | |
304 | + | android:gravity="center" | |
305 | + | android:padding="8dp" | |
306 | + | android:text="???" | |
307 | + | tools:ignore="HardcodedText" /> | |
308 | + | <TextView | |
309 | + | android:layout_width="wrap_content" | |
310 | + | android:layout_height="match_parent" | |
311 | + | android:gravity="center" | |
312 | + | android:padding="8dp" | |
313 | + | android:text="???" | |
314 | + | tools:ignore="HardcodedText" /> | |
315 | + | </TableRow> | |
316 | + | <TableRow | |
317 | + | android:background="@android:color/white" | |
318 | + | android:layout_width="wrap_content" | |
319 | + | android:layout_height="wrap_content"> | |
320 | + | <TextView | |
321 | + | android:layout_width="wrap_content" | |
322 | + | android:layout_height="wrap_content" | |
323 | + | android:gravity="center" | |
324 | + | android:padding="8dp" | |
325 | + | android:text="???" | |
326 | + | tools:ignore="HardcodedText" | |
327 | + | android:textStyle="bold" | |
328 | + | android:textSize="@dimen/subtitle_size" /> | |
329 | + | <TextView | |
330 | + | android:layout_width="wrap_content" | |
331 | + | android:layout_height="match_parent" | |
332 | + | android:gravity="center" | |
333 | + | android:padding="8dp" | |
334 | + | android:text="???" | |
335 | + | tools:ignore="HardcodedText" /> | |
336 | + | <TextView | |
337 | + | android:layout_width="wrap_content" | |
338 | + | android:layout_height="match_parent" | |
339 | + | android:gravity="center" | |
340 | + | android:padding="8dp" | |
341 | + | android:text="???" | |
342 | + | tools:ignore="HardcodedText" /> | |
343 | + | <TextView | |
344 | + | android:layout_width="wrap_content" | |
345 | + | android:layout_height="match_parent" | |
346 | + | android:gravity="center" | |
347 | + | android:padding="8dp" | |
348 | + | android:text="???" | |
349 | + | tools:ignore="HardcodedText" /> | |
350 | + | <TextView | |
351 | + | android:layout_width="wrap_content" | |
352 | + | android:layout_height="match_parent" | |
353 | + | android:gravity="center" | |
354 | + | android:padding="8dp" | |
355 | + | android:text="???" | |
356 | + | tools:ignore="HardcodedText" /> | |
357 | + | <TextView | |
358 | + | android:layout_width="wrap_content" | |
359 | + | android:layout_height="match_parent" | |
360 | + | android:gravity="center" | |
361 | + | android:padding="8dp" | |
362 | + | android:text="???" | |
363 | + | tools:ignore="HardcodedText" /> | |
364 | + | <TextView | |
365 | + | android:layout_width="wrap_content" | |
366 | + | android:layout_height="match_parent" | |
367 | + | android:gravity="center" | |
368 | + | android:padding="8dp" | |
369 | + | android:text="???" | |
370 | + | tools:ignore="HardcodedText" /> | |
371 | + | <TextView | |
372 | + | android:layout_width="wrap_content" | |
373 | + | android:layout_height="match_parent" | |
374 | + | android:gravity="center" | |
375 | + | android:padding="8dp" | |
376 | + | android:text="????" | |
377 | + | tools:ignore="HardcodedText" /> | |
378 | + | </TableRow> | |
379 | + | </TableLayout> | |
11 | 380 | ||
12 | 381 | </LinearLayout> | |
13 | 382 | ||
14 | - | </ScrollView> | |
14 | > | ||
15 | 0 | > | \ No newline at end of file |
383 | + | </ScrollView> |
app/src/main/res/values-fr/strings.xml
135 | 135 | <string name="help_topic_romaji">Utiliser des romaji dans le champ de recherche</string> | |
136 | 136 | ||
137 | 137 | <!-- Help Activity: romaji --> | |
138 | + | <string name="help_title_romaji">Aide : Romaji</string> | |
138 | 139 | <string name="help_romaji1">?? l\'??crit, le japonais utilise couramment quatre syst??mes | |
139 | 140 | d\'??criture diff??rents : les kanji (les caract??res chinois), les hiragana (un syllabaire utilis?? | |
140 | 141 | surtout pour les mots japonais et la grammaire), les katakana (un syllabaire utilis?? surtout pour | |
… | |||
162 | 163 | <string name="help_romaji_hiragana">Hiragana</string> | |
163 | 164 | ||
164 | 165 | <!-- Help Activity: radicals --> | |
166 | + | <string name="help_title_radicals">Aide : Radicaux</string> | |
167 | + | <string name="help_radical1">Les kanji japonais peuvent avoir de nombreux traits et ??tre tr??s | |
168 | + | difficile ?? se rappeler. Il est aussi compliqu?? de saisir un kanji japonais si vous ne connaissez | |
169 | + | la prononciation d\'aucun mot qui le contient. Heureusement, la plupart des kanji peuvent ??tre | |
170 | + | d??compos??s en composants plus simple qui apparaissent aussi dans d\'autres kanji, qu\'on appelle | |
171 | + | aussi des radicaux. L\'??cran de s??lection des radicaux vous permet de choisir certains composants | |
172 | + | d\'un kanji que vous voulez saisir et de le trouver de mani??re efficace dans la liste de tous | |
173 | + | les kanji qui contiennent ces composants.</string> | |
174 | + | <string name="help_radical2">Pour rechercher un kanji ?? partir de ses composants, appuyez sur | |
175 | + | le bouton en bas ?? droite de l\'??cran principal (le composant de l\'eau). Cela ouvrira | |
176 | + | un ??cran vous permettant de choisir un ou plusieurs composants. Les deux premi??res lignes de | |
177 | + | cet ??cran vous pr??senteront tous les kanji qui poss??dent tous les composants s??lectionn??s, | |
178 | + | tri??s par nombre de traits.</string> | |
179 | + | <string name="help_radical3">Voici quelques exemples de d??composition :</string> | |
180 | + | <string name="help_radical_kanji">Kanji</string> | |
181 | + | <string name="help_radical_components">Composants</string> | |
165 | 182 | </resources> |
app/src/main/res/values/colors.xml
5 | 5 | <color name="colorAccent">#D81B60</color> | |
6 | 6 | <color name="colorGrey">#EEF2EE</color> | |
7 | 7 | <color name="colorUpdate">#F4DE96</color> | |
8 | + | <color name="colorDarkerGrey">#e0e3e0</color> | |
8 | 9 | </resources> |
app/src/main/res/values/strings.xml
138 | 138 | <string name="help_topic_romaji">Using romaji in search input</string> | |
139 | 139 | ||
140 | 140 | <!-- Help Activity: romaji --> | |
141 | + | <string name="help_title_romaji">Help: Romaji</string> | |
141 | 142 | <string name="help_romaji1">In written Japanese, four different writing systems are in common | |
142 | 143 | use: kanji (Chinese characters), hiragana (a syllabary used mainly for Japanese words and grammar), | |
143 | 144 | katakana (a syllabary used mainly for loan words) and romaji, the latin alphabet. Nani allows | |
… | |||
162 | 163 | <string name="help_romaji_hiragana">Hiragana</string> | |
163 | 164 | ||
164 | 165 | <!-- Help Activity: radicals --> | |
166 | + | <string name="help_title_radicals">Help: Radicals</string> | |
167 | + | <string name="help_radical1">Japanese kanji can have many strokes and be quite difficult to | |
168 | + | remember. It is also difficult to enter a Japanese kanji when you don\'t know how to pronounce | |
169 | + | any word that contains it. Thankfully, most kanji can be decomposed into simpler components that | |
170 | + | appear in other kanji, also called radicals. The radical selection screen allows you to select | |
171 | + | some components of a kanji you want to type and find it in an efficient way in the list of | |
172 | + | all kanji that contain these components.</string> | |
173 | + | <string name="help_radical2">To search a kanji by component, tap on the button on the bottom | |
174 | + | right of the main screen (the water component). This will open a screen that allows you to | |
175 | + | select one or more components. The first two lines of this screen will show you all kanji | |
176 | + | that have all the components you selected, ordered by stroke count.</string> | |
177 | + | <string name="help_radical3">Here are some examples of decompositions:</string> | |
178 | + | <string name="help_radical_kanji">Kanji</string> | |
179 | + | <string name="help_radical_components">Components</string> | |
165 | 180 | </resources> |