• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2010, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<!--
22    Swedish Keyboard Layout
23
24    Key positioning: Svensk standard SS 66 22 41
25    Foreign letters: Svenska skrivregler (2:a uppl.) §302
26    Local additions: ۧ
27-->
28
29<Keyboard
30    xmlns:android="http://schemas.android.com/apk/res/android"
31    android:keyWidth="9.09%p"
32    android:horizontalGap="0px"
33    android:verticalGap="@dimen/key_bottom_gap"
34    android:keyHeight="@dimen/key_height"
35>
36    <Row
37        android:rowEdgeFlags="top"
38    >
39        <Key
40            android:keyLabel="q"
41            android:popupKeyboard="@xml/kbd_popup_template"
42            android:popupCharacters="@string/alternates_for_q"
43            android:keyWidth="8.75%p"
44            android:keyEdgeFlags="left" />
45        <Key
46            android:keyLabel="w"
47            android:popupKeyboard="@xml/kbd_popup_template"
48            android:popupCharacters="@string/alternates_for_w" />
49        <Key
50            android:keyLabel="e"
51            android:popupKeyboard="@xml/kbd_popup_template"
52            android:popupCharacters="@string/alternates_for_e" />
53        <Key
54            android:keyLabel="r"
55            android:popupKeyboard="@xml/kbd_popup_template"
56            android:popupCharacters="@string/alternates_for_r" />
57        <Key
58            android:keyLabel="t"
59            android:popupKeyboard="@xml/kbd_popup_template"
60            android:popupCharacters="@string/alternates_for_t" />
61        <Key
62            android:keyLabel="y"
63            android:popupKeyboard="@xml/kbd_popup_template"
64            android:popupCharacters="@string/alternates_for_y" />
65        <Key
66            android:keyLabel="u"
67            android:popupKeyboard="@xml/kbd_popup_template"
68            android:popupCharacters="@string/alternates_for_u" />
69        <Key
70            android:keyLabel="i"
71            android:popupKeyboard="@xml/kbd_popup_template"
72            android:popupCharacters="@string/alternates_for_i" />
73        <Key
74            android:keyLabel="o"
75            android:popupKeyboard="@xml/kbd_popup_template"
76            android:popupCharacters="@string/alternates_for_o" />
77        <Key
78            android:keyLabel="p"
79            android:popupKeyboard="@xml/kbd_popup_template"
80            android:popupCharacters="@string/alternates_for_p" />
81        <Key
82            android:keyLabel="å"
83            android:keyWidth="8.75%p"
84            android:keyEdgeFlags="right" />
85    </Row>
86    <Row>
87        <Key
88            android:keyLabel="a"
89            android:popupKeyboard="@xml/kbd_popup_template"
90            android:popupCharacters="@string/alternates_for_a"
91            android:keyWidth="8.75%p"
92            android:keyEdgeFlags="left" />
93        <Key
94            android:keyLabel="s"
95            android:popupKeyboard="@xml/kbd_popup_template"
96            android:popupCharacters="@string/alternates_for_s" />
97        <Key
98            android:keyLabel="d"
99            android:popupKeyboard="@xml/kbd_popup_template"
100            android:popupCharacters="@string/alternates_for_d" />
101        <Key
102            android:keyLabel="f" />
103        <Key
104            android:keyLabel="g"
105            android:popupKeyboard="@xml/kbd_popup_template"
106            android:popupCharacters="@string/alternates_for_g" />
107        <Key
108            android:keyLabel="h" />
109        <Key
110            android:keyLabel="j" />
111        <Key
112            android:keyLabel="k" />
113        <Key
114            android:keyLabel="l"
115            android:popupKeyboard="@xml/kbd_popup_template"
116            android:popupCharacters="@string/alternates_for_l" />
117        <Key
118            android:keyLabel="ö"
119            android:popupKeyboard="@xml/kbd_popup_template"
120            android:popupCharacters="@string/alternates_for_o_umlaut" />
121        <Key
122            android:keyLabel="ä"
123            android:popupKeyboard="@xml/kbd_popup_template"
124            android:popupCharacters="@string/alternates_for_a_umlaut"
125            android:keyWidth="8.75%p"
126            android:keyEdgeFlags="right" />
127    </Row>
128    <Row
129        android:keyWidth="10%p"
130    >
131        <Key
132            android:codes="@integer/key_shift"
133            android:keyIcon="@drawable/sym_bkeyboard_shift"
134            android:iconPreview="@drawable/sym_keyboard_feedback_shift"
135            android:keyWidth="15%p"
136            android:isModifier="true"
137            android:isSticky="true"
138            android:keyEdgeFlags="left" />
139        <Key
140            android:keyLabel="z"
141            android:popupKeyboard="@xml/kbd_popup_template"
142            android:popupCharacters="@string/alternates_for_z" />
143        <Key
144            android:keyLabel="x" />
145        <Key
146            android:keyLabel="c"
147            android:popupKeyboard="@xml/kbd_popup_template"
148            android:popupCharacters="@string/alternates_for_c" />
149        <Key
150            android:keyLabel="v"
151            android:popupKeyboard="@xml/kbd_popup_template"
152            android:popupCharacters="@string/alternates_for_v" />
153        <Key
154            android:keyLabel="b" />
155        <Key
156            android:keyLabel="n"
157            android:popupKeyboard="@xml/kbd_popup_template"
158            android:popupCharacters="@string/alternates_for_n" />
159        <Key
160            android:keyLabel="m" />
161        <Key
162            android:codes="@integer/key_delete"
163            android:keyIcon="@drawable/sym_bkeyboard_delete"
164            android:iconPreview="@drawable/sym_keyboard_feedback_delete"
165            android:keyWidth="15%p"
166            android:isRepeatable="true"
167            android:keyEdgeFlags="right" />
168    </Row>
169    <Row
170        android:keyboardMode="@+id/mode_normal"
171        android:keyWidth="10%p"
172        android:rowEdgeFlags="bottom"
173    >
174        <Key
175            android:codes="@integer/key_symbol"
176            android:keyLabel="@string/label_symbol_key"
177            android:keyWidth="20%p"
178            android:keyEdgeFlags="left" />
179        <Key
180            android:codes="@integer/key_f1" />
181        <Key
182            android:codes="@integer/key_space"
183            android:keyIcon="@drawable/sym_bkeyboard_space"
184            android:iconPreview="@drawable/sym_keyboard_feedback_space"
185            android:keyWidth="40%p" />
186        <Key
187            android:keyLabel="."
188            android:keyIcon="@drawable/hint_popup"
189            android:popupKeyboard="@xml/popup_punctuation" />
190        <Key
191            android:codes="@integer/key_return"
192            android:keyIcon="@drawable/sym_bkeyboard_return"
193            android:iconPreview="@drawable/sym_keyboard_feedback_return"
194            android:keyWidth="20%p"
195            android:keyEdgeFlags="right" />
196    </Row>
197    <Row
198        android:keyboardMode="@+id/mode_url"
199        android:keyWidth="10%p"
200        android:rowEdgeFlags="bottom"
201    >
202        <Key
203            android:codes="@integer/key_symbol"
204            android:keyLabel="@string/label_symbol_key"
205            android:keyWidth="20%p"
206            android:keyEdgeFlags="left" />
207        <Key
208            android:codes="@integer/key_f1" />
209        <Key
210            android:codes="@integer/key_space"
211            android:keyIcon="@drawable/sym_bkeyboard_space"
212            android:iconPreview="@drawable/sym_keyboard_feedback_space"
213            android:keyWidth="40%p" />
214        <Key
215            android:keyLabel="."
216            android:keyIcon="@drawable/hint_popup"
217            android:popupKeyboard="@xml/popup_punctuation" />
218        <Key
219            android:codes="@integer/key_return"
220            android:keyIcon="@drawable/sym_bkeyboard_return"
221            android:iconPreview="@drawable/sym_keyboard_feedback_return"
222            android:keyWidth="20%p"
223            android:keyEdgeFlags="right" />
224    </Row>
225    <Row
226        android:keyboardMode="@+id/mode_email"
227        android:keyWidth="10%p"
228        android:rowEdgeFlags="bottom"
229    >
230        <Key
231            android:codes="@integer/key_symbol"
232            android:keyLabel="@string/label_symbol_key"
233            android:keyWidth="20%p"
234            android:keyEdgeFlags="left" />
235        <Key
236            android:codes="@integer/key_f1" />
237        <Key
238            android:codes="@integer/key_space"
239            android:keyIcon="@drawable/sym_bkeyboard_space"
240            android:iconPreview="@drawable/sym_keyboard_feedback_space"
241            android:keyWidth="40%p" />
242        <Key
243            android:keyLabel="."
244            android:keyIcon="@drawable/hint_popup"
245            android:popupKeyboard="@xml/popup_punctuation" />
246        <Key
247            android:codes="@integer/key_return"
248            android:keyIcon="@drawable/sym_bkeyboard_return"
249            android:iconPreview="@drawable/sym_keyboard_feedback_return"
250            android:keyWidth="20%p"
251            android:keyEdgeFlags="right" />
252    </Row>
253    <Row
254        android:keyboardMode="@+id/mode_im"
255        android:keyWidth="10%p"
256        android:rowEdgeFlags="bottom"
257    >
258        <Key
259            android:codes="@integer/key_symbol"
260            android:keyLabel="@string/label_symbol_key"
261            android:keyWidth="20%p"
262            android:keyEdgeFlags="left" />
263        <Key
264            android:codes="@integer/key_f1" />
265        <Key
266            android:codes="@integer/key_space"
267            android:keyIcon="@drawable/sym_bkeyboard_space"
268            android:iconPreview="@drawable/sym_keyboard_feedback_space"
269            android:keyWidth="40%p" />
270        <Key
271            android:keyLabel="."
272            android:keyIcon="@drawable/hint_popup"
273            android:popupKeyboard="@xml/popup_punctuation" />
274        <Key
275            android:keyLabel=":-)"
276            android:keyOutputText=":-) "
277            android:keyIcon="@drawable/hint_popup"
278            android:popupKeyboard="@xml/popup_smileys"
279            android:keyWidth="20%p"
280            android:keyEdgeFlags="right" />
281    </Row>
282    <Row
283        android:keyboardMode="@+id/mode_webentry"
284        android:keyWidth="10%p"
285        android:rowEdgeFlags="bottom"
286    >
287        <Key
288            android:codes="@integer/key_symbol"
289            android:keyLabel="@string/label_symbol_key"
290            android:keyWidth="20%p"
291            android:keyEdgeFlags="left" />
292        <Key
293            android:codes="@integer/key_f1" />
294        <Key
295            android:codes="@integer/key_space"
296            android:keyIcon="@drawable/sym_bkeyboard_space"
297            android:iconPreview="@drawable/sym_keyboard_feedback_space"
298            android:keyWidth="20%p" />
299        <Key
300            android:codes="@integer/key_tab"
301            android:keyIcon="@drawable/sym_bkeyboard_tab"
302            android:iconPreview="@drawable/sym_keyboard_feedback_tab"
303            android:keyWidth="20%p" />
304        <Key
305            android:keyLabel="."
306            android:keyIcon="@drawable/hint_popup"
307            android:popupKeyboard="@xml/popup_punctuation" />
308        <Key
309            android:codes="@integer/key_return"
310            android:keyIcon="@drawable/sym_bkeyboard_return"
311            android:iconPreview="@drawable/sym_keyboard_feedback_return"
312            android:keyWidth="20%p"
313            android:keyEdgeFlags="right" />
314    </Row>
315    <Row
316        android:keyboardMode="@+id/mode_normal_with_settings_key"
317        android:keyWidth="10%p"
318        android:rowEdgeFlags="bottom"
319    >
320        <Key
321            android:codes="@integer/key_symbol"
322            android:keyLabel="@string/label_symbol_key"
323            android:keyWidth="15%p"
324            android:keyEdgeFlags="left" />
325        <Key
326            android:codes="@integer/key_settings"
327            android:keyIcon="@drawable/sym_bkeyboard_settings"
328            android:iconPreview="@drawable/sym_keyboard_feedback_settings" />
329        <Key
330            android:codes="@integer/key_f1" />
331        <Key
332            android:codes="@integer/key_space"
333            android:keyIcon="@drawable/sym_bkeyboard_space"
334            android:iconPreview="@drawable/sym_keyboard_feedback_space"
335            android:keyWidth="30%p" />
336        <Key
337            android:keyLabel="."
338            android:keyIcon="@drawable/hint_popup"
339            android:popupKeyboard="@xml/popup_punctuation" />
340        <Key
341            android:codes="@integer/key_return"
342            android:keyIcon="@drawable/sym_bkeyboard_return"
343            android:iconPreview="@drawable/sym_keyboard_feedback_return"
344            android:keyWidth="25%p"
345            android:keyEdgeFlags="right" />
346    </Row>
347    <Row
348        android:keyboardMode="@+id/mode_url_with_settings_key"
349        android:keyWidth="10%p"
350        android:rowEdgeFlags="bottom"
351    >
352        <Key
353            android:codes="@integer/key_symbol"
354            android:keyLabel="@string/label_symbol_key"
355            android:keyWidth="15%p"
356            android:keyEdgeFlags="left" />
357        <Key
358            android:codes="@integer/key_settings"
359            android:keyIcon="@drawable/sym_bkeyboard_settings"
360            android:iconPreview="@drawable/sym_keyboard_feedback_settings" />
361        <Key
362            android:codes="@integer/key_f1" />
363        <Key
364            android:codes="@integer/key_space"
365            android:keyIcon="@drawable/sym_bkeyboard_space"
366            android:iconPreview="@drawable/sym_keyboard_feedback_space"
367            android:keyWidth="30%p" />
368        <Key
369            android:keyLabel="."
370            android:keyIcon="@drawable/hint_popup"
371            android:popupKeyboard="@xml/popup_punctuation" />
372        <Key
373            android:codes="@integer/key_return"
374            android:keyIcon="@drawable/sym_bkeyboard_return"
375            android:iconPreview="@drawable/sym_keyboard_feedback_return"
376            android:keyWidth="25%p"
377            android:keyEdgeFlags="right" />
378    </Row>
379    <Row
380        android:keyboardMode="@+id/mode_email_with_settings_key"
381        android:keyWidth="10%p"
382        android:rowEdgeFlags="bottom"
383    >
384        <Key
385            android:codes="@integer/key_symbol"
386            android:keyLabel="@string/label_symbol_key"
387            android:keyWidth="15%p"
388            android:keyEdgeFlags="left" />
389        <Key
390            android:codes="@integer/key_settings"
391            android:keyIcon="@drawable/sym_bkeyboard_settings"
392            android:iconPreview="@drawable/sym_keyboard_feedback_settings" />
393        <Key
394            android:codes="@integer/key_f1" />
395        <Key
396            android:codes="@integer/key_space"
397            android:keyIcon="@drawable/sym_bkeyboard_space"
398            android:iconPreview="@drawable/sym_keyboard_feedback_space"
399            android:keyWidth="30%p" />
400        <Key
401            android:keyLabel="."
402            android:keyIcon="@drawable/hint_popup"
403            android:popupKeyboard="@xml/popup_punctuation" />
404        <Key
405            android:codes="@integer/key_return"
406            android:keyIcon="@drawable/sym_bkeyboard_return"
407            android:iconPreview="@drawable/sym_keyboard_feedback_return"
408            android:keyWidth="25%p"
409            android:keyEdgeFlags="right" />
410    </Row>
411    <Row
412        android:keyboardMode="@+id/mode_im_with_settings_key"
413        android:keyWidth="10%p"
414        android:rowEdgeFlags="bottom"
415    >
416        <Key
417            android:codes="@integer/key_symbol"
418            android:keyLabel="@string/label_symbol_key"
419            android:keyWidth="15%p"
420            android:keyEdgeFlags="left" />
421        <Key
422            android:codes="@integer/key_settings"
423            android:keyIcon="@drawable/sym_bkeyboard_settings"
424            android:iconPreview="@drawable/sym_keyboard_feedback_settings" />
425        <Key
426            android:codes="@integer/key_f1" />
427        <Key
428            android:codes="@integer/key_space"
429            android:keyIcon="@drawable/sym_bkeyboard_space"
430            android:iconPreview="@drawable/sym_keyboard_feedback_space"
431            android:keyWidth="30%p" />
432        <Key
433            android:keyLabel="."
434            android:keyIcon="@drawable/hint_popup"
435            android:popupKeyboard="@xml/popup_punctuation" />
436        <Key
437            android:keyLabel=":-)"
438            android:keyOutputText=":-) "
439            android:keyIcon="@drawable/hint_popup"
440            android:popupKeyboard="@xml/popup_smileys"
441            android:keyWidth="25%p"
442            android:keyEdgeFlags="right" />
443    </Row>
444    <Row
445        android:keyboardMode="@+id/mode_webentry_with_settings_key"
446        android:keyWidth="10%p"
447        android:rowEdgeFlags="bottom"
448    >
449        <Key
450            android:codes="@integer/key_symbol"
451            android:keyLabel="@string/label_symbol_key"
452            android:keyWidth="15%p"
453            android:keyEdgeFlags="left" />
454        <Key
455            android:codes="@integer/key_settings"
456            android:keyIcon="@drawable/sym_bkeyboard_settings"
457            android:iconPreview="@drawable/sym_keyboard_feedback_settings" />
458        <Key
459            android:codes="@integer/key_f1" />
460        <Key
461            android:codes="@integer/key_space"
462            android:keyIcon="@drawable/sym_bkeyboard_space"
463            android:iconPreview="@drawable/sym_keyboard_feedback_space"
464            android:keyWidth="30%p" />
465        <Key
466            android:codes="@integer/key_tab"
467            android:keyIcon="@drawable/sym_bkeyboard_tab"
468            android:iconPreview="@drawable/sym_keyboard_feedback_tab" />
469        <Key
470            android:keyLabel="."
471            android:keyIcon="@drawable/hint_popup"
472            android:popupKeyboard="@xml/popup_punctuation" />
473        <Key
474            android:codes="@integer/key_return"
475            android:keyIcon="@drawable/sym_bkeyboard_return"
476            android:iconPreview="@drawable/sym_keyboard_feedback_return"
477            android:keyWidth="15%p"
478            android:keyEdgeFlags="right" />
479    </Row>
480</Keyboard>
481