From c6019b59bd631df6386185a8877c1b237249dbfa Mon Sep 17 00:00:00 2001 From: zhu youhua Date: Fri, 7 Aug 2015 11:02:41 +0800 Subject: Squashed support for multilanguage T9 dialer (2/2) * Squash of the following: add labels view in dialpad key for multi language - adjust the dialpad key's layout to display both multi language and default English character Change-Id: I8fae739854d6b533abe947a2a7ec293d0e83b389 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 Add Ukrainian T9 symbol map Ref CYNGNOS-2188 Change-Id: I5d094e46e46762cd185683a9c09f59321eac4b66 Fix build as a result of incomplete cherry-pick Change-Id: I90c3202a15ba6127964756ef1785c09196656bb7 Change-Id: I53674f3445ad4a39fdae76cd1afc4d8d27241b36 --- res/layout-land/dialpad_key.xml | 43 ------------- res/layout-land/dialpad_key_one.xml | 44 ------------- 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 | 18 +++++- res/layout/dialpad_key_one.xml | 5 +- 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-uk/cm_extra.xml | 27 ++++++++ res/values/cm_dimens.xml | 21 +++++++ res/values/cm_extra.xml | 34 ++++++++++ res/values/dimens.xml | 1 - res/values/qtistrings.xml | 26 ++++++++ res/values/styles.xml | 46 +++++++++----- .../phone/common/dialpad/DialpadTextView.java | 72 ---------------------- .../android/phone/common/dialpad/DialpadView.java | 63 ++++++++++++++++++- .../android/phone/common/util/SettingsUtil.java | 6 ++ 26 files changed, 356 insertions(+), 332 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-uk/cm_extra.xml create mode 100644 res/values/cm_dimens.xml create mode 100644 res/values/cm_extra.xml delete mode 100644 src/com/android/phone/common/dialpad/DialpadTextView.java diff --git a/res/layout-land/dialpad_key.xml b/res/layout-land/dialpad_key.xml deleted file mode 100644 index 8342ba0..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 fd4291b..0000000 --- a/res/layout-land/dialpad_key_one.xml +++ /dev/null @@ -1,44 +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..483874d 100644 --- a/res/layout/dialpad_key.xml +++ b/res/layout/dialpad_key.xml @@ -24,12 +24,26 @@ - + + + + + + + + + diff --git a/res/layout/dialpad_key_one.xml b/res/layout/dialpad_key_one.xml index 6c6f199..235db82 100644 --- a/res/layout/dialpad_key_one.xml +++ b/res/layout/dialpad_key_one.xml @@ -19,9 +19,12 @@ style="@style/DialpadKeyButtonStyle"> - + diff --git a/res/layout/dialpad_key_pound.xml b/res/layout/dialpad_key_pound.xml index fd90b88..3294918 100644 --- a/res/layout/dialpad_key_pound.xml +++ b/res/layout/dialpad_key_pound.xml @@ -18,8 +18,8 @@ android:id="@+id/pound" 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 42d22f6..4f19bfa 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -20,7 +20,6 @@ 3dp 35dp 20sp - 0dp 65dp diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml deleted file mode 100644 index 24d6f27..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-uk/cm_extra.xml b/res/values-uk/cm_extra.xml new file mode 100644 index 0000000..8ad68b2 --- /dev/null +++ b/res/values-uk/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 adaef0a..29236f3 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -27,7 +27,6 @@ @dimen/dialpad_zero_key_number_default_margin_bottom 1dp - 13dp 18sp 5dp 34sp diff --git a/res/values/qtistrings.xml b/res/values/qtistrings.xml index 5cf743c..92fcc74 100644 --- a/res/values/qtistrings.xml +++ b/res/values/qtistrings.xml @@ -124,4 +124,30 @@ Interworking, unspecified Non selected user clearing + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/values/styles.xml b/res/values/styles.xml index 8eee67d..e742e25 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 - + - + + + + + + + +