From 48f6321630efb39053e2e0ad5533d420acf0ef91 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" <takaoka@google.com> Date: Wed, 7 Mar 2012 18:34:15 +0900 Subject: [PATCH] Tweak vertical corrections for more keys in the "ICS" theme Bug: 6129435 Change-Id: I3800a7a6926967c456e1b9b0dead94717063039a --- java/res/values-land/dimens.xml | 2 ++ java/res/values-sw600dp/dimens.xml | 2 ++ java/res/values-sw768dp/dimens.xml | 2 ++ java/res/values/dimens.xml | 2 ++ java/res/values/styles.xml | 1 + 5 files changed, 9 insertions(+) diff --git a/java/res/values-land/dimens.xml b/java/res/values-land/dimens.xml index f9cce839a9..0b123b408a 100644 --- a/java/res/values-land/dimens.xml +++ b/java/res/values-land/dimens.xml @@ -57,6 +57,8 @@ <dimen name="key_preview_offset">0.08in</dimen> <dimen name="key_preview_offset_ics">0.01in</dimen> + <!-- popup_key_height x -0.5 --> + <dimen name="more_keys_keyboard_vertical_correction_ics">-0.140in</dimen> <dimen name="suggestions_strip_height">36dip</dimen> <dimen name="more_suggestions_row_height">36dip</dimen> diff --git a/java/res/values-sw600dp/dimens.xml b/java/res/values-sw600dp/dimens.xml index e04609f2a8..fb71f17414 100644 --- a/java/res/values-sw600dp/dimens.xml +++ b/java/res/values-sw600dp/dimens.xml @@ -65,6 +65,8 @@ <dimen name="key_preview_height_ics">15.0mm</dimen> <dimen name="key_preview_offset_ics">0.05in</dimen> + <!-- popup_key_height x -0.5 --> + <dimen name="more_keys_keyboard_vertical_correction_ics">-5mm</dimen> <dimen name="suggestions_strip_height">44dip</dimen> <dimen name="more_suggestions_row_height">44dip</dimen> diff --git a/java/res/values-sw768dp/dimens.xml b/java/res/values-sw768dp/dimens.xml index f33a657af6..32b6f6a2fe 100644 --- a/java/res/values-sw768dp/dimens.xml +++ b/java/res/values-sw768dp/dimens.xml @@ -68,6 +68,8 @@ <dimen name="key_preview_height_ics">15.0mm</dimen> <dimen name="key_preview_offset_ics">0.05in</dimen> + <!-- popup_key_height x -0.5 --> + <dimen name="more_keys_keyboard_vertical_correction_ics">-5mm</dimen> <dimen name="suggestions_strip_height">44dip</dimen> <dimen name="more_suggestions_row_height">44dip</dimen> diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index 41a2979022..580c4959bc 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -77,6 +77,8 @@ <dimen name="key_preview_height_ics">80sp</dimen> <dimen name="key_preview_offset_ics">0.05in</dimen> + <!-- popup_key_height x -0.5 --> + <dimen name="more_keys_keyboard_vertical_correction_ics">-0.165in</dimen> <dimen name="suggestions_strip_height">40dip</dimen> <dimen name="more_suggestions_key_horizontal_padding">12dip</dimen> diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index b9e8b26a3a..325ee9a797 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -335,6 +335,7 @@ > <item name="android:background">@null</item> <item name="keyBackground">@drawable/btn_keyboard_key_popup_ics</item> + <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_ics</item> </style> <style name="MoreKeysKeyboardPanelStyle.IceCreamSandwich"> <item name="android:background">@drawable/keyboard_popup_panel_background_holo</item> -- GitLab