diff options
author | 2011-12-18 08:00:07 +0900 | |
---|---|---|
committer | 2011-12-18 18:25:29 +0900 | |
commit | 7bd714c086a78e2058543b0971ac92f5a30b2362 (patch) | |
tree | 40cc639e59950a4744de3383239a429e7036c823 /java/res | |
parent | 1ebedd7a15a8fd94e68fb43eb089ed87c4c5a480 (diff) | |
download | latinime-7bd714c086a78e2058543b0971ac92f5a30b2362.tar.gz latinime-7bd714c086a78e2058543b0971ac92f5a30b2362.tar.xz latinime-7bd714c086a78e2058543b0971ac92f5a30b2362.zip |
Add extra key icons to KeyboardIconsSet
* Get rid of Key.keyIconShifted attribute.
Add Keyboard.iconShiftKeyShifted to KeyboardIconsSet.
* Get rid of LatinKeyboardView.disabledShortcutIcon attribute.
Add Keyboard.iconShortcurKeyDisabled to KeyboardIconsSet.
* Add Keyboard.iconSpaceKeyForNumber to KeyboardIconsSet.
* Fix misplaced autoCorrectionSpacebarLedIcon resources.
Change-Id: I381bff3789254977ab3cb18f58f95b3c433b1e1a
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/values/attrs.xml | 15 | ||||
-rw-r--r-- | java/res/values/keyboard-icons-black.xml | 7 | ||||
-rw-r--r-- | java/res/values/keyboard-icons-ics.xml | 9 | ||||
-rw-r--r-- | java/res/values/keyboard-icons-white.xml | 8 | ||||
-rw-r--r-- | java/res/values/styles.xml | 11 | ||||
-rw-r--r-- | java/res/xml-sw600dp/kbd_key_styles.xml | 1 | ||||
-rw-r--r-- | java/res/xml-sw768dp/kbd_key_styles.xml | 1 | ||||
-rw-r--r-- | java/res/xml/kbd_key_styles.xml | 1 | ||||
-rw-r--r-- | java/res/xml/kbd_numkey_styles.xml | 2 |
9 files changed, 21 insertions, 34 deletions
diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 62d667878..cddf513a1 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -124,7 +124,6 @@ </declare-styleable> <declare-styleable name="LatinKeyboardView"> - <attr name="disabledShortcutIcon" format="reference" /> </declare-styleable> <declare-styleable name="SuggestionsView"> @@ -185,7 +184,9 @@ <attr name="iconTabKey" format="reference" /> <attr name="iconShortcutKey" format="reference" /> <attr name="iconShortcutForLabel" format="reference" /> - <attr name="iconShiftedShiftKey" format="reference" /> + <attr name="iconSpaceKeyForNumberLayout" format="reference" /> + <attr name="iconShortcutKeyDisabled" format="reference" /> + <attr name="iconShiftKeyShifted" format="reference" /> <attr name="iconPreviewTabKey" format="reference" /> </declare-styleable> @@ -248,16 +249,14 @@ <enum name="iconTabKey" value="7" /> <enum name="iconShortcutKey" value="8" /> <enum name="iconShortcutForLabel" value="9" /> - </attr> - <!-- Shift key icon for shifted state --> - <attr name="keyIconShifted" format="enum"> - <!-- This should be aligned with KeyboardIcons.ICON_SHIFTED_* --> - <enum name="iconShiftedShiftKey" value="10" /> + <enum name="iconShortcutKeyDisabled" value="10" /> + <enum name="iconSpaceKeyForNumberLayout" value="11" /> + <enum name="iconShiftKeyShifted" value="12" /> </attr> <!-- The icon to show in the popup preview. --> <attr name="keyIconPreview" format="enum"> <!-- This should be aligned with KeyboardIcons.ICON_PREVIEW_* --> - <enum name="iconPreviewTabKey" value="11" /> + <enum name="iconPreviewTabKey" value="13" /> </attr> <!-- The key style to specify a set of key attributes defined by <key_style/> --> <attr name="keyStyle" format="string" /> diff --git a/java/res/values/keyboard-icons-black.xml b/java/res/values/keyboard-icons-black.xml index f767cb349..1caa16a55 100644 --- a/java/res/values/keyboard-icons-black.xml +++ b/java/res/values/keyboard-icons-black.xml @@ -30,10 +30,9 @@ <item name="iconTabKey">@drawable/sym_bkeyboard_tab</item> <item name="iconShortcutKey">@drawable/sym_bkeyboard_mic</item> <item name="iconShortcutForLabel">@drawable/sym_bkeyboard_label_mic</item> - <item name="iconShiftedShiftKey">@drawable/sym_bkeyboard_shift_locked</item> + <item name="iconShortcutKeyDisabled">@drawable/sym_bkeyboard_voice_off</item> + <item name="iconSpaceKeyForNumberLayout">@drawable/sym_bkeyboard_space</item> + <item name="iconShiftKeyShifted">@drawable/sym_bkeyboard_shift_locked</item> <item name="iconPreviewTabKey">@drawable/sym_keyboard_feedback_tab</item> - <!-- LatinKeyboard icons --> - <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item> - <item name="disabledShortcutIcon">@drawable/sym_bkeyboard_voice_off</item> </style> </resources> diff --git a/java/res/values/keyboard-icons-ics.xml b/java/res/values/keyboard-icons-ics.xml index f1021433d..0d4a3c758 100644 --- a/java/res/values/keyboard-icons-ics.xml +++ b/java/res/values/keyboard-icons-ics.xml @@ -23,16 +23,15 @@ <item name="iconShiftKey">@drawable/sym_keyboard_shift_holo</item> <item name="iconDeleteKey">@drawable/sym_keyboard_delete_holo</item> <item name="iconSettingsKey">@drawable/sym_keyboard_settings_holo</item> - <item name="iconSpaceKey">@drawable/sym_keyboard_space_holo</item> + <item name="iconSpaceKey">@null</item> <item name="iconReturnKey">@drawable/sym_keyboard_return_holo</item> <item name="iconSearchKey">@drawable/sym_keyboard_search_holo</item> <item name="iconTabKey">@drawable/sym_keyboard_tab_holo</item> <item name="iconShortcutKey">@drawable/sym_keyboard_voice_holo</item> <item name="iconShortcutForLabel">@drawable/sym_keyboard_label_mic_holo</item> - <item name="iconShiftedShiftKey">@drawable/sym_keyboard_shift_locked_holo</item> + <item name="iconShortcutKeyDisabled">@drawable/sym_keyboard_voice_off_holo</item> + <item name="iconSpaceKeyForNumberLayout">@drawable/sym_keyboard_space_holo</item> + <item name="iconShiftKeyShifted">@drawable/sym_keyboard_shift_locked_holo</item> <item name="iconPreviewTabKey">@drawable/sym_keyboard_feedback_tab</item> - <!-- LatinKeyboard icons --> - <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led_holo</item> - <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> </resources> diff --git a/java/res/values/keyboard-icons-white.xml b/java/res/values/keyboard-icons-white.xml index 07ece66b1..a3bb268a0 100644 --- a/java/res/values/keyboard-icons-white.xml +++ b/java/res/values/keyboard-icons-white.xml @@ -26,10 +26,10 @@ <item name="iconTabKey">@drawable/sym_keyboard_tab</item> <item name="iconShortcutKey">@drawable/sym_keyboard_mic</item> <item name="iconShortcutForLabel">@drawable/sym_keyboard_label_mic</item> - <item name="iconShiftedShiftKey">@drawable/sym_keyboard_shift_locked</item> + <!-- TODO: Needs non-holo disabled shortcut icon drawable --> + <item name="iconShortcutKeyDisabled">@drawable/sym_keyboard_voice_off_holo</item> + <item name="iconSpaceKeyForNumberLayout">@drawable/sym_keyboard_space</item> + <item name="iconShiftKeyShifted">@drawable/sym_keyboard_shift_locked</item> <item name="iconPreviewTabKey">@drawable/sym_keyboard_feedback_tab</item> - <!-- LatinKeyboard icons --> - <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item> - <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> </resources> diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index b1b39088f..f77586559 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -33,6 +33,7 @@ </style> <style name="LatinKeyboard"> <item name="autoCorrectionSpacebarLedEnabled">true</item> + <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led</item> <item name="spacebarTextRatio">@fraction/spacebar_text_ratio</item> <item name="spacebarTextColor">#FFC0C0C0</item> <item name="spacebarTextShadowColor">#80000000</item> @@ -74,8 +75,6 @@ <style name="LatinKeyboardView" parent="KeyboardView"> - <!-- TODO: Needs non-holo disabled shortcut icon drawable --> - <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> <style name="MiniKeyboard" @@ -144,8 +143,6 @@ name="LatinKeyboardView.HighContrast" parent="KeyboardView.HighContrast" > - <!-- TODO: Needs non-holo disabled shortcut icon drawable --> - <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> <!-- Theme "Stone" --> <style @@ -183,7 +180,6 @@ name="LatinKeyboardView.Stone" parent="KeyboardView.Stone" > - <item name="disabledShortcutIcon">@drawable/sym_bkeyboard_voice_off</item> </style> <style name="MiniKeyboard.Stone" @@ -218,7 +214,6 @@ name="LatinKeyboardView.Stone.Bold" parent="KeyboardView.Stone.Bold" > - <item name="disabledShortcutIcon">@drawable/sym_bkeyboard_voice_off</item> </style> <!-- Theme "Gingerbread" --> <style @@ -242,8 +237,6 @@ name="LatinKeyboardView.Gingerbread" parent="KeyboardView.Gingerbread" > - <!-- TODO: Needs non-holo disabled shortcut icon drawable --> - <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> <style name="MiniKeyboard.Gingerbread" @@ -276,6 +269,7 @@ parent="LatinKeyboard" > <item name="autoCorrectionSpacebarLedEnabled">false</item> + <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led_holo</item> </style> <style name="KeyboardView.IceCreamSandwich" @@ -304,7 +298,6 @@ name="LatinKeyboardView.IceCreamSandwich" parent="KeyboardView.IceCreamSandwich" > - <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> <style name="MiniKeyboard.IceCreamSandwich" diff --git a/java/res/xml-sw600dp/kbd_key_styles.xml b/java/res/xml-sw600dp/kbd_key_styles.xml index e0171b030..275601090 100644 --- a/java/res/xml-sw600dp/kbd_key_styles.xml +++ b/java/res/xml-sw600dp/kbd_key_styles.xml @@ -43,7 +43,6 @@ latin:styleName="shiftKeyStyle" latin:code="@integer/key_shift" latin:keyIcon="iconShiftKey" - latin:keyIconShifted="iconShiftedShiftKey" latin:keyActionFlags="noKeyPreview" latin:backgroundType="sticky" /> <key-style diff --git a/java/res/xml-sw768dp/kbd_key_styles.xml b/java/res/xml-sw768dp/kbd_key_styles.xml index d9266508e..83de4dd24 100644 --- a/java/res/xml-sw768dp/kbd_key_styles.xml +++ b/java/res/xml-sw768dp/kbd_key_styles.xml @@ -25,7 +25,6 @@ latin:styleName="shiftKeyStyle" latin:code="@integer/key_shift" latin:keyIcon="iconShiftKey" - latin:keyIconShifted="iconShiftedShiftKey" latin:keyActionFlags="noKeyPreview" latin:backgroundType="sticky" /> <key-style diff --git a/java/res/xml/kbd_key_styles.xml b/java/res/xml/kbd_key_styles.xml index 5714e09c5..6fdb3f5e8 100644 --- a/java/res/xml/kbd_key_styles.xml +++ b/java/res/xml/kbd_key_styles.xml @@ -66,7 +66,6 @@ latin:styleName="shiftKeyStyle" latin:code="@integer/key_shift" latin:keyIcon="iconShiftKey" - latin:keyIconShifted="iconShiftedShiftKey" latin:keyActionFlags="noKeyPreview" latin:backgroundType="sticky" /> <key-style diff --git a/java/res/xml/kbd_numkey_styles.xml b/java/res/xml/kbd_numkey_styles.xml index c2ff4d50f..003165da8 100644 --- a/java/res/xml/kbd_numkey_styles.xml +++ b/java/res/xml/kbd_numkey_styles.xml @@ -124,6 +124,6 @@ <key-style latin:styleName="numSpaceKeyStyle" latin:code="@integer/key_space" - latin:keyIcon="iconSpaceKey" + latin:keyIcon="iconSpaceKeyForNumberLayout" latin:parentStyle="numKeyBaseStyle" /> </merge> |