mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
28a38fdfee
Previously tab key is shown only when the input type variant says that it is web input. In addition to that, this change also shows tab key when the IME option includes editor action (next and/or previous) flag. Bug: 3094312 Change-Id: I3f8841fdbcee918a0f93f3259090f24e70d96471
261 lines
12 KiB
XML
261 lines
12 KiB
XML
<?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>
|
|
<declare-styleable name="KeyboardTheme">
|
|
<!-- Keyboard style -->
|
|
<attr name="keyboardStyle" format="reference" />
|
|
<!-- LatinKeyboard style -->
|
|
<attr name="latinKeyboardStyle" format="reference" />
|
|
<!-- KeyboardView style -->
|
|
<attr name="keyboardViewStyle" format="reference" />
|
|
<attr name="keyPreviewStyle" format="reference" />
|
|
<!-- PopupMiniKeyboardView style -->
|
|
<attr name="popupMiniKeyboardViewStyle" format="reference" />
|
|
<attr name="popupMiniKeyboardPanelStyle" format="reference" />
|
|
<!-- Suggestions strip style -->
|
|
<attr name="suggestionsStripBackgroundStyle" format="reference" />
|
|
<attr name="suggestionBackgroundStyle" format="reference" />
|
|
<attr name="suggestionPreviewBackgroundStyle" format="reference" />
|
|
<attr name="candidateViewStyle" format="reference" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="KeyboardView">
|
|
<!-- 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" />
|
|
|
|
<!-- Size of the text for one letter keys, in the proportion of key height. -->
|
|
<attr name="keyLetterRatio" format="float" />
|
|
<!-- Size of the text for keys with some text, in the proportion of key height. -->
|
|
<attr name="keyLabelRatio" format="float" />
|
|
<!-- Size of the text for hint letter, in the proportion of key height. -->
|
|
<attr name="keyHintLetterRatio" format="float" />
|
|
<!-- Size of the text for upper case letter, in the proportion of key height. -->
|
|
<attr name="keyUppercaseLetterRatio" format="float" />
|
|
|
|
<!-- Color to use for the label in a key. -->
|
|
<attr name="keyTextColor" format="color" />
|
|
<!-- Color to use for the label in a key when in inactivated state. -->
|
|
<attr name="keyTextInactivatedColor" format="color" />
|
|
<!-- Key hint letter color -->
|
|
<attr name="keyHintLetterColor" format="color" />
|
|
<!-- Upper case letter colors -->
|
|
<attr name="keyUppercaseLetterInactivatedColor" format="color" />
|
|
<attr name="keyUppercaseLetterActivatedColor" format="color" />
|
|
|
|
<!-- Popup hint icon "..." -->
|
|
<attr name="keyPopupHintIcon" format="reference" />
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- Hysteresis distance for key debouncing -->
|
|
<attr name="keyHysteresisDistance" format="dimension" />
|
|
|
|
<!-- 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" />
|
|
|
|
<attr name="keyTextStyle" format="enum">
|
|
<!-- This should be aligned with Typeface.NORMAL etc. -->
|
|
<enum name="normal" value="0" />
|
|
<enum name="bold" value="1" />
|
|
<enum name="italic" value="2" />
|
|
<enum name="boldItalic" value="3" />
|
|
</attr>
|
|
|
|
<attr name="colorScheme" format="enum">
|
|
<!-- This should be aligned with KeyboardView.COLOR_SCHEME_* -->
|
|
<enum name="white" value="0" />
|
|
<enum name="black" value="1" />
|
|
</attr>
|
|
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="CandidateView">
|
|
<attr name="autoCorrectHighlight" format="integer">
|
|
<flag name="autoCorrectBold" value="0x01" />
|
|
<flag name="autoCorrectUnderline" value="0x02" />
|
|
<flag name="autoCorrectInvert" value="0x04" />
|
|
</attr>
|
|
<attr name="colorTypedWord" format="color" />
|
|
<attr name="colorAutoCorrect" format="color" />
|
|
<attr name="colorSuggested" format="color" />
|
|
<attr name="iconExpandPane" format="reference" />
|
|
<attr name="iconClosePane" format="reference" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="Keyboard">
|
|
<!-- Default keyboard height -->
|
|
<attr name="keyboardHeight" format="dimension" />
|
|
<!-- Maximum keyboard height, in pixels or percentage of display height -->
|
|
<attr name="maxKeyboardHeight" format="dimension|fraction" />
|
|
<!-- Minimum keyboard height represented in pixels, percentage of display height if fraction
|
|
is positive, or percentage of display width if fraction is negative. -->
|
|
<attr name="minKeyboardHeight" format="dimension|fraction" />
|
|
<!-- Default width of a key, in pixels or percentage of display width.
|
|
If the value is zero, the actual key width will be determined to fill out the area up
|
|
to the right edge of the keyboard.
|
|
If the value is negative, the actual key width will be determined to fill out the
|
|
area between the nearest key on the left hand side and the right edge of the keyboard.
|
|
-->
|
|
<attr name="keyWidth" format="dimension|fraction|enum">
|
|
<enum name="fillRight" value="0" />
|
|
<enum name="fillBoth" value="-1" />
|
|
</attr>
|
|
<!-- Default height of a row (key height + vertical gap), in pixels or percentage of
|
|
keyboard height. -->
|
|
<attr name="rowHeight" format="dimension|fraction" />
|
|
<!-- Default horizontal gap between keys. -->
|
|
<attr name="horizontalGap" format="dimension|fraction" />
|
|
<!-- Default vertical gap between rows of keys. -->
|
|
<attr name="verticalGap" format="dimension|fraction" />
|
|
<!-- Popup keyboard layout template -->
|
|
<attr name="popupKeyboardTemplate" format="reference" />
|
|
<!-- Locale of the keyboard layout -->
|
|
<attr name="keyboardLocale" format="string" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="Keyboard_Key">
|
|
<!-- The unicode value that this key outputs. -->
|
|
<attr name="code" format="integer" />
|
|
<!-- The characters to display in the popup keyboard. -->
|
|
<attr name="popupCharacters" format="string" />
|
|
<!-- Maximum column of popup keyboard -->
|
|
<attr name="maxPopupKeyboardColumn" format="integer" />
|
|
<!-- Key edge flags. -->
|
|
<attr name="keyEdgeFlags" format="integer">
|
|
<!-- 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 functional key which has different key top than normal key. -->
|
|
<attr name="isFunctional" 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" />
|
|
<!-- The hint letter to display on the key in conjunction with the label. -->
|
|
<attr name="keyHintLetter" format="string" />
|
|
<!-- The key label option. -->
|
|
<attr name="keyLabelOption" format="integer">
|
|
<!-- This should be aligned with Key.LABEL_OPTION_* -->
|
|
<flag name="alignLeft" value="0x01" />
|
|
<flag name="alignRight" value="0x02" />
|
|
<flag name="alignBottom" value="0x08" />
|
|
<flag name="fontNormal" value="0x10" />
|
|
<flag name="popupHint" value="0x20" />
|
|
<flag name="hasUppercaseLetter" value="0x40" />
|
|
</attr>
|
|
<!-- The icon to display on the key instead of the label. -->
|
|
<attr name="keyIcon" format="reference" />
|
|
<!-- The key style to specify a set of key attributes defined by <key_style/> -->
|
|
<attr name="keyStyle" format="string" />
|
|
<!-- Shift key icon for shifted state -->
|
|
<attr name="shiftedIcon" format="reference" />
|
|
<!-- The key is enabled and responds on press. -->
|
|
<attr name="enabled" format="boolean" />
|
|
<!-- Visual insets -->
|
|
<attr name="visualInsetsLeft" format="dimension|fraction" />
|
|
<attr name="visualInsetsRight" format="dimension|fraction" />
|
|
<!-- The X-coordinate of upper right corner of this key including horizontal gap.
|
|
If the value is negative, the origin is the right edge of the keyboard. -->
|
|
<attr name="keyXPos" format="dimension|fraction" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="Keyboard_Row">
|
|
<!-- Row edge flags. -->
|
|
<attr name="rowEdgeFlags" format="integer">
|
|
<!-- 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>
|
|
|
|
<declare-styleable name="Keyboard_Include">
|
|
<attr name="keyboardLayout" format="reference" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="Keyboard_Case">
|
|
<!-- This should be aligned with KeyboardId.MODE_* -->
|
|
<attr name="mode" format="enum|string">
|
|
<enum name="text" value="0" />
|
|
<enum name="url" value="1" />
|
|
<enum name="email" value="2" />
|
|
<enum name="im" value="3" />
|
|
<enum name="phone" value="4" />
|
|
<enum name="number" value="5" />
|
|
</attr>
|
|
<attr name="navigateAction" format="boolean" />
|
|
<attr name="passwordInput" format="boolean" />
|
|
<attr name="hasSettingsKey" format="boolean" />
|
|
<attr name="voiceKeyEnabled" format="boolean" />
|
|
<attr name="hasVoiceKey" format="boolean" />
|
|
<attr name="imeAction" format="enum">
|
|
<!-- This should be aligned with EditorInfo.IME_ACTION_* -->
|
|
<enum name="actionUnspecified" value="0" />
|
|
<enum name="actionNone" value="1" />
|
|
<enum name="actionGo" value="2" />
|
|
<enum name="actionSearch" value="3" />
|
|
<enum name="actionSend" value="4" />
|
|
<enum name="actionNext" value="5" />
|
|
<enum name="actionDone" value="6" />
|
|
<enum name="actionPrevious" value="7" />
|
|
</attr>
|
|
<attr name="localeCode" format="string" />
|
|
<attr name="languageCode" format="string" />
|
|
<attr name="countryCode" format="string" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="Keyboard_KeyStyle">
|
|
<attr name="styleName" format="string" />
|
|
<attr name="parentStyle" format="string" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="LatinKeyboard">
|
|
<attr name="autoCorrectionSpacebarLedIcon" format="reference" />
|
|
<attr name="disabledShortcutIcon" format="reference" />
|
|
<attr name="spacebarTextColor" format="color" />
|
|
<attr name="spacebarTextShadowColor" format="color" />
|
|
<attr name="spacebarArrowLeftIcon" format="reference" />
|
|
<attr name="spacebarArrowRightIcon" format="reference" />
|
|
<attr name="spacebarArrowPreviewLeftIcon" format="reference" />
|
|
<attr name="spacebarArrowPreviewRightIcon" format="reference" />
|
|
</declare-styleable>
|
|
</resources>
|