• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2011, 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<merge
22    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
23>
24    <!-- Base key style for the key which may have settings key as popup key -->
25    <switch>
26        <case
27            latin:clobberSettingsKey="true"
28        >
29            <key-style
30                latin:styleName="f2PopupStyle"
31                latin:backgroundType="functional" />
32        </case>
33        <default>
34            <key-style
35                latin:styleName="f2PopupStyle"
36                latin:keyLabelOption="hasPopupHint"
37                latin:moreKeys="\@icon/3|\@integer/key_settings"
38                latin:backgroundType="functional" />
39        </default>
40    </switch>
41    <!-- Functional key styles -->
42    <key-style
43        latin:styleName="shiftKeyStyle"
44        latin:code="@integer/key_shift"
45        latin:keyIcon="iconShiftKey"
46        latin:keyIconShifted="iconShiftedShiftKey"
47        latin:backgroundType="sticky" />
48    <key-style
49        latin:styleName="deleteKeyStyle"
50        latin:code="@integer/key_delete"
51        latin:keyIcon="iconDeleteKey"
52        latin:backgroundType="functional"
53        latin:isRepeatable="true" />
54    <key-style
55        latin:styleName="returnKeyStyle"
56        latin:code="@integer/key_return"
57        latin:keyIcon="iconReturnKey"
58        latin:backgroundType="functional" />
59    <key-style
60        latin:styleName="spaceKeyStyle"
61        latin:code="@integer/key_space" />
62    <key-style
63        latin:styleName="nonSpecialBackgroundSpaceKeyStyle"
64        latin:code="@integer/key_space" />
65    <key-style
66        latin:styleName="smileyKeyStyle"
67        latin:keyLabel=":-)"
68        latin:keyOutputText=":-) "
69        latin:keyLabelOption="hasPopupHint"
70        latin:moreKeys="@string/more_keys_for_smiley"
71        latin:maxMoreKeysColumn="5" />
72    <key-style
73        latin:styleName="shortcutKeyStyle"
74        latin:code="@integer/key_shortcut"
75        latin:keyIcon="iconShortcutKey"
76        latin:keyIconPreview="iconPreviewShortcutKey"
77        latin:parentStyle="f2PopupStyle" />
78    <key-style
79        latin:styleName="settingsKeyStyle"
80        latin:code="@integer/key_settings"
81        latin:keyIcon="iconSettingsKey"
82        latin:keyIconPreview="iconPreviewSettingsKey"
83        latin:backgroundType="functional" />
84    <key-style
85        latin:styleName="tabKeyStyle"
86        latin:code="@integer/key_tab"
87        latin:keyIcon="iconTabKey"
88        latin:keyIconPreview="iconPreviewTabKey"
89        latin:backgroundType="functional" />
90    <key-style
91        latin:styleName="toSymbolKeyStyle"
92        latin:code="@integer/key_switch_alpha_symbol"
93        latin:keyLabel="@string/label_to_symbol_key"
94        latin:backgroundType="functional" />
95    <key-style
96        latin:styleName="toAlphaKeyStyle"
97        latin:code="@integer/key_switch_alpha_symbol"
98        latin:keyLabel="@string/label_to_alpha_key"
99        latin:backgroundType="functional" />
100    <key-style
101        latin:styleName="toMoreSymbolKeyStyle"
102        latin:code="@integer/key_shift"
103        latin:keyLabel="@string/label_to_more_symbol_for_tablet_key"
104        latin:backgroundType="functional" />
105    <key-style
106        latin:styleName="backFromMoreSymbolKeyStyle"
107        latin:code="@integer/key_shift"
108        latin:keyLabel="@string/label_to_symbol_key"
109        latin:backgroundType="functional" />
110    <key-style
111        latin:styleName="comKeyStyle"
112        latin:keyLabel="@string/keylabel_for_popular_domain"
113        latin:keyLabelOption="fontNormal|hasPopupHint"
114        latin:keyOutputText="@string/keylabel_for_popular_domain"
115        latin:moreKeys="@string/more_keys_for_popular_domain" />
116</merge>
117