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<merge
22    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
23>
24    <key-style
25        latin:styleName="numKeyBaseStyle"
26        latin:keyActionFlags="noKeyPreview" />
27    <key-style
28        latin:styleName="numKeyStyle"
29        latin:keyLabelFlags="followKeyLargeLetterRatio"
30        latin:parentStyle="numKeyBaseStyle" />
31    <key-style
32        latin:styleName="numModeKeyStyle"
33        latin:keyLabelFlags="fontNormal|followKeyLetterRatio|followFunctionalTextColor"
34        latin:parentStyle="numKeyBaseStyle" />
35    <key-style
36        latin:styleName="numSymbolKeyStyle"
37        latin:parentStyle="numKeyBaseStyle" />
38    <key-style
39        latin:styleName="numberKeyStyle"
40        latin:keyLabelFlags="alignLabelOffCenter|hasHintLabel"
41        latin:parentStyle="numKeyStyle" />
42    <key-style
43        latin:styleName="num0KeyStyle"
44        latin:keySpec="0"
45        latin:parentStyle="numberKeyStyle" />
46    <key-style
47        latin:styleName="num1KeyStyle"
48        latin:keySpec="1"
49        latin:parentStyle="numberKeyStyle" />
50    <key-style
51        latin:styleName="num2KeyStyle"
52        latin:keySpec="2"
53        latin:keyHintLabel="ABC"
54        latin:parentStyle="numberKeyStyle" />
55    <key-style
56        latin:styleName="num3KeyStyle"
57        latin:keySpec="3"
58        latin:keyHintLabel="DEF"
59        latin:parentStyle="numberKeyStyle" />
60    <key-style
61        latin:styleName="num4KeyStyle"
62        latin:keySpec="4"
63        latin:keyHintLabel="GHI"
64        latin:parentStyle="numberKeyStyle" />
65    <key-style
66        latin:styleName="num5KeyStyle"
67        latin:keySpec="5"
68        latin:keyHintLabel="JKL"
69        latin:parentStyle="numberKeyStyle" />
70    <key-style
71        latin:styleName="num6KeyStyle"
72        latin:keySpec="6"
73        latin:keyHintLabel="MNO"
74        latin:parentStyle="numberKeyStyle" />
75    <key-style
76        latin:styleName="num7KeyStyle"
77        latin:keySpec="7"
78        latin:keyHintLabel="PQRS"
79        latin:parentStyle="numberKeyStyle" />
80    <key-style
81        latin:styleName="num8KeyStyle"
82        latin:keySpec="8"
83        latin:keyHintLabel="TUV"
84        latin:parentStyle="numberKeyStyle" />
85    <key-style
86        latin:styleName="num9KeyStyle"
87        latin:keySpec="9"
88        latin:keyHintLabel="WXYZ"
89        latin:parentStyle="numberKeyStyle" />
90    <!-- Only for non-tablet device -->
91    <key-style
92        latin:styleName="numPhoneToSymbolKeyStyle"
93        latin:keySpec="!text/keylabel_to_phone_symbols|!code/key_switch_alpha_symbol"
94        latin:parentStyle="numModeKeyStyle" />
95    <key-style
96        latin:styleName="numPhoneToNumericKeyStyle"
97        latin:keySpec="!text/keylabel_to_phone_numeric|!code/key_switch_alpha_symbol"
98        latin:parentStyle="numModeKeyStyle" />
99    <key-style
100        latin:styleName="numTabKeyStyle"
101        latin:keyActionFlags="noKeyPreview"
102        latin:parentStyle="tabKeyStyle" />
103    <key-style
104        latin:styleName="numSpaceKeyStyle"
105        latin:keySpec="!icon/space_key_for_number_layout|!code/key_space"
106        latin:keyLabelFlags="alignIconToBottom"
107        latin:keyActionFlags="enableLongPress"
108        latin:parentStyle="numKeyBaseStyle" />
109    <!-- TODO: Consolidate these space key styles with numSpaceKeyStyle above by introducing <case>
110         predicator that checks device form-factor. -->
111    <switch>
112        <case latin:keyboardTheme="ICS|KLP">
113            <key-style
114                latin:styleName="tabletNumSpaceKeyStyle"
115                latin:keySpec="!icon/space_key|!code/key_space"
116                latin:backgroundType="functional"
117                latin:keyActionFlags="enableLongPress"
118                latin:parentStyle="numKeyBaseStyle" />
119        </case>
120        <case latin:keyboardTheme="LXXLight|LXXDark">
121            <key-style
122                latin:styleName="tabletNumSpaceKeyStyle"
123                latin:keySpec="!icon/space_key|!code/key_space"
124                latin:backgroundType="spacebar"
125                latin:keyActionFlags="enableLongPress"
126                latin:parentStyle="numKeyBaseStyle" />
127        </case>
128    </switch>
129</merge>
130