From 526c0b832e27dc38a8dc6eae1f16c50acb51c6e8 Mon Sep 17 00:00:00 2001 From: Ihab Awad Date: Thu, 27 Feb 2014 12:55:36 -0800 Subject: New appearance and look and feel for dialpad. http://b/13189041 Change-Id: I91028c8fdee31c1f76610573a4396eb979c30170 --- res/drawable-hdpi/ic_dial_action_delete.png | Bin 1219 -> 942 bytes res/drawable-mdpi/ic_dial_action_delete.png | Bin 959 -> 694 bytes res/drawable-xhdpi/ic_dial_action_delete.png | Bin 1622 -> 1214 bytes res/drawable-xxhdpi/ic_dial_action_delete.png | Bin 1840 -> 1907 bytes res/drawable/dialpad_key_colors.xml | 22 ++ res/layout/dialpad.xml | 94 +++---- res/layout/dialpad_chooser_list_item.xml | 2 +- res/layout/dialpad_digits.xml | 58 ++++ res/layout/dialpad_fragment.xml | 104 ++------ res/layout/dialpad_key.xml | 38 +-- res/layout/dialtacts_activity.xml | 292 +++++++++++---------- res/values/colors.xml | 22 +- res/values/dimens.xml | 45 ++-- res/values/strings.xml | 1 + res/values/styles.xml | 60 +++-- src/com/android/dialer/DialtactsActivity.java | 96 ++++--- .../android/dialer/dialpad/DialpadFragment.java | 137 ++++------ 17 files changed, 487 insertions(+), 484 deletions(-) create mode 100644 res/drawable/dialpad_key_colors.xml create mode 100644 res/layout/dialpad_digits.xml diff --git a/res/drawable-hdpi/ic_dial_action_delete.png b/res/drawable-hdpi/ic_dial_action_delete.png index 0bf8563cc..ebf692a4f 100644 Binary files a/res/drawable-hdpi/ic_dial_action_delete.png and b/res/drawable-hdpi/ic_dial_action_delete.png differ diff --git a/res/drawable-mdpi/ic_dial_action_delete.png b/res/drawable-mdpi/ic_dial_action_delete.png index 98341e984..e1394c5d6 100644 Binary files a/res/drawable-mdpi/ic_dial_action_delete.png and b/res/drawable-mdpi/ic_dial_action_delete.png differ diff --git a/res/drawable-xhdpi/ic_dial_action_delete.png b/res/drawable-xhdpi/ic_dial_action_delete.png index 989e8b1ab..6788669a7 100644 Binary files a/res/drawable-xhdpi/ic_dial_action_delete.png and b/res/drawable-xhdpi/ic_dial_action_delete.png differ diff --git a/res/drawable-xxhdpi/ic_dial_action_delete.png b/res/drawable-xxhdpi/ic_dial_action_delete.png index a7ff1b1ee..ca91a7283 100644 Binary files a/res/drawable-xxhdpi/ic_dial_action_delete.png and b/res/drawable-xxhdpi/ic_dial_action_delete.png differ diff --git a/res/drawable/dialpad_key_colors.xml b/res/drawable/dialpad_key_colors.xml new file mode 100644 index 000000000..27b4d4fc5 --- /dev/null +++ b/res/drawable/dialpad_key_colors.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml index 4fc3e8382..c3db42094 100644 --- a/res/layout/dialpad.xml +++ b/res/layout/dialpad.xml @@ -19,42 +19,26 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dialpad" android:layout_width="match_parent" - android:layout_height="0px" - android:layout_weight="@integer/dialpad_layout_weight_dialpad" - android:layout_gravity="center_horizontal" - android:layout_marginTop="@dimen/dialpad_vertical_margin" - android:paddingStart="5dip" - android:paddingEnd="5dip" - android:paddingBottom="10dip" - android:stretchColumns="0,1,2" + android:layout_height="wrap_content" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:background="@android:color/transparent" + android:stretchColumns="*" android:layoutDirection="ltr" > - + + style="@style/DialpadKeyButtonStyle"> + style="@style/DialpadKeyInternalLayoutStyle"> + style="@style/DialpadKeyNumberStyle"/> @@ -63,57 +47,45 @@ - + - + - + - + style="@style/DialpadKeyButtonStyle"> + + + + - + style="@style/DialpadKeyButtonStyle"> + + + + diff --git a/res/layout/dialpad_chooser_list_item.xml b/res/layout/dialpad_chooser_list_item.xml index 5ba88ca54..9a4903698 100644 --- a/res/layout/dialpad_chooser_list_item.xml +++ b/res/layout/dialpad_chooser_list_item.xml @@ -27,7 +27,7 @@ + + + + + + + + + + diff --git a/res/layout/dialpad_fragment.xml b/res/layout/dialpad_fragment.xml index e673cea98..239f72774 100644 --- a/res/layout/dialpad_fragment.xml +++ b/res/layout/dialpad_fragment.xml @@ -16,103 +16,51 @@ + android:layout_weight="1" + android:background="#00000000" /> + + android:background="@color/background_dialpad"> + - - + android:layout_height="10dp" /> - + - - + - - + - - - - - + android:layout_height="2dp" + android:background="@color/dialpad_separator_line_color" /> + android:visibility="gone" /> diff --git a/res/layout/dialpad_key.xml b/res/layout/dialpad_key.xml index c104f8acc..5bf858c43 100644 --- a/res/layout/dialpad_key.xml +++ b/res/layout/dialpad_key.xml @@ -17,29 +17,19 @@ - - - + style="@style/DialpadKeyButtonStyle"> + + + + + + + + \ No newline at end of file diff --git a/res/layout/dialtacts_activity.xml b/res/layout/dialtacts_activity.xml index 1a1a0b099..21f84bbfa 100644 --- a/res/layout/dialtacts_activity.xml +++ b/res/layout/dialtacts_activity.xml @@ -13,159 +13,173 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + + - + + + - - - - - - - - - - - - + - - + + + + + + + + + + + - - - - + + + + + + + + - - - - - - + + + + - - + + + diff --git a/res/values/colors.xml b/res/values/colors.xml index 431f1bdec..5de0e02c0 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -19,7 +19,19 @@ #000000 #888888 - #ffffff + + + #ffffff + + #ececec + + #3B77E7 + + #8b8b8b + + #000000 + + #dadada #FF0000 @@ -45,14 +57,6 @@ #eeeeee - - #f2020709 - - - #33b5e5 - - #aaaaaa - #3B77E7 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 24ee2e037..6e563c1c5 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -16,18 +16,8 @@ --> - - 0dip - 2dip - 35sp - - - 0px - 0px - 3dp - 2dp - - 74dp + + 14sp 1dp - - 15 - 65 - - 40dp - 11dp - 15dp - 25dp - 41dp + 40sp + 13sp + 26sp + 30dp + 50dp + 56dp + 18sp + 11dp + 5dp + 36sp + 47dp + 16dp + 0px + 3dp + 2dp + + 74dp + 60dp 56dp diff --git a/res/values/strings.xml b/res/values/strings.xml index ca97e6fe6..ce08ae5b5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -731,6 +731,7 @@ Remove + Speed Dial diff --git a/res/values/styles.xml b/res/values/styles.xml index 6ecad8c3b..e0fc1db96 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -108,32 +108,46 @@ #33b5e5 - - - - - + + + + + + -