From 2a04637f60bfea6cb6a20e2ab53e61d368a1f711 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 21 Mar 2012 20:11:46 +0900 Subject: [PATCH] Convert dimension unit "in" and "mm" to "dp" Bug: 6183561 Change-Id: I06d74705fd49566684815853b8f2df7b5a9f9d7e --- java/res/values-land/dimens.xml | 13 ++++++------ java/res/values-sw600dp-land/dimens.xml | 4 ++-- java/res/values-sw600dp/dimens.xml | 18 ++++++++--------- java/res/values-sw768dp-land/dimens.xml | 8 ++++---- java/res/values-sw768dp/dimens.xml | 16 +++++++-------- java/res/values/config.xml | 4 ++-- java/res/values/dimens.xml | 20 +++++++++---------- .../inputmethod/keyboard/Keyboard.java | 2 +- 8 files changed, 41 insertions(+), 44 deletions(-) diff --git a/java/res/values-land/dimens.xml b/java/res/values-land/dimens.xml index 550d29f76..1157b2733 100644 --- a/java/res/values-land/dimens.xml +++ b/java/res/values-land/dimens.xml @@ -24,8 +24,7 @@ 176.0dp 45%p - - 0.280in + 44.8dp 1.818%p 0.0%p @@ -54,11 +53,11 @@ 40% 90% 40.000% - 0.08in + 12.8dp - 0.01in + 1.6dp - -0.140in + -22.4dp 36dp 36dp @@ -66,7 +65,7 @@ 60% - 0.336in + 53.76dp - -0.280in + -44.8dp diff --git a/java/res/values-sw600dp-land/dimens.xml b/java/res/values-sw600dp-land/dimens.xml index d84f843c1..b4a12e3ca 100644 --- a/java/res/values-sw600dp-land/dimens.xml +++ b/java/res/values-sw600dp-land/dimens.xml @@ -37,7 +37,7 @@ 0.0%p - 13.0mm + 81.9dp 18dp @@ -50,7 +50,7 @@ 29% 33.33% - 40.0mm + 252.0dp 5 50% diff --git a/java/res/values-sw600dp/dimens.xml b/java/res/values-sw600dp/dimens.xml index 1b24b6ba8..61729ced2 100644 --- a/java/res/values-sw600dp/dimens.xml +++ b/java/res/values-sw600dp/dimens.xml @@ -25,7 +25,7 @@ 50%p -35.0%p - 10.0mm + 63.0dp 2.291%p 0.0%p @@ -43,9 +43,9 @@ 6dp - 15.6mm + 98.3dp - -13.0mm + -81.9dp 6dp @@ -60,19 +60,19 @@ 26% 50% 32.14% - 15.0mm - 0.1in + 94.5dp + 16.0dp - 0.05in + 8.0dp - -5mm + -31.5dp 44dp 44dp 6 90% - 15.0mm - 0.3in + 94.5dp + 48.0dp 12dp 22dp 33dp diff --git a/java/res/values-sw768dp-land/dimens.xml b/java/res/values-sw768dp-land/dimens.xml index 597ed5102..b95c858dc 100644 --- a/java/res/values-sw768dp-land/dimens.xml +++ b/java/res/values-sw768dp-land/dimens.xml @@ -41,7 +41,7 @@ 3.690%p 1.030%p - 13.0mm + 81.9dp 18dp @@ -53,10 +53,10 @@ 28% 24% 24.00% - 17.0mm + 107.1dp - 0.05in + 8.0dp - 40.0mm + 252.0dp 50% diff --git a/java/res/values-sw768dp/dimens.xml b/java/res/values-sw768dp/dimens.xml index a9f0c00aa..0a362fd68 100644 --- a/java/res/values-sw768dp/dimens.xml +++ b/java/res/values-sw768dp/dimens.xml @@ -41,14 +41,14 @@ 3.312%p 1.066%p - 10.0mm + 63.0dp 12dp - 15.6mm + 98.3dp - -13.0mm + -81.9dp 6dp @@ -63,18 +63,18 @@ 26% 50% 29.03% - 15.0mm - 0.1in + 94.5dp + 16.0dp - 0.05in + 8.0dp - -5mm + -31.5dp 44dp 44dp 6 90% - 15.0mm + 94.5dp 46dp 8dp 22dp diff --git a/java/res/values/config.xml b/java/res/values/config.xml index 1aa0dffc9..f0b12e92b 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -54,9 +54,9 @@ - 0.05in + 8.0dp 40 - 2.0mm + 12.6dp true 400 50 diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index 9d64a618a..1889758b9 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -25,7 +25,7 @@ 50%p -61.8%p - 0.330in + 52.8dp 16dp 8dp @@ -52,12 +52,10 @@ - 0.396in + 63.36dp - -0.330in - - 0.0in + -52.8dp + 0.0dp 55% 65% @@ -68,23 +66,23 @@ 82% 33.735% 80dp - 0.1in + 16.0dp 4dp 1dp 2dp 2dp - 0.05in + 8.0dp - -0.165in + -26.4dp 40dp 12dp 40dp 6dp - 0.2in - 0.1in + 32.0dp + 16.0dp 6 90% 18% diff --git a/java/src/com/android/inputmethod/keyboard/Keyboard.java b/java/src/com/android/inputmethod/keyboard/Keyboard.java index 07b9c1e8c..962379016 100644 --- a/java/src/com/android/inputmethod/keyboard/Keyboard.java +++ b/java/src/com/android/inputmethod/keyboard/Keyboard.java @@ -394,7 +394,7 @@ public class Keyboard { * >Row row_attributes*< * >!-- Row Content --< * >Key key_attributes* /< - * >Spacer horizontalGap="0.2in" /< + * >Spacer horizontalGap="32.0dp" /< * >include keyboardLayout="@xml/other_keys"< * ... * >/Row<