diff --git a/java/res/drawable-hdpi/keyboard_background.9.png b/java/res/drawable-hdpi/keyboard_background.9.png deleted file mode 100644 index d57463fb6..000000000 Binary files a/java/res/drawable-hdpi/keyboard_background.9.png and /dev/null differ diff --git a/java/res/drawable-hdpi/keyboard_dark_background.9.png b/java/res/drawable-hdpi/keyboard_background_gb.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_dark_background.9.png rename to java/res/drawable-hdpi/keyboard_background_gb.9.png diff --git a/java/res/drawable-hdpi/keyboard_background_holo.9.png b/java/res/drawable-hdpi/keyboard_background_ics.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_background_holo.9.png rename to java/res/drawable-hdpi/keyboard_background_ics.9.png diff --git a/java/res/drawable-hdpi/keyboard_popup_panel_background.9.png b/java/res/drawable-hdpi/keyboard_popup_panel_background_gb.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_popup_panel_background.9.png rename to java/res/drawable-hdpi/keyboard_popup_panel_background_gb.9.png diff --git a/java/res/drawable-hdpi/keyboard_suggest_strip.9.png b/java/res/drawable-hdpi/keyboard_suggest_strip_gb.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_suggest_strip.9.png rename to java/res/drawable-hdpi/keyboard_suggest_strip_gb.9.png diff --git a/java/res/drawable-hdpi/sym_keyboard_space_led.9.png b/java/res/drawable-hdpi/sym_keyboard_space_led_gb.9.png similarity index 100% rename from java/res/drawable-hdpi/sym_keyboard_space_led.9.png rename to java/res/drawable-hdpi/sym_keyboard_space_led_gb.9.png diff --git a/java/res/drawable-mdpi/keyboard_background.9.png b/java/res/drawable-mdpi/keyboard_background.9.png deleted file mode 100644 index 2bd4b628d..000000000 Binary files a/java/res/drawable-mdpi/keyboard_background.9.png and /dev/null differ diff --git a/java/res/drawable-mdpi/keyboard_dark_background.9.png b/java/res/drawable-mdpi/keyboard_background_gb.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_dark_background.9.png rename to java/res/drawable-mdpi/keyboard_background_gb.9.png diff --git a/java/res/drawable-mdpi/keyboard_background_holo.9.png b/java/res/drawable-mdpi/keyboard_background_ics.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_background_holo.9.png rename to java/res/drawable-mdpi/keyboard_background_ics.9.png diff --git a/java/res/drawable-mdpi/keyboard_popup_panel_background.9.png b/java/res/drawable-mdpi/keyboard_popup_panel_background_gb.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_popup_panel_background.9.png rename to java/res/drawable-mdpi/keyboard_popup_panel_background_gb.9.png diff --git a/java/res/drawable-mdpi/keyboard_suggest_strip.9.png b/java/res/drawable-mdpi/keyboard_suggest_strip_gb.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_suggest_strip.9.png rename to java/res/drawable-mdpi/keyboard_suggest_strip_gb.9.png diff --git a/java/res/drawable-mdpi/sym_keyboard_space_led.9.png b/java/res/drawable-mdpi/sym_keyboard_space_led_gb.9.png similarity index 100% rename from java/res/drawable-mdpi/sym_keyboard_space_led.9.png rename to java/res/drawable-mdpi/sym_keyboard_space_led_gb.9.png diff --git a/java/res/drawable-xhdpi/keyboard_background.9.png b/java/res/drawable-xhdpi/keyboard_background.9.png deleted file mode 100644 index 263996322..000000000 Binary files a/java/res/drawable-xhdpi/keyboard_background.9.png and /dev/null differ diff --git a/java/res/drawable-xhdpi/keyboard_dark_background.9.png b/java/res/drawable-xhdpi/keyboard_background_gb.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_dark_background.9.png rename to java/res/drawable-xhdpi/keyboard_background_gb.9.png diff --git a/java/res/drawable-xhdpi/keyboard_background_holo.9.png b/java/res/drawable-xhdpi/keyboard_background_ics.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_background_holo.9.png rename to java/res/drawable-xhdpi/keyboard_background_ics.9.png diff --git a/java/res/drawable-xhdpi/keyboard_popup_panel_background.9.png b/java/res/drawable-xhdpi/keyboard_popup_panel_background_gb.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_popup_panel_background.9.png rename to java/res/drawable-xhdpi/keyboard_popup_panel_background_gb.9.png diff --git a/java/res/drawable-xhdpi/keyboard_suggest_strip.9.png b/java/res/drawable-xhdpi/keyboard_suggest_strip_gb.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_suggest_strip.9.png rename to java/res/drawable-xhdpi/keyboard_suggest_strip_gb.9.png diff --git a/java/res/drawable-xhdpi/sym_keyboard_space_led.9.png b/java/res/drawable-xhdpi/sym_keyboard_space_led_gb.9.png similarity index 100% rename from java/res/drawable-xhdpi/sym_keyboard_space_led.9.png rename to java/res/drawable-xhdpi/sym_keyboard_space_led_gb.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_background_holo.9.png b/java/res/drawable-xxhdpi/keyboard_background_ics.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_background_holo.9.png rename to java/res/drawable-xxhdpi/keyboard_background_ics.9.png diff --git a/java/res/layout/hint_add_to_dictionary.xml b/java/res/layout/hint_add_to_dictionary.xml index 73de44fae..63d4001ad 100644 --- a/java/res/layout/hint_add_to_dictionary.xml +++ b/java/res/layout/hint_add_to_dictionary.xml @@ -33,4 +33,4 @@ android:clickable="false" android:singleLine="true" android:ellipsize="none" - style="?attr/suggestionBackgroundStyle" /> + android:background="?attr/suggestionBackground" /> diff --git a/java/res/layout/input_view.xml b/java/res/layout/input_view.xml index 78217b01a..51133b289 100644 --- a/java/res/layout/input_view.xml +++ b/java/res/layout/input_view.xml @@ -34,6 +34,7 @@ android:layout_height="@dimen/suggestions_strip_height" android:paddingRight="@dimen/suggestions_strip_padding" android:paddingLeft="@dimen/suggestions_strip_padding" + android:background="?attr/suggestionStripBackground" style="?attr/suggestionStripViewStyle" /> diff --git a/java/res/layout/more_keys_keyboard.xml b/java/res/layout/more_keys_keyboard.xml index 6b2464b99..cab3abcd9 100644 --- a/java/res/layout/more_keys_keyboard.xml +++ b/java/res/layout/more_keys_keyboard.xml @@ -17,17 +17,17 @@ ** limitations under the License. */ --> + + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:background="?attr/moreKeysKeyboardBackground" +> + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" + android:id="@+id/more_keys_keyboard_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> diff --git a/java/res/layout/more_suggestions.xml b/java/res/layout/more_suggestions.xml index b41bb8aa4..0ec0ed1b3 100644 --- a/java/res/layout/more_suggestions.xml +++ b/java/res/layout/more_suggestions.xml @@ -17,21 +17,21 @@ ** limitations under the License. */ --> + + - + latin:keyLetterSize="@dimen/suggestion_text_size" + latin:keyLabelSize="@dimen/suggestion_text_size" + latin:keyHintLetterRatio="@fraction/more_suggestions_info_ratio" + latin:keyHintLetterColor="@android:color/white" /> diff --git a/java/res/layout/suggestion_info.xml b/java/res/layout/suggestion_info.xml index a4ad6df25..8b0ee3484 100644 --- a/java/res/layout/suggestion_info.xml +++ b/java/res/layout/suggestion_info.xml @@ -24,4 +24,4 @@ android:layout_height="wrap_content" android:textSize="6dp" android:textColor="@android:color/white" - style="?attr/suggestionBackgroundStyle" /> + android:background="?attr/suggestionBackground" /> diff --git a/java/res/layout/suggestion_word.xml b/java/res/layout/suggestion_word.xml index fa00e041e..e32e6952b 100644 --- a/java/res/layout/suggestion_word.xml +++ b/java/res/layout/suggestion_word.xml @@ -36,4 +36,4 @@ android:clickable="false" android:singleLine="true" android:ellipsize="none" - style="?attr/suggestionBackgroundStyle" /> + android:background="?attr/suggestionBackground" /> diff --git a/java/res/values-land/dimens.xml b/java/res/values-land/dimens.xml index fecf24c0c..c954e60da 100644 --- a/java/res/values-land/dimens.xml +++ b/java/res/values-land/dimens.xml @@ -26,11 +26,8 @@ 44.8dp - 1.818%p - 0.0%p - 4.330%p - 0.405%p - + 1.818%p + 0.0%p 5.941%p 0.997%p @@ -50,7 +47,7 @@ 40% 90% 40.000% - 0.0dp + 0.0dp 3.20%p @@ -69,7 +66,7 @@ 53.76dp - -44.8dp + -44.8dp 23dp diff --git a/java/res/values-sw600dp-land/dimens.xml b/java/res/values-sw600dp-land/dimens.xml index ca3839936..cda462f29 100644 --- a/java/res/values-sw600dp-land/dimens.xml +++ b/java/res/values-sw600dp-land/dimens.xml @@ -24,17 +24,15 @@ 283.5dp 45%p - 2.444%p - 0.0%p - 4.911%p - 1.284%p - + 2.444%p + 0.0%p 5.200%p 1.447%p + 2.727%p + 0.0%p 4.5%p 0.9%p - 0.0%p 81.9dp diff --git a/java/res/values-sw600dp/dimens.xml b/java/res/values-sw600dp/dimens.xml index d8cf6c167..7dfd0b162 100644 --- a/java/res/values-sw600dp/dimens.xml +++ b/java/res/values-sw600dp/dimens.xml @@ -27,24 +27,22 @@ 63.0dp - 2.291%p - 0.0%p - 3.750%p - 1.857%p - + 2.291%p + 0.0%p 4.625%p 2.113%p + 2.335%p + 4.0%p 4.5%p 1.565%p - 4.0%p 6dp 98.3dp - -81.9dp + -81.9dp 6dp @@ -61,7 +59,7 @@ 50% 28.0% 94.5dp - 16.0dp + 16.0dp 3.20%p diff --git a/java/res/values-sw768dp-land/dimens.xml b/java/res/values-sw768dp-land/dimens.xml index e67e85f63..0a7048060 100644 --- a/java/res/values-sw768dp-land/dimens.xml +++ b/java/res/values-sw768dp-land/dimens.xml @@ -24,12 +24,8 @@ 365.4dp 45%p - 1.896%p - 0.0%p - - 4.103%p - 1.034%p - + 1.896%p + 0.0%p 3.896%p 1.195%p diff --git a/java/res/values-sw768dp/dimens.xml b/java/res/values-sw768dp/dimens.xml index 87df521a1..877e83b59 100644 --- a/java/res/values-sw768dp/dimens.xml +++ b/java/res/values-sw768dp/dimens.xml @@ -25,15 +25,12 @@ 46%p -35.0%p - 2.291%p - 0.0%p - - 4.270%p - 1.551%p - + 2.291%p + 0.0%p 4.687%p 1.272%p + 2.335%p 0.0%p 3.312%p 1.066%p @@ -45,7 +42,7 @@ 98.3dp - -81.9dp + -81.9dp 6dp @@ -62,7 +59,7 @@ 50% 29.03% 94.5dp - 16.0dp + 16.0dp 2.95%p diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 7ebaf75be..af2586c8a 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -26,11 +26,12 @@ - - - + + + + diff --git a/java/res/values/colors.xml b/java/res/values/colors.xml index 6f00c9197..f35a5e4b7 100644 --- a/java/res/values/colors.xml +++ b/java/res/values/colors.xml @@ -15,20 +15,20 @@ --> - - #FFFCAE00 - #99FCAE00 - @android:color/white - #BB000000 - #66E0E4E5 - #80000000 - #E0E0E4E5 - #66E0E4E5 - #CCE0E4E5 - #FFC0C0C0 - #80000000 - @android:color/white - #C0000000 + + #FFFCAE00 + @android:color/white + #99FCAE00 + @android:color/white + #BB000000 + #66E0E4E5 + #80000000 + #E0E0E4E5 + #66E0E4E5 + #CCE0E4E5 + #FFC0C0C0 + #80000000 + #C0000000 #FF33B5E5 @@ -44,6 +44,7 @@ @android:color/white #FFC0C0C0 #80000000 + #C0000000 #FFEBEBEB #FF707070 diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index c857bbb91..599af124c 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -29,13 +29,11 @@ 8dp - 1.556%p - 4.669%p 0%p 0%p - 6.250%p - 1.352%p + 1.556%p + 4.669%p 6.495%p 1.971%p @@ -43,13 +41,12 @@ 4.669%p 6.127%p 1.739%p - 4dp 63.36dp - -52.8dp + -52.8dp 0.0dp 55% @@ -62,7 +59,7 @@ 82% 33.735% 80dp - -8.0dp + -8.0dp 4dp 1dp diff --git a/java/res/values/keyboard-icons-gb.xml b/java/res/values/keyboard-icons-gb.xml index 7c6de42fa..b1ddcbbe5 100644 --- a/java/res/values/keyboard-icons-gb.xml +++ b/java/res/values/keyboard-icons-gb.xml @@ -15,13 +15,13 @@ --> - - - - - + - - @@ -179,20 +124,33 @@ name="KeyboardView.GB" parent="KeyboardView" > - @drawable/keyboard_dark_background + @drawable/keyboard_background_gb @drawable/btn_keyboard_key_gb bold - @layout/key_preview_gb + @color/key_text_color_gb + @color/key_text_inactivated_color_gb + @color/key_hint_letter_color_gb + @color/key_hint_label_color_gb + @color/key_shifted_letter_hint_inactivated_color_gb + @color/key_shifted_letter_hint_activated_color_gb + @color/key_text_color_gb + @color/key_text_shadow_color_gb + 2.75 + @@ -264,42 +237,22 @@ - - - - diff --git a/java/res/values/themes-ics.xml b/java/res/values/themes-ics.xml index 7713789e3..937e39649 100644 --- a/java/res/values/themes-ics.xml +++ b/java/res/values/themes-ics.xml @@ -21,9 +21,9 @@ @style/MainKeyboardView.ICS @style/MoreKeysKeyboard.ICS @style/MoreKeysKeyboardView.ICS - @style/MoreKeysKeyboardPanelStyle.ICS @style/SuggestionStripViewStyle.ICS - @style/MoreSuggestionsViewStyle.ICS - @style/SuggestionBackgroundStyle.ICS + @drawable/keyboard_popup_panel_background_holo + @drawable/keyboard_suggest_strip_holo + @drawable/btn_suggestion_ics diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestionsView.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestionsView.java index d585b5c7f..0ebe37782 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestionsView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestionsView.java @@ -34,7 +34,7 @@ public final class MoreSuggestionsView extends MoreKeysKeyboardView { private static final String TAG = MoreSuggestionsView.class.getSimpleName(); public MoreSuggestionsView(final Context context, final AttributeSet attrs) { - this(context, attrs, R.attr.moreSuggestionsViewStyle); + this(context, attrs, R.attr.moreKeysKeyboardViewStyle); } public MoreSuggestionsView(final Context context, final AttributeSet attrs,