2010-08-20 05:35:02 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2010 The Android Open Source Project
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="KeyboardView">
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Default KeyboardView style. -->
|
|
|
|
<attr name="keyboardViewStyle" format="reference" />
|
|
|
|
|
|
|
|
<!-- Image for the key. This image needs to be a StateListDrawable, with the following
|
|
|
|
possible states: normal, pressed, checkable, checkable+pressed, checkable+checked,
|
|
|
|
checkable+checked+pressed. -->
|
|
|
|
<attr name="keyBackground" format="reference" />
|
|
|
|
|
2010-12-01 03:22:19 +00:00
|
|
|
<!-- Size of the text for one letter character keys. -->
|
|
|
|
<attr name="keyLetterSize" format="dimension" />
|
2010-08-20 05:35:02 +00:00
|
|
|
|
|
|
|
<!-- Size of the text for custom keys with some text and no icon. -->
|
|
|
|
<attr name="labelTextSize" format="dimension" />
|
|
|
|
|
|
|
|
<!-- Color to use for the label in a key. -->
|
|
|
|
<attr name="keyTextColor" format="color" />
|
|
|
|
|
2010-12-01 03:22:19 +00:00
|
|
|
<!-- Color to use for the label in a key when in disabled state. -->
|
|
|
|
<attr name="keyTextColorDisabled" format="color" />
|
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Layout resource for key press feedback.-->
|
|
|
|
<attr name="keyPreviewLayout" format="reference" />
|
|
|
|
|
|
|
|
<!-- Vertical offset of the key press feedback from the key. -->
|
|
|
|
<attr name="keyPreviewOffset" format="dimension" />
|
|
|
|
|
|
|
|
<!-- Height of the key press feedback popup. -->
|
|
|
|
<attr name="keyPreviewHeight" format="dimension" />
|
|
|
|
|
2010-09-13 10:26:23 +00:00
|
|
|
<!-- Hysteresis distance for key debouncing -->
|
|
|
|
<attr name="keyHysteresisDistance" format="dimension" />
|
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
<!-- Amount to offset the touch Y coordinate by, for bias correction. -->
|
|
|
|
<attr name="verticalCorrection" format="dimension" />
|
|
|
|
|
|
|
|
<!-- Layout resource for popup keyboards. -->
|
|
|
|
<attr name="popupLayout" format="reference" />
|
|
|
|
|
|
|
|
<attr name="shadowColor" format="color" />
|
|
|
|
<attr name="shadowRadius" format="float" />
|
|
|
|
<attr name="backgroundDimAmount" format="float" />
|
|
|
|
|
2010-12-01 03:22:19 +00:00
|
|
|
<attr name="keyLetterStyle">
|
|
|
|
<!-- This should be aligned with Typeface.NORMAL etc. -->
|
2010-11-22 00:40:38 +00:00
|
|
|
<enum name="normal" value="0" />
|
|
|
|
<enum name="bold" value="1" />
|
|
|
|
<enum name="italic" value="2" />
|
2010-12-01 03:22:19 +00:00
|
|
|
<enum name="boldItalic" value="3" />
|
2010-08-20 05:35:02 +00:00
|
|
|
</attr>
|
|
|
|
|
2010-11-22 00:40:38 +00:00
|
|
|
<attr name="colorScheme">
|
2010-12-02 09:46:21 +00:00
|
|
|
<!-- This should be aligned with KeyboardView.COLOR_SCHEME_* -->
|
2010-11-22 00:40:38 +00:00
|
|
|
<enum name="white" value="0" />
|
|
|
|
<enum name="black" value="1" />
|
2010-08-20 05:35:02 +00:00
|
|
|
</attr>
|
|
|
|
|
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard">
|
2010-12-08 05:36:41 +00:00
|
|
|
<!-- Default keyboard height -->
|
|
|
|
<attr name="keyboardHeight" format="dimension" />
|
|
|
|
<!-- Maximum keyboard height, in pixels or percentage of display height -->
|
|
|
|
<attr name="maxKeyboardHeight" format="dimension|fraction" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Default width of a key, in pixels or percentage of display width. -->
|
|
|
|
<attr name="keyWidth" format="dimension|fraction" />
|
2010-12-08 05:36:41 +00:00
|
|
|
<!-- Default height of a row (key height + vertical gap), in pixels or percentage of
|
|
|
|
keyboard height. -->
|
|
|
|
<attr name="rowHeight" format="dimension|fraction" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Default horizontal gap between keys. -->
|
|
|
|
<attr name="horizontalGap" format="dimension|fraction" />
|
|
|
|
<!-- Default vertical gap between rows of keys. -->
|
|
|
|
<attr name="verticalGap" format="dimension|fraction" />
|
2010-12-14 06:31:47 +00:00
|
|
|
<!-- Popup keyboard layout template -->
|
|
|
|
<attr name="popupKeyboardTemplate" format="reference" />
|
2010-10-01 10:40:44 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Key">
|
2010-12-20 11:30:26 +00:00
|
|
|
<!-- The unicode value that this key outputs. -->
|
|
|
|
<attr name="code" format="integer" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- The characters to display in the popup keyboard. -->
|
|
|
|
<attr name="popupCharacters" format="string" />
|
2010-12-14 06:31:47 +00:00
|
|
|
<!-- Maximum column of popup keyboard -->
|
|
|
|
<attr name="maxPopupKeyboardColumn" format="integer" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Key edge flags. -->
|
|
|
|
<attr name="keyEdgeFlags">
|
|
|
|
<!-- Key is anchored to the left of the keyboard. -->
|
|
|
|
<flag name="left" value="1" />
|
|
|
|
<!-- Key is anchored to the right of the keyboard. -->
|
|
|
|
<flag name="right" value="2" />
|
|
|
|
</attr>
|
|
|
|
<!-- Whether this is a modifier key such as Alt or Shift. -->
|
|
|
|
<attr name="isModifier" format="boolean" />
|
|
|
|
<!-- Whether this is a toggle key. -->
|
|
|
|
<attr name="isSticky" format="boolean" />
|
|
|
|
<!-- Whether long-pressing on this key will make it repeat. -->
|
|
|
|
<attr name="isRepeatable" format="boolean" />
|
|
|
|
<!-- The icon to show in the popup preview. -->
|
|
|
|
<attr name="iconPreview" format="reference" />
|
|
|
|
<!-- The string of characters to output when this key is pressed. -->
|
|
|
|
<attr name="keyOutputText" format="string" />
|
|
|
|
<!-- The label to display on the key. -->
|
|
|
|
<attr name="keyLabel" format="string" />
|
2010-11-20 16:03:24 +00:00
|
|
|
<!-- The key label option -->
|
|
|
|
<attr name="keyLabelOption">
|
2010-12-02 09:46:21 +00:00
|
|
|
<!-- This should be aligned with KeyboardView.KEY_LABEL_OPTION_* -->
|
2010-11-20 16:03:24 +00:00
|
|
|
<flag name="alignLeft" value="1" />
|
|
|
|
<flag name="alignRight" value="2" />
|
|
|
|
<flag name="alignBottom" value="8" />
|
2010-11-23 06:51:59 +00:00
|
|
|
<flag name="fontNormal" value="16" />
|
2010-11-20 16:03:24 +00:00
|
|
|
</attr>
|
2010-11-13 08:16:34 +00:00
|
|
|
<!-- The unicode that this key generates in manual temporary upper case mode. -->
|
|
|
|
<attr name="manualTemporaryUpperCaseCode" format="integer" />
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- The icon to display on the key instead of the label. -->
|
|
|
|
<attr name="keyIcon" format="reference" />
|
2010-10-02 06:17:27 +00:00
|
|
|
<!-- The hint icon to display on the key in conjunction with the label -->
|
|
|
|
<attr name="keyHintIcon" format="reference" />
|
2010-11-13 08:16:34 +00:00
|
|
|
<!-- The hint icon to display on the key when keyboard is in manual temporary upper case
|
|
|
|
mode. -->
|
|
|
|
<attr name="manualTemporaryUpperCaseHintIcon" format="reference" />
|
2010-11-19 22:57:24 +00:00
|
|
|
<!-- The key style to specify a set of key attributes defined by <key_style/> -->
|
|
|
|
<attr name="keyStyle" format="string" />
|
2010-11-24 07:59:56 +00:00
|
|
|
<!-- Shift key icon for shifted state -->
|
|
|
|
<attr name="shiftedIcon" format="reference" />
|
2010-10-01 10:40:44 +00:00
|
|
|
</declare-styleable>
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Row">
|
2010-10-01 10:40:44 +00:00
|
|
|
<!-- Row edge flags. -->
|
|
|
|
<attr name="rowEdgeFlags">
|
|
|
|
<!-- Row is anchored to the top of the keyboard. -->
|
|
|
|
<flag name="top" value="4" />
|
|
|
|
<!-- Row is anchored to the bottom of the keyboard. -->
|
|
|
|
<flag name="bottom" value="8" />
|
|
|
|
</attr>
|
|
|
|
</declare-styleable>
|
2010-10-07 08:13:30 +00:00
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Include">
|
2010-10-07 08:13:30 +00:00
|
|
|
<attr name="keyboardLayout" format="reference" />
|
|
|
|
</declare-styleable>
|
2010-11-11 23:28:14 +00:00
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_Case">
|
|
|
|
<!-- This should be aligned with KeyboardId.MODE_* -->
|
2010-11-19 22:57:24 +00:00
|
|
|
<attr name="mode">
|
2010-11-20 16:03:24 +00:00
|
|
|
<enum name="text" value="0" />
|
|
|
|
<enum name="url" value="1" />
|
|
|
|
<enum name="email" value="2" />
|
|
|
|
<enum name="im" value="3" />
|
|
|
|
<enum name="web" value="4" />
|
|
|
|
<enum name="phone" value="5" />
|
2010-11-19 22:57:24 +00:00
|
|
|
</attr>
|
2010-11-20 02:45:30 +00:00
|
|
|
<attr name="hasSettingsKey" format="string" />
|
|
|
|
<attr name="voiceKeyEnabled" format="string" />
|
|
|
|
<attr name="hasVoiceKey" format="string" />
|
2010-11-20 00:04:52 +00:00
|
|
|
<attr name="imeOptions">
|
|
|
|
<!-- This should be aligned with EditorInfo.IME_ACTION_* -->
|
|
|
|
<flag name="actionUnspecified" value="0" />
|
|
|
|
<flag name="actionNone" value="1" />
|
|
|
|
<flag name="actionGo" value="2" />
|
|
|
|
<flag name="actionSearch" value="3" />
|
|
|
|
<flag name="actionSend" value="4" />
|
|
|
|
<flag name="actionNext" value="5" />
|
|
|
|
<flag name="actionDone" value="6" />
|
|
|
|
<flag name="actionPrevious" value="7" />
|
|
|
|
</attr>
|
2010-11-11 23:28:14 +00:00
|
|
|
</declare-styleable>
|
2010-11-19 22:57:24 +00:00
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
<declare-styleable name="Keyboard_KeyStyle">
|
2010-11-19 22:57:24 +00:00
|
|
|
<attr name="styleName" format="string" />
|
|
|
|
<attr name="parentStyle" format="string" />
|
|
|
|
</declare-styleable>
|
2010-08-20 05:35:02 +00:00
|
|
|
</resources>
|