From 0a94eaa29e55baccec7b752b5272d827808a08a0 Mon Sep 17 00:00:00 2001 From: emancebo Date: Fri, 2 Jan 2015 16:53:53 -0800 Subject: Refactor dialpad layout to support t9 search in multiple languages * Moves t9 labels to the side in portrait mode to make room for secondary labels * Adds resources for alternate language t9 labels Change-Id: Ie9b12afc6b1b74cc9dea48f10ab663e16b06501b --- res/layout-land/dialpad_key.xml | 43 --------------------------------- res/layout-land/dialpad_key_one.xml | 45 ----------------------------------- res/layout-land/dialpad_key_pound.xml | 33 ------------------------- res/layout-land/dialpad_key_star.xml | 33 ------------------------- res/layout-land/dialpad_key_zero.xml | 43 --------------------------------- res/layout/dialpad_key.xml | 15 ++++++++---- res/layout/dialpad_key_one.xml | 2 +- res/layout/dialpad_key_pound.xml | 4 ++-- res/layout/dialpad_key_star.xml | 4 ++-- res/layout/dialpad_key_zero.xml | 4 ++-- res/values-el/cm_extra.xml | 26 ++++++++++++++++++++ res/values-iw/cm_extra.xml | 26 ++++++++++++++++++++ res/values-ko/cm_extra.xml | 26 ++++++++++++++++++++ res/values-land/cm_dimens.xml | 19 +++++++++++++++ res/values-land/dimens.xml | 1 - res/values-land/styles.xml | 36 ---------------------------- res/values-ru/cm_extra.xml | 27 +++++++++++++++++++++ res/values/cm_dimens.xml | 21 ++++++++++++++++ res/values/cm_extra.xml | 34 ++++++++++++++++++++++++++ res/values/dimens.xml | 4 ---- res/values/styles.xml | 44 ++++++++++++++++++++++------------ 21 files changed, 226 insertions(+), 264 deletions(-) delete mode 100644 res/layout-land/dialpad_key.xml delete mode 100644 res/layout-land/dialpad_key_one.xml delete mode 100644 res/layout-land/dialpad_key_pound.xml delete mode 100644 res/layout-land/dialpad_key_star.xml delete mode 100644 res/layout-land/dialpad_key_zero.xml create mode 100644 res/values-el/cm_extra.xml create mode 100644 res/values-iw/cm_extra.xml create mode 100644 res/values-ko/cm_extra.xml create mode 100644 res/values-land/cm_dimens.xml delete mode 100644 res/values-land/styles.xml create mode 100644 res/values-ru/cm_extra.xml create mode 100644 res/values/cm_dimens.xml create mode 100644 res/values/cm_extra.xml (limited to 'res') diff --git a/res/layout-land/dialpad_key.xml b/res/layout-land/dialpad_key.xml deleted file mode 100644 index 29e6bf1..0000000 --- a/res/layout-land/dialpad_key.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/res/layout-land/dialpad_key_one.xml b/res/layout-land/dialpad_key_one.xml deleted file mode 100644 index bfbbdf9..0000000 --- a/res/layout-land/dialpad_key_one.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - diff --git a/res/layout-land/dialpad_key_pound.xml b/res/layout-land/dialpad_key_pound.xml deleted file mode 100644 index 73321af..0000000 --- a/res/layout-land/dialpad_key_pound.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/res/layout-land/dialpad_key_star.xml b/res/layout-land/dialpad_key_star.xml deleted file mode 100644 index 33e11b7..0000000 --- a/res/layout-land/dialpad_key_star.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/res/layout-land/dialpad_key_zero.xml b/res/layout-land/dialpad_key_zero.xml deleted file mode 100644 index d5fcc18..0000000 --- a/res/layout-land/dialpad_key_zero.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/res/layout/dialpad_key.xml b/res/layout/dialpad_key.xml index d5f47a4..ccf04b9 100644 --- a/res/layout/dialpad_key.xml +++ b/res/layout/dialpad_key.xml @@ -24,12 +24,19 @@ - - + + + + + diff --git a/res/layout/dialpad_key_one.xml b/res/layout/dialpad_key_one.xml index 5a9d13f..4a15453 100644 --- a/res/layout/dialpad_key_one.xml +++ b/res/layout/dialpad_key_one.xml @@ -19,7 +19,7 @@ style="@style/DialpadKeyButtonStyle"> - - + diff --git a/res/layout/dialpad_key_star.xml b/res/layout/dialpad_key_star.xml index d84e156..88adef5 100644 --- a/res/layout/dialpad_key_star.xml +++ b/res/layout/dialpad_key_star.xml @@ -18,8 +18,8 @@ android:id="@+id/star" style="@style/DialpadKeyButtonStyle"> - + diff --git a/res/layout/dialpad_key_zero.xml b/res/layout/dialpad_key_zero.xml index 11805f1..e37a14d 100644 --- a/res/layout/dialpad_key_zero.xml +++ b/res/layout/dialpad_key_zero.xml @@ -26,12 +26,12 @@ - + style="@style/DialpadKeyPlusStyle" /> diff --git a/res/values-el/cm_extra.xml b/res/values-el/cm_extra.xml new file mode 100644 index 0000000..b947305 --- /dev/null +++ b/res/values-el/cm_extra.xml @@ -0,0 +1,26 @@ + + + + ΑΒΓ + ΔΕΖ + ΗΘΙ + ΚΛΜ + ΝΞΟ + ΠΡΣ + ΤΥΦ + ΧΨΩ + diff --git a/res/values-iw/cm_extra.xml b/res/values-iw/cm_extra.xml new file mode 100644 index 0000000..1d3b228 --- /dev/null +++ b/res/values-iw/cm_extra.xml @@ -0,0 +1,26 @@ + + + + דהו + אבג + מנ + יכל + זחט + רשת + צק + סעפ + diff --git a/res/values-ko/cm_extra.xml b/res/values-ko/cm_extra.xml new file mode 100644 index 0000000..bb328d4 --- /dev/null +++ b/res/values-ko/cm_extra.xml @@ -0,0 +1,26 @@ + + + + ㅇㅁ + + ㄱㅋㄲ + ㄴㄹ + ㄷㅌㄸ + ㅂㅍㅃ + ㅅㅎㅆ + ㅈㅊㅉ + diff --git a/res/values-land/cm_dimens.xml b/res/values-land/cm_dimens.xml new file mode 100644 index 0000000..0e96cec --- /dev/null +++ b/res/values-land/cm_dimens.xml @@ -0,0 +1,19 @@ + + + + 20dp + \ No newline at end of file diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml index e82d1fa..5cb0db5 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -20,5 +20,4 @@ 3dp 35dp 20sp - 0dp diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml deleted file mode 100644 index 07f4998..0000000 --- a/res/values-land/styles.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - diff --git a/res/values-ru/cm_extra.xml b/res/values-ru/cm_extra.xml new file mode 100644 index 0000000..90da55b --- /dev/null +++ b/res/values-ru/cm_extra.xml @@ -0,0 +1,27 @@ + + + + АБВГ + ДЕЖЗ + ИЙКЛ + МНОП + РСТУ + ФХЦЧ + ШЩЪЫ + ЬЭЮЯ + + diff --git a/res/values/cm_dimens.xml b/res/values/cm_dimens.xml new file mode 100644 index 0000000..eec63b9 --- /dev/null +++ b/res/values/cm_dimens.xml @@ -0,0 +1,21 @@ + + + + 10sp + 9dp + 26dp + \ No newline at end of file diff --git a/res/values/cm_extra.xml b/res/values/cm_extra.xml new file mode 100644 index 0000000..3c4adf8 --- /dev/null +++ b/res/values/cm_extra.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 0dc916e..56981f0 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -21,10 +21,6 @@ 23sp 36sp 64dp - 3dp - - 1dp - 13dp 65dp 18sp diff --git a/res/values/styles.xml b/res/values/styles.xml index df649d6..620b301 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -27,34 +27,28 @@ sans-serif-light wrap_content wrap_content - @dimen/dialpad_key_number_margin_bottom + @dimen/dialpad_key_margin_right center + center_vertical - + - + + + + + + + + -- cgit v1.2.3