From 5510dea8156517d56cf2104e113f9f9357d42b61 Mon Sep 17 00:00:00 2001 From: Ihab Awad Date: Mon, 3 Mar 2014 14:12:57 -0800 Subject: Update dialpad to new look and feel. http://b/13189041 Change-Id: I26b306300e11fd6830d40b51a705c472c89925f4 --- InCallUI/proguard.flags | 6 + InCallUI/res/anim/slide_in.xml | 23 ++++ InCallUI/res/anim/slide_out.xml | 23 ++++ InCallUI/res/drawable/dialpad_key_colors.xml | 22 +++ InCallUI/res/layout/dialpad.xml | 76 +++++++++++ InCallUI/res/layout/dialpad_key.xml | 34 +++++ .../res/layout/dtmf_twelve_key_dialer_view.xml | 135 ++++++------------- InCallUI/res/values/colors.xml | 22 ++- InCallUI/res/values/dimens.xml | 16 ++- InCallUI/res/values/strings.xml | 50 +++++++ InCallUI/res/values/styles.xml | 49 +++++-- .../src/com/android/incallui/DialpadFragment.java | 147 +++++++++++++++++++-- .../src/com/android/incallui/InCallActivity.java | 17 ++- .../com/android/incallui/NeededForReflection.java | 30 +++++ 14 files changed, 525 insertions(+), 125 deletions(-) create mode 100644 InCallUI/res/anim/slide_in.xml create mode 100644 InCallUI/res/anim/slide_out.xml create mode 100644 InCallUI/res/drawable/dialpad_key_colors.xml create mode 100644 InCallUI/res/layout/dialpad.xml create mode 100644 InCallUI/res/layout/dialpad_key.xml create mode 100644 InCallUI/src/com/android/incallui/NeededForReflection.java (limited to 'InCallUI') diff --git a/InCallUI/proguard.flags b/InCallUI/proguard.flags index bc8814355..4e8310ca9 100644 --- a/InCallUI/proguard.flags +++ b/InCallUI/proguard.flags @@ -6,3 +6,9 @@ -keepclasseswithmembers class com.android.incallui.AnimationUtils$CrossFadeDrawable { *** setCrossFadeAlpha(...); } + +# Any class or method annotated with NeededForTesting or NeededForReflection. +-keepclassmembers class * { +@com.android.contacts.common.test.NeededForTesting *; +@com.android.incallui.NeededForReflection *; +} diff --git a/InCallUI/res/anim/slide_in.xml b/InCallUI/res/anim/slide_in.xml new file mode 100644 index 000000000..c8372ce27 --- /dev/null +++ b/InCallUI/res/anim/slide_in.xml @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/InCallUI/res/anim/slide_out.xml b/InCallUI/res/anim/slide_out.xml new file mode 100644 index 000000000..2861db275 --- /dev/null +++ b/InCallUI/res/anim/slide_out.xml @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/InCallUI/res/drawable/dialpad_key_colors.xml b/InCallUI/res/drawable/dialpad_key_colors.xml new file mode 100644 index 000000000..27b4d4fc5 --- /dev/null +++ b/InCallUI/res/drawable/dialpad_key_colors.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/InCallUI/res/layout/dialpad.xml b/InCallUI/res/layout/dialpad.xml new file mode 100644 index 000000000..d537e6200 --- /dev/null +++ b/InCallUI/res/layout/dialpad.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InCallUI/res/layout/dialpad_key.xml b/InCallUI/res/layout/dialpad_key.xml new file mode 100644 index 000000000..180074dec --- /dev/null +++ b/InCallUI/res/layout/dialpad_key.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml b/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml index fe84010c7..7240cb119 100644 --- a/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml +++ b/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml @@ -14,9 +14,7 @@ limitations under the License. --> - - - - + android:layout_height="0dp" + android:layout_weight="1"/> - + android:layout_height="wrap_content" + android:background="@color/background_dialpad"> - - - - - + - - - - - + + - - - - - - - - - - - - - + + + diff --git a/InCallUI/res/values/colors.xml b/InCallUI/res/values/colors.xml index 6080e910b..ca53f272e 100644 --- a/InCallUI/res/values/colors.xml +++ b/InCallUI/res/values/colors.xml @@ -23,9 +23,6 @@ #8033b5e5 #FFFFFF - - #FFFFFF - #33B5E5 @@ -44,9 +41,24 @@ #303030 - - #000000 + + #000000 + + + #ffffff + + + #ececec #000000 + + + #3B77E7 + + + #8b8b8b + + + #33999999 diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index ebfb93494..9bde442e6 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -71,7 +71,8 @@ 4dp 2dp - 35sp + 36sp + 47dp 0px @@ -116,4 +117,17 @@ -48dip 0dip + + 40sp + 13sp + 26sp + 30dp + 50dp + 56dp + 18sp + 11dp + 5dp + + + 2dp diff --git a/InCallUI/res/values/strings.xml b/InCallUI/res/values/strings.xml index 513cd9191..046917182 100644 --- a/InCallUI/res/values/strings.xml +++ b/InCallUI/res/values/strings.xml @@ -517,4 +517,54 @@ Emergency number + + + 0 + + 1 + + 2 + + 3 + + 4 + + 5 + + 6 + + 7 + + 8 + + 9 + + * + + # + + + + + + + + ABC + + DEF + + GHI + + JKL + + MNO + + PQRS + + TUV + + WXYZ + + + + diff --git a/InCallUI/res/values/styles.xml b/InCallUI/res/values/styles.xml index 91090b844..1b15d2937 100644 --- a/InCallUI/res/values/styles.xml +++ b/InCallUI/res/values/styles.xml @@ -131,21 +131,46 @@ @style/InCallAnimationStyle - + + + + + + -