summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-09-23 10:47:16 -0700
committerNancy Chen <nancychen@google.com>2015-09-25 17:27:36 -0700
commit3f6253e0e104f04e8ba197ec202c95ad9b15da53 (patch)
tree8a192e6c3f17390a90f88e1da90368d2a3e62c03 /InCallUI
parent0b81bb2cf3c3eb736e8f692a1fd68fb2d3c47742 (diff)
UI for InCall context for outgoing calls to a business.
This is similar to ag/774448 except for business context instead of contact context. Bug: 23351559 Change-Id: Ie200fffb5b5f9fe542fa21b2176760254b491629
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/res/layout/business_call_info_list_item.xml41
-rw-r--r--InCallUI/res/layout/call_card_fragment.xml7
-rw-r--r--InCallUI/res/layout/contact_call_info_list_item.xml5
-rw-r--r--InCallUI/res/values/colors.xml1
-rw-r--r--InCallUI/res/values/dimens.xml9
5 files changed, 56 insertions, 7 deletions
diff --git a/InCallUI/res/layout/business_call_info_list_item.xml b/InCallUI/res/layout/business_call_info_list_item.xml
new file mode 100644
index 000000000..0a2478f0d
--- /dev/null
+++ b/InCallUI/res/layout/business_call_info_list_item.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+ <ImageView android:id="@+id/icon"
+ android:layout_width="@dimen/business_call_context_image_size"
+ android:layout_height="@dimen/business_call_context_image_size"
+ android:scaleType="centerCrop"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="@dimen/business_call_context_image_padding"
+ android:layout_marginRight="@dimen/business_call_context_image_padding"/>
+ <TextView android:id="@+id/heading"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_toEndOf="@id/icon"
+ android:textSize="@dimen/business_call_context_heading_font_size"
+ android:textColor="@color/business_call_context_text_color"
+ android:fontFamily="sans-serif-medium"/>
+ <TextView android:id="@+id/detail"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_toEndOf="@id/icon"
+ android:layout_below="@id/heading"
+ android:textSize="@dimen/business_call_context_detail_font_size"
+ android:textColor="@color/business_call_context_text_color"
+ android:fontFamily="sans-serif-medium"/>
+ </RelativeLayout> \ No newline at end of file
diff --git a/InCallUI/res/layout/call_card_fragment.xml b/InCallUI/res/layout/call_card_fragment.xml
index 1887e6b88..87280b311 100644
--- a/InCallUI/res/layout/call_card_fragment.xml
+++ b/InCallUI/res/layout/call_card_fragment.xml
@@ -53,7 +53,6 @@
</LinearLayout>
-
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
@@ -79,6 +78,7 @@
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
+ android:background="@color/incall_background_color"
android:visibility="gone">
<TextView android:id="@+id/contextTitle"
android:textSize="@dimen/call_context_title_text_size"
@@ -86,12 +86,13 @@
android:fontFamily="sans-serif-medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal" />
+ android:layout_gravity="center_horizontal"
+ android:layout_marginBottom="@dimen/call_context_title_margin_bottom"/>
<ListView android:id="@+id/callContextInfo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@null"
- android:dividerHeight="0dp" />
+ android:dividerHeight="@dimen/call_context_list_item_padding"/>
</LinearLayout>
</FrameLayout>
diff --git a/InCallUI/res/layout/contact_call_info_list_item.xml b/InCallUI/res/layout/contact_call_info_list_item.xml
index 645ca721d..424b59d02 100644
--- a/InCallUI/res/layout/contact_call_info_list_item.xml
+++ b/InCallUI/res/layout/contact_call_info_list_item.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2013 The Android Open Source Project
+<!-- Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -17,8 +17,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingRight="@dimen/contact_call_context_horizontal_padding"
- android:paddingLeft="@dimen/contact_call_context_horizontal_padding"
- android:paddingTop="@dimen/contact_call_context_top_padding">
+ android:paddingLeft="@dimen/contact_call_context_horizontal_padding">
<TextView android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/InCallUI/res/values/colors.xml b/InCallUI/res/values/colors.xml
index dd8067137..409c2d26f 100644
--- a/InCallUI/res/values/colors.xml
+++ b/InCallUI/res/values/colors.xml
@@ -115,4 +115,5 @@
<color name="contact_call_context_message_text_color">@color/dialer_theme_color</color>
<color name="contact_call_context_message_background_color">@color/incall_call_banner_subtext_color</color>
<color name="contact_call_context_detail_text_color">@color/incall_call_banner_subtext_color</color>
+ <color name="business_call_context_text_color">@color/incall_call_banner_subtext_color</color>
</resources>
diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml
index dc9e88194..7738336cc 100644
--- a/InCallUI/res/values/dimens.xml
+++ b/InCallUI/res/values/dimens.xml
@@ -121,8 +121,10 @@
<dimen name="conference_call_manager_button_dimension">46dp</dimen>
<dimen name="call_context_title_text_size">14sp</dimen>
+ <dimen name="call_context_title_margin_bottom">13dp</dimen>
+ <dimen name="call_context_list_item_padding">13dp</dimen>
+
<dimen name="contact_call_context_horizontal_padding">30dp</dimen>
- <dimen name="contact_call_context_top_padding">15dp</dimen>
<dimen name="contact_call_context_message_text_size">16sp</dimen>
<dimen name="contact_call_context_message_vertical_padding">7dp</dimen>
<dimen name="contact_call_context_message_horizontal_padding">12dp</dimen>
@@ -130,4 +132,9 @@
<dimen name="contact_call_content_message_background_accent_radius">2dp</dimen>
<dimen name="contact_call_context_detail_padding_top">7dp</dimen>
<dimen name="contact_call_context_detail_text_size">14sp</dimen>
+
+ <dimen name="business_call_context_image_size">25dp</dimen>
+ <dimen name="business_call_context_image_padding">20dp</dimen>
+ <dimen name="business_call_context_heading_font_size">18sp</dimen>
+ <dimen name="business_call_context_detail_font_size">13sp</dimen>
</resources>