am 4e854767: Merge "Consolidate keyIcon and code with keyLabel attribute"
* commit '4e85476740104ae4b91c3d22df2fb0ee4ecd5c5b': Consolidate keyIcon and code with keyLabel attributemain
commit
e03aef8f1d
|
@ -236,11 +236,6 @@
|
|||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="Keyboard_Key">
|
||||
<!-- TODO: Remove code attribute and consolidate with keySpec. -->
|
||||
<!-- The unicode value that this key outputs.
|
||||
Code value represented in hexadecimal prefixed with "0x" or code value reference using
|
||||
"!code/<code_name>" notation. -->
|
||||
<attr name="code" format="string" />
|
||||
<!-- The alternate unicode value that this key outputs while typing.
|
||||
Code value represented in hexadecimal prefixed with "0x" or code value reference using
|
||||
"!code/<code_name>" notation. -->
|
||||
|
@ -314,9 +309,6 @@
|
|||
<!-- If true, disable additionalMoreKeys. -->
|
||||
<flag name="disableAdditionalMoreKeys" value="0x80000000" />
|
||||
</attr>
|
||||
<!-- TODO: Remove keyIcon attribute and consolidate with keySpec. -->
|
||||
<!-- The icon to display on the key instead of the label. -->
|
||||
<attr name="keyIcon" format="string" />
|
||||
<!-- The icon for disabled key -->
|
||||
<attr name="keyIconDisabled" format="string" />
|
||||
<!-- The icon to show in the popup preview. -->
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
<!-- Base style for shift key. A single space is used for dummy label in moreKeys. -->
|
||||
<key-style
|
||||
latin:styleName="baseForShiftKeyStyle"
|
||||
latin:code="!code/key_shift"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:keyLabelFlags="preserveCase"
|
||||
latin:moreKeys="!noPanelAutoMoreKey!, |!code/key_capslock" />
|
||||
|
@ -49,7 +48,7 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="shiftKeyStyle"
|
||||
latin:keyIcon="!icon/shift_key_shifted"
|
||||
latin:keyLabel="!icon/shift_key_shifted|!code/key_shift"
|
||||
latin:backgroundType="stickyOff"
|
||||
latin:parentStyle="baseForShiftKeyStyle" />
|
||||
</case>
|
||||
|
@ -58,71 +57,56 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="shiftKeyStyle"
|
||||
latin:keyIcon="!icon/shift_key_shifted"
|
||||
latin:keyLabel="!icon/shift_key_shifted|!code/key_shift"
|
||||
latin:backgroundType="stickyOn"
|
||||
latin:parentStyle="baseForShiftKeyStyle" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="shiftKeyStyle"
|
||||
latin:keyIcon="!icon/shift_key"
|
||||
latin:keyLabel="!icon/shift_key|!code/key_shift"
|
||||
latin:backgroundType="stickyOff"
|
||||
latin:parentStyle="baseForShiftKeyStyle" />
|
||||
</default>
|
||||
</switch>
|
||||
<key-style
|
||||
latin:styleName="deleteKeyStyle"
|
||||
latin:code="!code/key_delete"
|
||||
latin:keyIcon="!icon/delete_key"
|
||||
latin:keyLabel="!icon/delete_key|!code/key_delete"
|
||||
latin:keyActionFlags="isRepeatable|noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/key_styles_enter" />
|
||||
<!-- Override defaultEnterKeyStyle in key_styles_enter.xml -->
|
||||
<key-style
|
||||
latin:styleName="defaultEnterKeyStyle"
|
||||
latin:code="!code/key_enter"
|
||||
latin:keyIcon="!icon/enter_key"
|
||||
latin:keyLabelFlags="preserveCase|autoXScale|followKeyLargeLabelRatio"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional"
|
||||
latin:parentStyle="navigateMoreKeysStyle" />
|
||||
<key-style
|
||||
latin:styleName="spaceKeyStyle"
|
||||
latin:code="!code/key_space"
|
||||
latin:keyLabel=" |!code/key_space"
|
||||
latin:keyActionFlags="noKeyPreview|enableLongPress" />
|
||||
<!-- U+200C: ZERO WIDTH NON-JOINER
|
||||
U+200D: ZERO WIDTH JOINER -->
|
||||
<key-style
|
||||
latin:styleName="zwnjKeyStyle"
|
||||
latin:code="0x200C"
|
||||
latin:keyIcon="!icon/zwnj_key"
|
||||
latin:keyLabel="!icon/zwnj_key|‌"
|
||||
latin:moreKeys="!icon/zwj_key|‍"
|
||||
latin:keyLabelFlags="hasPopupHint"
|
||||
latin:keyActionFlags="noKeyPreview" />
|
||||
<key-style
|
||||
latin:styleName="shortcutKeyStyle"
|
||||
latin:code="!code/key_shortcut"
|
||||
latin:keyIcon="!icon/shortcut_key"
|
||||
latin:keyLabel="!icon/shortcut_key|!code/key_shortcut"
|
||||
latin:keyIconDisabled="!icon/shortcut_key_disabled"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<key-style
|
||||
latin:styleName="languageSwitchKeyStyle"
|
||||
latin:code="!code/key_language_switch"
|
||||
latin:keyIcon="!icon/language_switch_key"
|
||||
latin:keyLabel="!icon/language_switch_key|!code/key_language_switch"
|
||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping|enableLongPress"
|
||||
latin:altCode="!code/key_space" />
|
||||
<key-style
|
||||
latin:styleName="emojiKeyStyle"
|
||||
latin:code="!code/key_emoji"
|
||||
latin:keyIcon="!icon/emoji_key"
|
||||
latin:keyLabel="!icon/emoji_key|!code/key_emoji"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<key-style
|
||||
latin:styleName="settingsKeyStyle"
|
||||
latin:code="!code/key_settings"
|
||||
latin:keyIcon="!icon/settings_key"
|
||||
latin:keyLabel="!icon/settings_key|!code/key_settings"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<switch>
|
||||
|
@ -132,8 +116,7 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="tabKeyStyle"
|
||||
latin:code="!code/key_action_previous"
|
||||
latin:keyIcon="!icon/tab_key"
|
||||
latin:keyLabel="!icon/tab_key|!code/key_action_previous"
|
||||
latin:keyIconPreview="!icon/tab_key_preview"
|
||||
latin:backgroundType="functional" />
|
||||
</case>
|
||||
|
@ -143,16 +126,14 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="tabKeyStyle"
|
||||
latin:code="!code/key_action_next"
|
||||
latin:keyIcon="!icon/tab_key"
|
||||
latin:keyLabel="!icon/tab_key|!code/key_action_next"
|
||||
latin:keyIconPreview="!icon/tab_key_preview"
|
||||
latin:backgroundType="functional" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="tabKeyStyle"
|
||||
latin:code="!code/key_tab"
|
||||
latin:keyIcon="!icon/tab_key"
|
||||
latin:keyLabel="!icon/tab_key|!code/key_tab"
|
||||
latin:keyIconPreview="!icon/tab_key_preview"
|
||||
latin:backgroundType="functional" />
|
||||
</default>
|
||||
|
@ -164,23 +145,19 @@
|
|||
latin:backgroundType="functional" />
|
||||
<key-style
|
||||
latin:styleName="toSymbolKeyStyle"
|
||||
latin:code="!code/key_switch_alpha_symbol"
|
||||
latin:keyLabel="!text/label_to_symbol_key"
|
||||
latin:keyLabel="!text/label_to_symbol_key|!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="toAlphaKeyStyle"
|
||||
latin:code="!code/key_switch_alpha_symbol"
|
||||
latin:keyLabel="!text/label_to_alpha_key"
|
||||
latin:keyLabel="!text/label_to_alpha_key|!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="toMoreSymbolKeyStyle"
|
||||
latin:code="!code/key_shift"
|
||||
latin:keyLabel="!text/label_to_more_symbol_for_tablet_key"
|
||||
latin:keyLabel="!text/label_to_more_symbol_for_tablet_key|!code/key_shift"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="backFromMoreSymbolKeyStyle"
|
||||
latin:code="!code/key_shift"
|
||||
latin:keyLabel="!text/label_to_symbol_key"
|
||||
latin:keyLabel="!text/label_to_symbol_key|!code/key_shift"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="comKeyStyle"
|
||||
|
|
|
@ -99,22 +99,11 @@
|
|||
<!-- Enter key style -->
|
||||
<key-style
|
||||
latin:styleName="defaultEnterKeyStyle"
|
||||
latin:code="!code/key_enter"
|
||||
latin:keyIcon="!icon/enter_key"
|
||||
latin:keyLabel="!icon/enter_key|!code/key_enter"
|
||||
latin:keyLabelFlags="preserveCase|autoXScale|followKeyLabelRatio"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional"
|
||||
latin:parentStyle="navigateMoreKeysStyle" />
|
||||
<key-style
|
||||
latin:styleName="shiftEnterKeyStyle"
|
||||
latin:code="!code/key_shift_enter"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="defaultActionEnterKeyStyle"
|
||||
latin:code="!code/key_enter"
|
||||
latin:keyIcon="!icon/undefined"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
<switch>
|
||||
<!-- Shift + Enter in textMultiLine field. -->
|
||||
<case
|
||||
|
@ -123,63 +112,72 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:parentStyle="shiftEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_go_key|!code/key_shift_enter"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionGo"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_go_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_go_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionNext"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_next_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_next_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionPrevious"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_previous_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_previous_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionDone"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_done_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_done_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionSend"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_send_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_send_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionSearch"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyIcon="!icon/search_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!icon/search_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionCustomLabel"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="dummy_label|!code/key_enter"
|
||||
latin:keyLabelFlags="fromCustomActionLabel"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<!-- imeAction is either actionNone or actionUnspecified. -->
|
||||
<default>
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
<!-- U+25CC: "◌" DOTTED CIRCLE
|
||||
U+0902: "ं" DEVANAGARI SIGN ANUSVARA -->
|
||||
<Key
|
||||
latin:keyLabel="◌ं"
|
||||
latin:code="0x0902"
|
||||
latin:keyLabel="◌ं|ं"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
U+0901: "ँ" DEVANAGARI SIGN CANDRABINDU -->
|
||||
<Key
|
||||
latin:keyStyle="moreKeysDevanagariSignCandrabindu"
|
||||
latin:keyLabel="◌ँ"
|
||||
latin:code="0x0901"
|
||||
latin:keyLabel="◌ँ|ँ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
U+093C: "़" DEVANAGARI SIGN NUKTA -->
|
||||
<Key
|
||||
latin:keyStyle="moreKeysDevanagariSignNukta"
|
||||
latin:keyLabel="◌़"
|
||||
latin:code="0x093C"
|
||||
latin:keyLabel="◌़|़"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
<!-- U+25CC: "◌" DOTTED CIRCLE
|
||||
U+0949: "ॉ" DEVANAGARI VOWEL SIGN CANDRA O -->
|
||||
<Key
|
||||
latin:keyLabel="◌ॉ"
|
||||
latin:code="0x0949"
|
||||
latin:keyLabel="◌ॉ|ॉ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -52,7 +52,6 @@
|
|||
U+0943: "ृ" DEVANAGARI VOWEL SIGN VOCALIC R -->
|
||||
<Key
|
||||
latin:keyStyle="moreKeysDevanagariVowelSignVocalicR"
|
||||
latin:keyLabel="◌ृ"
|
||||
latin:code="0x0943"
|
||||
latin:keyLabel="◌ृ|ृ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
<!-- Base style for shift key. A single space is used for dummy label in moreKeys. -->
|
||||
<key-style
|
||||
latin:styleName="baseForShiftKeyStyle"
|
||||
latin:code="!code/key_shift"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:keyLabelFlags="preserveCase"
|
||||
latin:moreKeys="!noPanelAutoMoreKey!, |!code/key_capslock" />
|
||||
|
@ -52,7 +51,7 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="shiftKeyStyle"
|
||||
latin:keyIcon="!icon/shift_key_shifted"
|
||||
latin:keyLabel="!icon/shift_key_shifted|!code/key_shift"
|
||||
latin:backgroundType="stickyOff"
|
||||
latin:parentStyle="baseForShiftKeyStyle" />
|
||||
</case>
|
||||
|
@ -61,99 +60,70 @@
|
|||
>
|
||||
<key-style
|
||||
latin:styleName="shiftKeyStyle"
|
||||
latin:keyIcon="!icon/shift_key_shifted"
|
||||
latin:keyLabel="!icon/shift_key_shifted|!code/key_shift"
|
||||
latin:backgroundType="stickyOn"
|
||||
latin:parentStyle="baseForShiftKeyStyle" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="shiftKeyStyle"
|
||||
latin:keyIcon="!icon/shift_key"
|
||||
latin:keyLabel="!icon/shift_key|!code/key_shift"
|
||||
latin:backgroundType="stickyOff"
|
||||
latin:parentStyle="baseForShiftKeyStyle" />
|
||||
</default>
|
||||
</switch>
|
||||
<key-style
|
||||
latin:styleName="deleteKeyStyle"
|
||||
latin:code="!code/key_delete"
|
||||
latin:keyIcon="!icon/delete_key"
|
||||
latin:keyLabel="!icon/delete_key|!code/key_delete"
|
||||
latin:keyActionFlags="isRepeatable|noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/key_styles_enter" />
|
||||
<key-style
|
||||
latin:styleName="spaceKeyStyle"
|
||||
latin:code="!code/key_space"
|
||||
latin:keyLabel=" |!code/key_space"
|
||||
latin:keyActionFlags="noKeyPreview|enableLongPress" />
|
||||
<!-- U+200C: ZERO WIDTH NON-JOINER
|
||||
U+200D: ZERO WIDTH JOINER -->
|
||||
<key-style
|
||||
latin:styleName="zwnjKeyStyle"
|
||||
latin:code="0x200C"
|
||||
latin:keyIcon="!icon/zwnj_key"
|
||||
latin:keyLabel="!icon/zwnj_key|‌"
|
||||
latin:moreKeys="!icon/zwj_key|‍"
|
||||
latin:keyLabelFlags="hasPopupHint"
|
||||
latin:keyActionFlags="noKeyPreview" />
|
||||
<key-style
|
||||
latin:styleName="shortcutKeyStyle"
|
||||
latin:code="!code/key_shortcut"
|
||||
latin:keyIcon="!icon/shortcut_key"
|
||||
latin:keyLabel="!icon/shortcut_key|!code/key_shortcut"
|
||||
latin:keyIconDisabled="!icon/shortcut_key_disabled"
|
||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
||||
latin:altCode="!code/key_space"
|
||||
latin:parentStyle="f1MoreKeysStyle" />
|
||||
<key-style
|
||||
latin:styleName="settingsKeyStyle"
|
||||
latin:code="!code/key_settings"
|
||||
latin:keyIcon="!icon/settings_key"
|
||||
latin:keyLabel="!icon/settings_key|!code/key_settings"
|
||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping"
|
||||
latin:altCode="!code/key_space"
|
||||
latin:backgroundType="functional" />
|
||||
<key-style
|
||||
latin:styleName="languageSwitchKeyStyle"
|
||||
latin:code="!code/key_language_switch"
|
||||
latin:keyIcon="!icon/language_switch_key"
|
||||
latin:keyLabel="!icon/language_switch_key|!code/key_language_switch"
|
||||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping|enableLongPress"
|
||||
latin:altCode="!code/key_space" />
|
||||
<key-style
|
||||
latin:styleName="emojiKeyStyle"
|
||||
latin:code="!code/key_emoji"
|
||||
latin:keyIcon="!icon/emoji_key"
|
||||
latin:keyLabel="!icon/emoji_key|!code/key_emoji"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<!-- Overriding EnterKeyStyle here -->
|
||||
<switch>
|
||||
<!-- Shift + Enter in textMultiLine field. -->
|
||||
<case
|
||||
latin:isMultiLine="true"
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLockShifted"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:parentStyle="shiftEnterKeyStyle" />
|
||||
</case>
|
||||
<!-- Smiley in textShortMessage field.
|
||||
Overrides common enter key style. -->
|
||||
<case
|
||||
latin:mode="im"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:parentStyle="emojiKeyStyle" />
|
||||
</case>
|
||||
</switch>
|
||||
<key-style
|
||||
latin:styleName="tabKeyStyle"
|
||||
latin:code="!code/key_tab"
|
||||
latin:keyIcon="!icon/tab_key"
|
||||
latin:keyLabel="!icon/tab_key|!code/key_tab"
|
||||
latin:keyIconPreview="!icon/tab_key_preview"
|
||||
latin:backgroundType="functional" />
|
||||
<!-- Note: This key style is not for functional tab key. This is used for the tab key which is
|
||||
laid out as normal letter key. -->
|
||||
<key-style
|
||||
latin:styleName="nonSpecialBackgroundTabKeyStyle"
|
||||
latin:code="!code/key_tab"
|
||||
latin:keyIcon="!icon/tab_key"
|
||||
latin:keyLabel="!icon/tab_key|!code/key_tab"
|
||||
latin:keyIconPreview="!icon/tab_key_preview" />
|
||||
<key-style
|
||||
latin:styleName="baseForLayoutSwitchKeyStyle"
|
||||
|
@ -161,27 +131,21 @@
|
|||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<key-style
|
||||
latin:styleName="baseForToSymbolKeyStyle"
|
||||
latin:keyLabel="!text/label_to_symbol_key"
|
||||
latin:styleName="toSymbolKeyStyle"
|
||||
latin:keyLabel="!text/label_to_symbol_key|!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="toSymbolKeyStyle"
|
||||
latin:code="!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="baseForToSymbolKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="toAlphaKeyStyle"
|
||||
latin:code="!code/key_switch_alpha_symbol"
|
||||
latin:keyLabel="!text/label_to_alpha_key"
|
||||
latin:keyLabel="!text/label_to_alpha_key|!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="toMoreSymbolKeyStyle"
|
||||
latin:code="!code/key_shift"
|
||||
latin:keyLabel="!text/label_to_more_symbol_key"
|
||||
latin:keyLabel="!text/label_to_more_symbol_key|!code/key_shift"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="backFromMoreSymbolKeyStyle"
|
||||
latin:code="!code/key_shift"
|
||||
latin:parentStyle="baseForToSymbolKeyStyle" />
|
||||
latin:keyLabel="!text/label_to_symbol_key|!code/key_shift"
|
||||
latin:parentStyle="baseForLayoutSwitchKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="comKeyStyle"
|
||||
latin:keyLabel="!text/keylabel_for_popular_domain|!text/keylabel_for_popular_domain"
|
||||
|
|
|
@ -255,21 +255,13 @@
|
|||
<!-- Enter key style -->
|
||||
<key-style
|
||||
latin:styleName="defaultEnterKeyStyle"
|
||||
latin:code="!code/key_enter"
|
||||
latin:keyIcon="!icon/enter_key"
|
||||
latin:keyLabelFlags="preserveCase|autoXScale|followKeyLabelRatio"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional"
|
||||
latin:parentStyle="navigateMoreKeysStyle" />
|
||||
<key-style
|
||||
latin:styleName="shiftEnterKeyStyle"
|
||||
latin:code="!code/key_shift_enter"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="defaultActionEnterKeyStyle"
|
||||
latin:code="!code/key_enter"
|
||||
latin:keyIcon="!icon/undefined"
|
||||
latin:backgroundType="action"
|
||||
latin:keyLabel="!icon/enter_key|!code/key_shift_enter"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
<switch>
|
||||
<!-- Shift + Enter in textMultiLine field. -->
|
||||
|
@ -281,66 +273,84 @@
|
|||
latin:styleName="enterKeyStyle"
|
||||
latin:parentStyle="shiftEnterKeyStyle" />
|
||||
</case>
|
||||
<!-- Smiley in textShortMessage field.
|
||||
This <case> should be after Shift + Enter <case> and before any of action <case>. -->
|
||||
<case
|
||||
latin:mode="im"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:parentStyle="emojiKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionGo"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_go_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_go_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionNext"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_next_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_next_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionPrevious"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_previous_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_previous_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionDone"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_done_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_done_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionSend"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!text/label_send_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!text/label_send_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionSearch"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyIcon="!icon/search_key"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:keyLabel="!icon/search_key|!code/key_enter"
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<case
|
||||
latin:imeAction="actionCustomLabel"
|
||||
>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="dummy_label|!code/key_enter"
|
||||
latin:keyLabelFlags="fromCustomActionLabel"
|
||||
latin:parentStyle="defaultActionEnterKeyStyle" />
|
||||
latin:backgroundType="action"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</case>
|
||||
<!-- imeAction is either actionNone or actionUnspecified. -->
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="enterKeyStyle"
|
||||
latin:keyLabel="!icon/enter_key|!code/key_enter"
|
||||
latin:parentStyle="defaultEnterKeyStyle" />
|
||||
</default>
|
||||
</switch>
|
||||
|
|
|
@ -89,36 +89,28 @@
|
|||
latin:keyLabel="9"
|
||||
latin:keyHintLabel="WXYZ"
|
||||
latin:parentStyle="numberKeyStyle" />
|
||||
<!-- U+002A: "*" ASTERISK
|
||||
U+FF0A: "*" FULLWIDTH ASTERISK -->
|
||||
<!-- U+FF0A: "*" FULLWIDTH ASTERISK -->
|
||||
<key-style
|
||||
latin:styleName="numStarKeyStyle"
|
||||
latin:code="0x002A"
|
||||
latin:keyLabel="*"
|
||||
latin:keyLabel="*|*"
|
||||
latin:parentStyle="numKeyStyle" />
|
||||
<!-- Only for non-tablet device -->
|
||||
<key-style
|
||||
latin:styleName="numPhoneToSymbolKeyStyle"
|
||||
latin:code="!code/key_switch_alpha_symbol"
|
||||
latin:keyLabel="!text/label_to_phone_symbols_key"
|
||||
latin:keyLabel="!text/label_to_phone_symbols_key|!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="numModeKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="numPhoneToNumericKeyStyle"
|
||||
latin:code="!code/key_switch_alpha_symbol"
|
||||
latin:keyLabel="!text/label_to_phone_numeric_key"
|
||||
latin:keyLabel="!text/label_to_phone_numeric_key|!code/key_switch_alpha_symbol"
|
||||
latin:parentStyle="numModeKeyStyle" />
|
||||
<!-- U+002C: "," COMMA -->
|
||||
<key-style
|
||||
latin:styleName="numPauseKeyStyle"
|
||||
latin:code="0x002C"
|
||||
latin:keyLabel="!text/label_pause_key"
|
||||
latin:keyLabel="!text/label_pause_key|,"
|
||||
latin:keyLabelFlags="followKeyHintLabelRatio|autoXScale"
|
||||
latin:parentStyle="numKeyBaseStyle" />
|
||||
<!-- U+003B: ";" SEMICOLON -->
|
||||
<key-style
|
||||
latin:styleName="numWaitKeyStyle"
|
||||
latin:code="0x003B"
|
||||
latin:keyLabel="!text/label_wait_key"
|
||||
latin:keyLabel="!text/label_wait_key|;"
|
||||
latin:keyLabelFlags="followKeyHintLabelRatio|autoXScale"
|
||||
latin:parentStyle="numKeyBaseStyle" />
|
||||
<key-style
|
||||
|
@ -127,15 +119,13 @@
|
|||
latin:parentStyle="tabKeyStyle" />
|
||||
<key-style
|
||||
latin:styleName="numSpaceKeyStyle"
|
||||
latin:code="!code/key_space"
|
||||
latin:keyIcon="!icon/space_key_for_number_layout"
|
||||
latin:keyLabel="!icon/space_key_for_number_layout|!code/key_space"
|
||||
latin:keyActionFlags="enableLongPress"
|
||||
latin:parentStyle="numKeyBaseStyle" />
|
||||
<!-- Override defaultEnterKeyStyle in key_styles_enter.xml -->
|
||||
<key-style
|
||||
latin:styleName="defaultEnterKeyStyle"
|
||||
latin:code="!code/key_enter"
|
||||
latin:keyIcon="!icon/enter_key"
|
||||
latin:keyLabel="!icon/enter_key|!code/key_enter"
|
||||
latin:keyLabelFlags="preserveCase|autoXScale|followKeyLargeLabelRatio"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional"
|
||||
|
|
|
@ -22,9 +22,7 @@
|
|||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
>
|
||||
<Key
|
||||
latin:keyLabel="{"
|
||||
latin:code="!code/key_left_curly_bracket" />
|
||||
latin:keyLabel="{|!code/key_left_curly_bracket" />
|
||||
<Key
|
||||
latin:keyLabel="}"
|
||||
latin:code="!code/key_right_curly_bracket" />
|
||||
latin:keyLabel="}|!code/key_right_curly_bracket" />
|
||||
</merge>
|
||||
|
|
|
@ -25,28 +25,25 @@
|
|||
<case
|
||||
latin:languageCode="fa"
|
||||
>
|
||||
<!-- TODO: Introduce !code/key_{left,right}_angle_quotation. -->
|
||||
<!-- U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
|
||||
U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK -->
|
||||
<Key
|
||||
latin:keyLabel="«"
|
||||
latin:code="0x00BB"
|
||||
latin:keyLabel="«|»"
|
||||
latin:backgroundType="functional"
|
||||
latin:moreKeys="!text/more_keys_for_less_than" />
|
||||
<Key
|
||||
latin:keyLabel="»"
|
||||
latin:code="0x00AB"
|
||||
latin:keyLabel="»|«"
|
||||
latin:backgroundType="functional"
|
||||
latin:moreKeys="!text/more_keys_for_greater_than" />
|
||||
</case>
|
||||
<default>
|
||||
<Key
|
||||
latin:keyLabel="<"
|
||||
latin:code="!code/key_less_than"
|
||||
latin:keyLabel="<|!code/key_less_than"
|
||||
latin:backgroundType="functional"
|
||||
latin:moreKeys="!text/more_keys_for_less_than" />
|
||||
<Key
|
||||
latin:keyLabel=">"
|
||||
latin:code="!code/key_greater_than"
|
||||
latin:keyLabel=">|!code/key_greater_than"
|
||||
latin:backgroundType="functional"
|
||||
latin:moreKeys="!text/more_keys_for_greater_than" />
|
||||
</default>
|
||||
|
|
|
@ -22,11 +22,9 @@
|
|||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
>
|
||||
<Key
|
||||
latin:keyLabel="("
|
||||
latin:code="!code/key_left_parenthesis"
|
||||
latin:keyLabel="(|!code/key_left_parenthesis"
|
||||
latin:moreKeys="!text/more_keys_for_left_parenthesis" />
|
||||
<Key
|
||||
latin:keyLabel=")"
|
||||
latin:code="!code/key_right_parenthesis"
|
||||
latin:keyLabel=")|!code/key_right_parenthesis"
|
||||
latin:moreKeys="!text/more_keys_for_right_parenthesis" />
|
||||
</merge>
|
||||
|
|
|
@ -22,9 +22,7 @@
|
|||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
>
|
||||
<Key
|
||||
latin:keyLabel="["
|
||||
latin:code="!code/key_left_square_bracket" />
|
||||
latin:keyLabel="[|!code/key_left_square_bracket" />
|
||||
<Key
|
||||
latin:keyLabel="]"
|
||||
latin:code="!code/key_right_square_bracket" />
|
||||
latin:keyLabel="]|!code/key_right_square_bracket" />
|
||||
</merge>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
U+094D: "्" DEVANAGARI SIGN VIRAMA -->
|
||||
<key-style
|
||||
latin:styleName="baseKeyDevanagariSignVirama"
|
||||
latin:keyLabel="◌्"
|
||||
latin:code="0x094D"
|
||||
latin:keyLabel="◌्|्"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
U+0903: "ः" DEVANAGARI SIGN VISARGA -->
|
||||
<key-style
|
||||
latin:styleName="baseKeyDevanagariSignVisarga"
|
||||
latin:keyLabel="◌ः"
|
||||
latin:code="0x0903"
|
||||
latin:keyLabel="◌ः|ः"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignAa"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignAa"
|
||||
latin:keyLabel="◌ा"
|
||||
latin:code="0x093E"
|
||||
latin:keyLabel="◌ा|ा"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignAi"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignAi"
|
||||
latin:keyLabel="◌ै"
|
||||
latin:code="0x0948"
|
||||
latin:keyLabel="◌ै|ै"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignAu"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignAu"
|
||||
latin:keyLabel="◌ौ"
|
||||
latin:code="0x094C"
|
||||
latin:keyLabel="◌ौ|ौ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignE"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignE"
|
||||
latin:keyLabel="◌े"
|
||||
latin:code="0x0947"
|
||||
latin:keyLabel="◌े|े"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignI"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignI"
|
||||
latin:keyLabel="◌ि"
|
||||
latin:code="0x093F"
|
||||
latin:keyLabel="◌ि|ि"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignIi"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignIi"
|
||||
latin:keyLabel="◌ी"
|
||||
latin:code="0x0940"
|
||||
latin:keyLabel="◌ी|ी"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignO"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignO"
|
||||
latin:keyLabel="◌ो"
|
||||
latin:code="0x094B"
|
||||
latin:keyLabel="◌ो|ो"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignU"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignU"
|
||||
latin:keyLabel="◌ु"
|
||||
latin:code="0x0941"
|
||||
latin:keyLabel="◌ु|ु"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignUu"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignUu"
|
||||
latin:keyLabel="◌ू"
|
||||
latin:code="0x0942"
|
||||
latin:keyLabel="◌ू|ू"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -28,15 +28,14 @@
|
|||
<case
|
||||
latin:languageCode="fa"
|
||||
>
|
||||
<!-- TODO: Introduce !code/key_{left,right}_angle_quotation. -->
|
||||
<!-- U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
|
||||
U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK -->
|
||||
<Key
|
||||
latin:keyLabel="«"
|
||||
latin:code="0x00BB"
|
||||
latin:keyLabel="«|»"
|
||||
latin:moreKeys="!text/more_keys_for_double_quote" />
|
||||
<Key
|
||||
latin:keyLabel="»"
|
||||
latin:code="0x00AB"
|
||||
latin:keyLabel="»|«"
|
||||
latin:moreKeys="!text/more_keys_for_single_quote" />
|
||||
</case>
|
||||
<default>
|
||||
|
|
|
@ -48,8 +48,7 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ู"
|
||||
latin:code="0x0E39"
|
||||
latin:keyLabel=" ู|ู"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E3F: "฿" THAI CURRENCY SYMBOL BAHT -->
|
||||
<Key
|
||||
|
@ -114,16 +113,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ุ"
|
||||
latin:code="0x0E38"
|
||||
latin:keyLabel=" ุ|ุ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E36: " ึ" THAI CHARACTER SARA UE -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ึ"
|
||||
latin:code="0x0E36"
|
||||
latin:keyLabel=" ึ|ึ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E04: "ค" THAI CHARACTER KHO KHWAI
|
||||
U+0E55: "๕" THAI DIGIT FIVE -->
|
||||
|
|
|
@ -48,16 +48,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ํ"
|
||||
latin:code="0x0E4D"
|
||||
latin:keyLabel=" ํ|ํ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E4A: " ๊" THAI CHARACTER MAI TRI -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ๊"
|
||||
latin:code="0x0E4A"
|
||||
latin:keyLabel=" ๊|๊"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E13: "ณ" THAI CHARACTER NO NEN -->
|
||||
<Key
|
||||
|
@ -108,16 +106,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ั"
|
||||
latin:code="0x0E31"
|
||||
latin:keyLabel=" ั|ั"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E35: " ี" HAI CHARACTER SARA II -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ี"
|
||||
latin:code="0x0E35"
|
||||
latin:keyLabel=" ี|ี"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E23: "ร" THAI CHARACTER RO RUA -->
|
||||
<Key
|
||||
|
|
|
@ -50,16 +50,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ็"
|
||||
latin:code="0x0E47"
|
||||
latin:keyLabel=" ็|็"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E4B: " ๋" THAI CHARACTER MAI CHATTAWA -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ๋"
|
||||
latin:code="0x0E4B"
|
||||
latin:keyLabel=" ๋|๋"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E29: "ษ" THAI CHARACTER SO RUSI -->
|
||||
<Key
|
||||
|
@ -102,16 +100,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ้"
|
||||
latin:code="0x0E49"
|
||||
latin:keyLabel=" ้|้"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E48: " ่" THAI CHARACTER MAI EK -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ่"
|
||||
latin:code="0x0E48"
|
||||
latin:keyLabel=" ่|่"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E32: "า" THAI CHARACTER SARA AA -->
|
||||
<Key
|
||||
|
|
|
@ -42,16 +42,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ฺ"
|
||||
latin:code="0x0E3A"
|
||||
latin:keyLabel=" ฺ|ฺ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E4C: " ์" THAI CHARACTER THANTHAKHAT -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ์"
|
||||
latin:code="0x0E4C"
|
||||
latin:keyLabel=" ์|์"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<Key
|
||||
latin:keyLabel="\?" />
|
||||
|
@ -90,16 +88,14 @@
|
|||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ิ"
|
||||
latin:code="0x0E34"
|
||||
latin:keyLabel=" ิ|ิ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0020: " " SPACE
|
||||
U+0E37: " ื" THAI CHARACTER SARA UEE -->
|
||||
<!-- Note: The space character is needed as a preceding letter to draw some Thai
|
||||
composing characters correctly. -->
|
||||
<Key
|
||||
latin:keyLabel=" ื"
|
||||
latin:code="0x0E37"
|
||||
latin:keyLabel=" ื|ื"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+0E17: "ท" THAI CHARACTER THO THAHAN -->
|
||||
<Key
|
||||
|
|
|
@ -113,10 +113,8 @@
|
|||
<case
|
||||
latin:mode="datetime"
|
||||
>
|
||||
<!-- U+002F: "/" SOLIDUS -->
|
||||
<Key
|
||||
latin:code="0x002F"
|
||||
latin:keyLabel="/ :"
|
||||
latin:keyLabel="/ :|/"
|
||||
latin:moreKeys="!noPanelAutoMoreKey!,:"
|
||||
latin:keyStyle="numKeyStyle" />
|
||||
</case>
|
||||
|
|
|
@ -68,8 +68,7 @@
|
|||
<!-- U+0030: "0" DIGIT ZERO -->
|
||||
<Key
|
||||
latin:keyStyle="num0KeyStyle"
|
||||
latin:code="0x0030"
|
||||
latin:keyLabel="0 +"
|
||||
latin:keyLabel="0 +|0"
|
||||
latin:moreKeys="!noPanelAutoMoreKey!,+" />
|
||||
<Key
|
||||
latin:keyStyle="numSpaceKeyStyle" />
|
||||
|
|
|
@ -316,20 +316,17 @@ public class Key implements Comparable<Key> {
|
|||
mActionFlags = actionFlags;
|
||||
|
||||
final String keySpec = style.getString(keyAttr, R.styleable.Keyboard_Key_keyLabel);
|
||||
if (TextUtils.isEmpty(keySpec)) {
|
||||
throw new RuntimeException("Empty keySpec");
|
||||
}
|
||||
|
||||
final int iconIdInAttr = KeySpecParser.getIconId(style.getString(keyAttr,
|
||||
R.styleable.Keyboard_Key_keyIcon));
|
||||
mIconId = (iconIdInAttr != ICON_UNDEFINED) ? iconIdInAttr
|
||||
: KeySpecParser.getIconId(keySpec);
|
||||
mIconId = KeySpecParser.getIconId(keySpec);
|
||||
final int disabledIconId = KeySpecParser.getIconId(style.getString(keyAttr,
|
||||
R.styleable.Keyboard_Key_keyIconDisabled));
|
||||
final int previewIconId = KeySpecParser.getIconId(style.getString(keyAttr,
|
||||
R.styleable.Keyboard_Key_keyIconPreview));
|
||||
|
||||
final int codeInAttr = KeySpecParser.parseCode(style.getString(keyAttr,
|
||||
R.styleable.Keyboard_Key_code), params.mCodesSet, CODE_UNSPECIFIED);
|
||||
final int code = (codeInAttr != CODE_UNSPECIFIED) ? codeInAttr
|
||||
: KeySpecParser.getCode(keySpec, params.mCodesSet);
|
||||
final int code = KeySpecParser.getCode(keySpec, params.mCodesSet);
|
||||
if ((mLabelFlags & LABEL_FLAGS_FROM_CUSTOM_ACTION_LABEL) != 0) {
|
||||
mLabel = params.mId.mCustomActionLabel;
|
||||
} else if (code >= Character.MIN_SUPPLEMENTARY_CODE_POINT) {
|
||||
|
@ -376,10 +373,10 @@ public class Key implements Comparable<Key> {
|
|||
} else {
|
||||
mCode = StringUtils.toUpperCaseOfCodeForLocale(code, needsToUpperCase, locale);
|
||||
}
|
||||
final int altCodeInAttr = KeySpecParser.parseCode(style.getString(keyAttr,
|
||||
R.styleable.Keyboard_Key_altCode), params.mCodesSet, CODE_UNSPECIFIED);
|
||||
final int altCode = StringUtils.toUpperCaseOfCodeForLocale(
|
||||
KeySpecParser.parseCode(style.getString(keyAttr,
|
||||
R.styleable.Keyboard_Key_altCode), params.mCodesSet, CODE_UNSPECIFIED),
|
||||
needsToUpperCase, locale);
|
||||
altCodeInAttr, needsToUpperCase, locale);
|
||||
mOptionalAttributes = OptionalAttributes.newInstance(outputText, altCode,
|
||||
disabledIconId, previewIconId, visualInsetsLeft, visualInsetsRight);
|
||||
mKeyVisualAttributes = KeyVisualAttributes.newInstance(keyAttr);
|
||||
|
|
|
@ -135,14 +135,12 @@ public final class KeyStylesSet {
|
|||
|
||||
public void readKeyAttributes(final TypedArray keyAttr) {
|
||||
// TODO: Currently not all Key attributes can be declared as style.
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_code);
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_altCode);
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_keyLabel);
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_keyHintLabel);
|
||||
readStringArray(keyAttr, R.styleable.Keyboard_Key_moreKeys);
|
||||
readStringArray(keyAttr, R.styleable.Keyboard_Key_additionalMoreKeys);
|
||||
readFlags(keyAttr, R.styleable.Keyboard_Key_keyLabelFlags);
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_keyIcon);
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_keyIconDisabled);
|
||||
readString(keyAttr, R.styleable.Keyboard_Key_keyIconPreview);
|
||||
readInt(keyAttr, R.styleable.Keyboard_Key_maxMoreKeysColumn);
|
||||
|
|
|
@ -196,8 +196,8 @@
|
|||
<string name="shortcut_as_more_key">!icon/shortcut_key|!code/key_shortcut</string>
|
||||
<string name="action_next_as_more_key">!hasLabels!,\@string/label_next_key|!code/key_action_next</string>
|
||||
<string name="action_previous_as_more_key">!hasLabels!,\@string/label_previous_key|!code/key_action_previous</string>
|
||||
<!-- Label for "switch to more symbol" modifier key. Must be short to fit on key! -->
|
||||
<string name="label_to_more_symbol_key">= \\ <</string>
|
||||
<!-- Label for "switch to more symbol" modifier key ("= \ <"). Must be short to fit on key! -->
|
||||
<string name="label_to_more_symbol_key">= \\\\ <</string>
|
||||
<!-- Label for "switch to more symbol" modifier key on tablets. Must be short to fit on key! -->
|
||||
<string name="label_to_more_symbol_for_tablet_key">~ [ <</string>
|
||||
<!-- Label for "Tab" key. Must be short to fit on key! -->
|
||||
|
|
Loading…
Reference in New Issue