From 0f33e614c0799fa3a14a2c32db4bf0654df039da Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 22 Aug 2014 18:36:09 +0900 Subject: [PATCH] Implement Floating Action Button more keys keyboard Bug: 15681452 Change-Id: I8484e4fe4d989b391f2b5230836dc9dfac218429 --- ...btn_keyboard_key_popup_action_lxx_dark.xml | 21 ++++++++++++ ...tn_keyboard_key_popup_action_lxx_light.xml | 21 ++++++++++++ .../more_keys_keyboard_for_action_lxx.xml | 32 +++++++++++++++++++ java/res/values/attrs.xml | 4 +++ java/res/values/themes-ics.xml | 2 ++ java/res/values/themes-klp.xml | 2 ++ java/res/values/themes-lxx-dark.xml | 10 ++++++ java/res/values/themes-lxx-light.xml | 10 ++++++ .../com/android/inputmethod/keyboard/Key.java | 4 +++ .../keyboard/MainKeyboardView.java | 14 ++++++-- 10 files changed, 117 insertions(+), 3 deletions(-) create mode 100644 java/res/drawable/btn_keyboard_key_popup_action_lxx_dark.xml create mode 100644 java/res/drawable/btn_keyboard_key_popup_action_lxx_light.xml create mode 100644 java/res/layout/more_keys_keyboard_for_action_lxx.xml diff --git a/java/res/drawable/btn_keyboard_key_popup_action_lxx_dark.xml b/java/res/drawable/btn_keyboard_key_popup_action_lxx_dark.xml new file mode 100644 index 000000000..8b637f204 --- /dev/null +++ b/java/res/drawable/btn_keyboard_key_popup_action_lxx_dark.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/java/res/drawable/btn_keyboard_key_popup_action_lxx_light.xml b/java/res/drawable/btn_keyboard_key_popup_action_lxx_light.xml new file mode 100644 index 000000000..67fc52144 --- /dev/null +++ b/java/res/drawable/btn_keyboard_key_popup_action_lxx_light.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/java/res/layout/more_keys_keyboard_for_action_lxx.xml b/java/res/layout/more_keys_keyboard_for_action_lxx.xml new file mode 100644 index 000000000..d23faa4f0 --- /dev/null +++ b/java/res/layout/more_keys_keyboard_for_action_lxx.xml @@ -0,0 +1,32 @@ + + + + + + diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index fb29e12b8..2e81bdf48 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -32,6 +32,8 @@ + + @@ -119,6 +121,8 @@ + + diff --git a/java/res/values/themes-ics.xml b/java/res/values/themes-ics.xml index 42d376ce6..9e656dd74 100644 --- a/java/res/values/themes-ics.xml +++ b/java/res/values/themes-ics.xml @@ -25,7 +25,9 @@ @style/MainKeyboardView.ICS @style/EmojiPalettesView.ICS @style/MoreKeysKeyboard.ICS + @style/MoreKeysKeyboardView.ICS + @style/MoreKeysKeyboardView.ICS @style/SuggestionStripView.ICS @style/SuggestionWord.ICS diff --git a/java/res/values/themes-klp.xml b/java/res/values/themes-klp.xml index a16d643ca..c6319bc4e 100644 --- a/java/res/values/themes-klp.xml +++ b/java/res/values/themes-klp.xml @@ -25,7 +25,9 @@ @style/MainKeyboardView.KLP @style/EmojiPalettesView.KLP @style/MoreKeysKeyboard.KLP + @style/MoreKeysKeyboardView.KLP + @style/MoreKeysKeyboardView.KLP @style/SuggestionStripView.KLP @style/SuggestionWord.KLP diff --git a/java/res/values/themes-lxx-dark.xml b/java/res/values/themes-lxx-dark.xml index a613001ba..76e9d33bf 100644 --- a/java/res/values/themes-lxx-dark.xml +++ b/java/res/values/themes-lxx-dark.xml @@ -26,6 +26,7 @@ @style/EmojiPalettesView.LXX_Dark @style/MoreKeysKeyboard.LXX_Dark @style/MoreKeysKeyboardView.LXX_Dark + @style/MoreKeysKeyboardView.LXX_Dark.Action @style/SuggestionStripView.LXX_Dark @style/SuggestionWord.LXX_Dark @@ -57,6 +58,7 @@ name="MainKeyboardView.LXX_Dark" parent="KeyboardView.LXX_Dark" > + @layout/more_keys_keyboard_for_action_lxx @drawable/keyboard_key_feedback_lxx_dark @dimen/config_key_preview_offset_holo @anim/key_preview_show_up_lxx @@ -105,6 +107,14 @@ normal @dimen/config_more_keys_keyboard_vertical_correction_holo + @@ -57,6 +58,7 @@ name="MainKeyboardView.LXX_Light" parent="KeyboardView.LXX_Light" > + @layout/more_keys_keyboard_for_action_lxx @drawable/keyboard_key_feedback_lxx_light @dimen/config_key_preview_offset_holo @anim/key_preview_show_up_lxx @@ -105,6 +107,14 @@ normal @dimen/config_more_keys_keyboard_vertical_correction_holo +