From ef7124b6fd2b3f365080da1b74896af97efd2499 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 9 Sep 2014 10:48:35 +0900 Subject: [PATCH] Tune keyboard height and letter size of tablet The height of Google Keyboard is limited by maximum and minimum ratio to the display height. Because screen aspect ratio of some large tablet is close to 1:1, the height of the keyboard may become taller than expected. This CL lowers the minimum ratio to allow shorter height. This CL also increase text size of Material theme keyboard on tablet as well. Bug: 17050390 Change-Id: I87c5f49ce554950c525a1f31dfddfd1beb3fafda --- java/res/values-land/config.xml | 12 ++++++++---- java/res/values-land/keyboard-heights.xml | 2 ++ java/res/values-sw600dp-land/config.xml | 14 +++++++++----- java/res/values-sw600dp/config.xml | 12 ++++++++---- java/res/values-sw768dp-land/config.xml | 14 +++++++++----- java/res/values-sw768dp/config.xml | 12 ++++++++---- java/res/values/config.xml | 12 ++++++++---- java/res/values/themes-common.xml | 6 ------ java/res/values/themes-holo.xml | 4 ++++ java/res/values/themes-lxx.xml | 4 ++++ 10 files changed, 60 insertions(+), 32 deletions(-) diff --git a/java/res/values-land/config.xml b/java/res/values-land/config.xml index 34d6d4e19..a0d12702a 100644 --- a/java/res/values-land/config.xml +++ b/java/res/values-land/config.xml @@ -42,14 +42,18 @@ 1.6dp 90% - 65% + 65% + 65% 74% 90% - 40% - 30% + 40% + 40% + 30% + 30% 52% 30% - 40% + 40% + 40% 40.000% diff --git a/java/res/values-land/keyboard-heights.xml b/java/res/values-land/keyboard-heights.xml index d57f96be3..02d8b14c8 100644 --- a/java/res/values-land/keyboard-heights.xml +++ b/java/res/values-land/keyboard-heights.xml @@ -33,5 +33,7 @@ HARDWARE=stingray,265.4378 + + HARDWARE=flounder,272.0 diff --git a/java/res/values-sw600dp-land/config.xml b/java/res/values-sw600dp-land/config.xml index c238b2c42..d33af2e37 100644 --- a/java/res/values-sw600dp-land/config.xml +++ b/java/res/values-sw600dp-land/config.xml @@ -23,7 +23,7 @@ 283.5dp - 45%p + 40%p 81.9dp @@ -32,14 +32,18 @@ 4.5%p 0.9%p - 50% + 50% + 50% 48% 60% - 32% - 23% + 32% + 32% + 23% + 23% 34% 20% - 29% + 29% + 29% 30.0% 4dp diff --git a/java/res/values-sw600dp/config.xml b/java/res/values-sw600dp/config.xml index 3c489bbe8..0df945fb3 100644 --- a/java/res/values-sw600dp/config.xml +++ b/java/res/values-sw600dp/config.xml @@ -44,14 +44,18 @@ 94.5dp 50% - 42% + 42% + 50% 45% 60% - 25% - 23% + 25% + 32% + 23% + 23% 28% 20% - 22% + 22% + 22% 28.0% 3dp 3dp diff --git a/java/res/values-sw768dp-land/config.xml b/java/res/values-sw768dp-land/config.xml index 587a3c1a4..3d49e4a4e 100644 --- a/java/res/values-sw768dp-land/config.xml +++ b/java/res/values-sw768dp-land/config.xml @@ -23,7 +23,7 @@ 365.4dp - 45%p + 35%p 1.896%p 0.0%p @@ -34,14 +34,18 @@ 81.9dp 107.1dp - 43% + 43% + 50% 42% 60% - 28% - 23% + 28% + 32% + 23% + 23% 28% 20% - 24% + 24% + 24% 24.00% diff --git a/java/res/values-sw768dp/config.xml b/java/res/values-sw768dp/config.xml index f573c40df..1863e1e70 100644 --- a/java/res/values-sw768dp/config.xml +++ b/java/res/values-sw768dp/config.xml @@ -42,14 +42,18 @@ 94.5dp 50% - 40% + 40% + 50% 42% 60% - 28% - 23% + 28% + 32% + 23% + 23% 28% 20% - 26% + 26% + 26% 29.03% 3dp 3dp diff --git a/java/res/values/config.xml b/java/res/values/config.xml index af3b5890b..16826f6c7 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -46,14 +46,18 @@ 80dp 82% - 55% + 55% + 55% 65% 90% - 34% - 25% + 34% + 34% + 25% + 25% 44% 30% - 35% + 35% + 35% 33.735% 1dp 2dp diff --git a/java/res/values/themes-common.xml b/java/res/values/themes-common.xml index becaddd35..87dcb7732 100644 --- a/java/res/values/themes-common.xml +++ b/java/res/values/themes-common.xml @@ -37,12 +37,6 @@ @drawable/btn_keyboard_key_klp - @fraction/config_key_letter_ratio - @fraction/config_key_large_letter_ratio_holo - @fraction/config_key_label_ratio - @fraction/config_key_hint_letter_ratio - @fraction/config_key_hint_label_ratio_holo - @fraction/config_key_shifted_letter_hint_ratio normal -1.0 diff --git a/java/res/values/themes-holo.xml b/java/res/values/themes-holo.xml index cb3ad7a3a..9f1bd2f78 100644 --- a/java/res/values/themes-holo.xml +++ b/java/res/values/themes-holo.xml @@ -25,6 +25,10 @@ parent="KeyboardView" > bold + @fraction/config_key_letter_ratio_holo + @fraction/config_key_label_ratio_holo + @fraction/config_key_hint_letter_ratio_holo + @fraction/config_key_shifted_letter_hint_ratio_holo @fraction/config_key_large_letter_ratio_holo -175% @fraction/config_key_hint_label_ratio_holo diff --git a/java/res/values/themes-lxx.xml b/java/res/values/themes-lxx.xml index 1c33cd60b..c72188871 100644 --- a/java/res/values/themes-lxx.xml +++ b/java/res/values/themes-lxx.xml @@ -25,6 +25,10 @@ parent="KeyboardView" > normal + @fraction/config_key_letter_ratio_lxx + @fraction/config_key_label_ratio_lxx + @fraction/config_key_hint_letter_ratio_lxx + @fraction/config_key_shifted_letter_hint_ratio_lxx @fraction/config_key_large_letter_ratio_lxx -80% @fraction/config_key_hint_label_ratio_lxx