From 550f92b42a5387875d994a9b72050eaec2018649 Mon Sep 17 00:00:00 2001 From: Chiao Cheng Date: Fri, 19 Jul 2013 19:10:55 -0700 Subject: Adding call card and buttons to UI. - Created a fragment for call card and a fragment for UI. - Adding corresponding button images. Change-Id: I5facacd3a4346ab9d9ec2a67a2742dc27dbf5583 --- InCallUI/res/drawable-hdpi/ic_groups_holo_dark.png | Bin 0 -> 2152 bytes InCallUI/res/drawable-hdpi/picture_unknown.png | Bin 0 -> 54065 bytes .../drawable-ldrtl-hdpi/ic_groups_holo_dark.png | Bin 0 -> 6750 bytes .../res/drawable-ldrtl-hdpi/picture_unknown.png | Bin 0 -> 16967 bytes .../drawable-ldrtl-mdpi/ic_groups_holo_dark.png | Bin 0 -> 5637 bytes .../res/drawable-ldrtl-mdpi/picture_unknown.png | Bin 0 -> 11643 bytes .../drawable-ldrtl-xhdpi/ic_groups_holo_dark.png | Bin 0 -> 8070 bytes .../res/drawable-ldrtl-xhdpi/picture_unknown.png | Bin 0 -> 24021 bytes InCallUI/res/drawable-mdpi/ic_groups_holo_dark.png | Bin 0 -> 1376 bytes InCallUI/res/drawable-mdpi/picture_unknown.png | Bin 0 -> 34983 bytes .../res/drawable-xhdpi/ic_groups_holo_dark.png | Bin 0 -> 3076 bytes InCallUI/res/drawable-xhdpi/picture_unknown.png | Bin 0 -> 84465 bytes InCallUI/res/layout/call_button_fragment.xml | 178 +++++++++++++++++++++ InCallUI/res/layout/call_card_fragment.xml | 136 ++++++++++++++++ InCallUI/res/layout/extra_button_row.xml | 71 ++++++++ InCallUI/res/layout/incall_screen.xml | 23 ++- InCallUI/res/values/styles.xml | 21 +++ .../com/android/incallui/CallButtonFragment.java | 35 ++++ .../src/com/android/incallui/CallCardFragment.java | 35 ++++ .../com/android/incallui/CallHandlerService.java | 11 +- .../src/com/android/incallui/InCallActivity.java | 7 + 21 files changed, 505 insertions(+), 12 deletions(-) create mode 100644 InCallUI/res/drawable-hdpi/ic_groups_holo_dark.png create mode 100644 InCallUI/res/drawable-hdpi/picture_unknown.png create mode 100644 InCallUI/res/drawable-ldrtl-hdpi/ic_groups_holo_dark.png create mode 100644 InCallUI/res/drawable-ldrtl-hdpi/picture_unknown.png create mode 100644 InCallUI/res/drawable-ldrtl-mdpi/ic_groups_holo_dark.png create mode 100644 InCallUI/res/drawable-ldrtl-mdpi/picture_unknown.png create mode 100644 InCallUI/res/drawable-ldrtl-xhdpi/ic_groups_holo_dark.png create mode 100644 InCallUI/res/drawable-ldrtl-xhdpi/picture_unknown.png create mode 100644 InCallUI/res/drawable-mdpi/ic_groups_holo_dark.png create mode 100644 InCallUI/res/drawable-mdpi/picture_unknown.png create mode 100644 InCallUI/res/drawable-xhdpi/ic_groups_holo_dark.png create mode 100644 InCallUI/res/drawable-xhdpi/picture_unknown.png create mode 100644 InCallUI/res/layout/call_button_fragment.xml create mode 100644 InCallUI/res/layout/call_card_fragment.xml create mode 100644 InCallUI/res/layout/extra_button_row.xml create mode 100644 InCallUI/src/com/android/incallui/CallButtonFragment.java create mode 100644 InCallUI/src/com/android/incallui/CallCardFragment.java diff --git a/InCallUI/res/drawable-hdpi/ic_groups_holo_dark.png b/InCallUI/res/drawable-hdpi/ic_groups_holo_dark.png new file mode 100644 index 000000000..6194506d4 Binary files /dev/null and b/InCallUI/res/drawable-hdpi/ic_groups_holo_dark.png differ diff --git a/InCallUI/res/drawable-hdpi/picture_unknown.png b/InCallUI/res/drawable-hdpi/picture_unknown.png new file mode 100644 index 000000000..278c1215c Binary files /dev/null and b/InCallUI/res/drawable-hdpi/picture_unknown.png differ diff --git a/InCallUI/res/drawable-ldrtl-hdpi/ic_groups_holo_dark.png b/InCallUI/res/drawable-ldrtl-hdpi/ic_groups_holo_dark.png new file mode 100644 index 000000000..185c55bab Binary files /dev/null and b/InCallUI/res/drawable-ldrtl-hdpi/ic_groups_holo_dark.png differ diff --git a/InCallUI/res/drawable-ldrtl-hdpi/picture_unknown.png b/InCallUI/res/drawable-ldrtl-hdpi/picture_unknown.png new file mode 100644 index 000000000..3b81ff3e7 Binary files /dev/null and b/InCallUI/res/drawable-ldrtl-hdpi/picture_unknown.png differ diff --git a/InCallUI/res/drawable-ldrtl-mdpi/ic_groups_holo_dark.png b/InCallUI/res/drawable-ldrtl-mdpi/ic_groups_holo_dark.png new file mode 100644 index 000000000..844bed3f0 Binary files /dev/null and b/InCallUI/res/drawable-ldrtl-mdpi/ic_groups_holo_dark.png differ diff --git a/InCallUI/res/drawable-ldrtl-mdpi/picture_unknown.png b/InCallUI/res/drawable-ldrtl-mdpi/picture_unknown.png new file mode 100644 index 000000000..062faf5f5 Binary files /dev/null and b/InCallUI/res/drawable-ldrtl-mdpi/picture_unknown.png differ diff --git a/InCallUI/res/drawable-ldrtl-xhdpi/ic_groups_holo_dark.png b/InCallUI/res/drawable-ldrtl-xhdpi/ic_groups_holo_dark.png new file mode 100644 index 000000000..38ea395c5 Binary files /dev/null and b/InCallUI/res/drawable-ldrtl-xhdpi/ic_groups_holo_dark.png differ diff --git a/InCallUI/res/drawable-ldrtl-xhdpi/picture_unknown.png b/InCallUI/res/drawable-ldrtl-xhdpi/picture_unknown.png new file mode 100644 index 000000000..1f57aa1a1 Binary files /dev/null and b/InCallUI/res/drawable-ldrtl-xhdpi/picture_unknown.png differ diff --git a/InCallUI/res/drawable-mdpi/ic_groups_holo_dark.png b/InCallUI/res/drawable-mdpi/ic_groups_holo_dark.png new file mode 100644 index 000000000..fefee322e Binary files /dev/null and b/InCallUI/res/drawable-mdpi/ic_groups_holo_dark.png differ diff --git a/InCallUI/res/drawable-mdpi/picture_unknown.png b/InCallUI/res/drawable-mdpi/picture_unknown.png new file mode 100644 index 000000000..cc5dd09a6 Binary files /dev/null and b/InCallUI/res/drawable-mdpi/picture_unknown.png differ diff --git a/InCallUI/res/drawable-xhdpi/ic_groups_holo_dark.png b/InCallUI/res/drawable-xhdpi/ic_groups_holo_dark.png new file mode 100644 index 000000000..470ca2795 Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/ic_groups_holo_dark.png differ diff --git a/InCallUI/res/drawable-xhdpi/picture_unknown.png b/InCallUI/res/drawable-xhdpi/picture_unknown.png new file mode 100644 index 000000000..b8ee922fd Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/picture_unknown.png differ diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml new file mode 100644 index 000000000..1c2e7c7b2 --- /dev/null +++ b/InCallUI/res/layout/call_button_fragment.xml @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InCallUI/res/layout/call_card_fragment.xml b/InCallUI/res/layout/call_card_fragment.xml new file mode 100644 index 000000000..688563de2 --- /dev/null +++ b/InCallUI/res/layout/call_card_fragment.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/InCallUI/res/layout/extra_button_row.xml b/InCallUI/res/layout/extra_button_row.xml new file mode 100644 index 000000000..79c11366d --- /dev/null +++ b/InCallUI/res/layout/extra_button_row.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InCallUI/res/layout/incall_screen.xml b/InCallUI/res/layout/incall_screen.xml index d9f7bdfc8..403a17cc8 100644 --- a/InCallUI/res/layout/incall_screen.xml +++ b/InCallUI/res/layout/incall_screen.xml @@ -16,13 +16,20 @@ - - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/main"> + + + + + + + + + diff --git a/InCallUI/res/values/styles.xml b/InCallUI/res/values/styles.xml index c86e570b8..415db361d 100644 --- a/InCallUI/res/values/styles.xml +++ b/InCallUI/res/values/styles.xml @@ -81,6 +81,27 @@ 1 + + + + + +