Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** |
| 5 | ** Copyright 2008, 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 | <Keyboard |
| 22 | xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 23 | latin:keyboardHeight="@dimen/keyboardHeight" |
Tadashi G. Takaoka | ff483e8 | 2011-05-12 14:49:18 +0900 | [diff] [blame] | 24 | latin:maxKeyboardHeight="@fraction/maxKeyboardHeight" |
| 25 | latin:minKeyboardHeight="@fraction/minKeyboardHeight" |
Tadashi G. Takaoka | 9f01ed5 | 2010-12-08 14:36:41 +0900 | [diff] [blame] | 26 | latin:rowHeight="25%p" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 27 | latin:keyWidth="26.67%p" |
| 28 | latin:horizontalGap="@dimen/key_horizontal_gap" |
| 29 | latin:verticalGap="@dimen/key_bottom_gap" |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 30 | latin:popupKeyboardTemplate="@xml/kbd_popup_template" |
| 31 | latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 32 | > |
| 33 | <include |
| 34 | latin:keyboardLayout="@xml/kbd_key_styles" /> |
Tadashi G. Takaoka | 6a75cd1 | 2011-03-08 17:48:18 -0800 | [diff] [blame] | 35 | <!-- TODO: Should add number password layout just like the xlarge layout does. --> |
Tadashi G. Takaoka | 9b6d1d5 | 2010-12-14 15:31:47 +0900 | [diff] [blame] | 36 | <switch> |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 37 | <case |
| 38 | latin:colorScheme="white" |
| 39 | > |
| 40 | <key-style |
| 41 | latin:styleName="numSpaceKeyStyle" |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 42 | latin:code="@integer/key_space" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 43 | latin:keyIcon="@drawable/sym_keyboard_space" |
| 44 | latin:iconPreview="@drawable/sym_keyboard_feedback_space" /> |
| 45 | </case> |
| 46 | <case |
| 47 | latin:colorScheme="black" |
| 48 | > |
| 49 | <key-style |
| 50 | latin:styleName="numSpaceKeyStyle" |
Tadashi G. Takaoka | c4f7166 | 2010-12-20 20:30:26 +0900 | [diff] [blame] | 51 | latin:code="@integer/key_space" |
Tadashi G. Takaoka | 2c60d6e | 2010-11-23 17:55:22 -0800 | [diff] [blame] | 52 | latin:keyIcon="@drawable/sym_bkeyboard_space" |
| 53 | latin:iconPreview="@drawable/sym_keyboard_feedback_space" /> |
| 54 | </case> |
| 55 | </switch> |
| 56 | <Row |
| 57 | latin:rowEdgeFlags="top" |
| 58 | > |
| 59 | <Key |
| 60 | latin:keyLabel="1" |
| 61 | latin:keyEdgeFlags="left" /> |
| 62 | <Key |
| 63 | latin:keyLabel="2" /> |
| 64 | <Key |
| 65 | latin:keyLabel="3" /> |
| 66 | <Key |
| 67 | latin:keyLabel="-" |
| 68 | latin:keyStyle="functionalKeyStyle" |
| 69 | latin:keyWidth="20%p" |
| 70 | latin:keyEdgeFlags="right" /> |
| 71 | </Row> |
| 72 | <Row> |
| 73 | <Key |
| 74 | latin:keyLabel="4" |
| 75 | latin:keyEdgeFlags="left" /> |
| 76 | <Key |
| 77 | latin:keyLabel="5" /> |
| 78 | <Key |
| 79 | latin:keyLabel="6" /> |
| 80 | <Key |
| 81 | latin:keyLabel="," |
| 82 | latin:keyStyle="functionalKeyStyle" |
| 83 | latin:keyWidth="20%p" |
| 84 | latin:keyEdgeFlags="right" /> |
| 85 | </Row> |
| 86 | <Row> |
| 87 | <Key |
| 88 | latin:keyLabel="7" |
| 89 | latin:keyEdgeFlags="left" /> |
| 90 | <Key |
| 91 | latin:keyLabel="8" /> |
| 92 | <Key |
| 93 | latin:keyLabel="9" /> |
| 94 | <Key |
| 95 | latin:keyStyle="deleteKeyStyle" |
| 96 | latin:keyWidth="20%p" |
| 97 | latin:keyEdgeFlags="right" /> |
| 98 | </Row> |
| 99 | <Row |
| 100 | latin:rowEdgeFlags="bottom" |
| 101 | > |
| 102 | <Key |
| 103 | latin:keyStyle="numSpaceKeyStyle" |
| 104 | latin:keyEdgeFlags="left" /> |
| 105 | <Key |
| 106 | latin:keyLabel="0" /> |
| 107 | <Key |
| 108 | latin:keyLabel="." /> |
| 109 | <Key |
| 110 | latin:keyStyle="returnKeyStyle" |
| 111 | latin:keyWidth="20%p" |
| 112 | latin:keyEdgeFlags="right" /> |
| 113 | </Row> |
| 114 | </Keyboard> |