diff options
author | Nancy Chen <nancychen@google.com> | 2015-09-23 10:46:01 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-09-24 11:12:05 -0700 |
commit | 2c7266e6e54faec2cf9c830cc3eb1c82ccfb6d53 (patch) | |
tree | 99627a4e06d7d3d36858cc25d1d41c2d1cfc55c5 /InCallUI/res/layout | |
parent | aade8ed7c3d36a55ae6b0703ca7b257097ddcc91 (diff) |
UI for InCall context for outgoing calls to a contact.
For outgoing calls, we want to display recent messages exchanged between
the caller and the contact for additional context. This CL is just the
UI components. The values are also not finalized, but getting the UI in
place will be helpful for inserting the values when the logic is in the
place.
Bug: 23351559
Change-Id: I11f504cfd4ee7ea488038c849239117beff9a5de
Diffstat (limited to 'InCallUI/res/layout')
-rw-r--r-- | InCallUI/res/layout/call_card_fragment.xml | 20 | ||||
-rw-r--r-- | InCallUI/res/layout/contact_call_info_list_item.xml | 41 |
2 files changed, 61 insertions, 0 deletions
diff --git a/InCallUI/res/layout/call_card_fragment.xml b/InCallUI/res/layout/call_card_fragment.xml index 6d915d976..1887e6b88 100644 --- a/InCallUI/res/layout/call_card_fragment.xml +++ b/InCallUI/res/layout/call_card_fragment.xml @@ -73,6 +73,26 @@ android:background="@color/incall_photo_background_color" android:src="@drawable/img_no_image_automirrored" /> + <!-- Call context --> + <LinearLayout + android:id="@+id/call_context" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:orientation="vertical" + android:visibility="gone"> + <TextView android:id="@+id/contextTitle" + android:textSize="@dimen/call_context_title_text_size" + android:textColor="@color/call_context_title_text_color" + android:fontFamily="sans-serif-medium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" /> + <ListView android:id="@+id/callContextInfo" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:divider="@null" + android:dividerHeight="0dp" /> + </LinearLayout> </FrameLayout> <fragment android:name="com.android.incallui.VideoCallFragment" diff --git a/InCallUI/res/layout/contact_call_info_list_item.xml b/InCallUI/res/layout/contact_call_info_list_item.xml new file mode 100644 index 000000000..645ca721d --- /dev/null +++ b/InCallUI/res/layout/contact_call_info_list_item.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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="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"> + <TextView android:id="@+id/message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="@dimen/contact_call_context_message_horizontal_padding" + android:paddingRight="@dimen/contact_call_context_message_horizontal_padding" + android:paddingTop="@dimen/contact_call_context_message_vertical_padding" + android:paddingBottom="@dimen/contact_call_context_message_vertical_padding" + android:textSize="@dimen/contact_call_context_message_text_size" + android:textColor="@color/contact_call_context_message_text_color" + android:fontFamily="sans-serif-medium" + android:background="@drawable/incoming_sms_background"/> + <TextView android:id="@+id/detail" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="@dimen/contact_call_context_detail_padding_top" + android:textSize="@dimen/contact_call_context_detail_text_size" + android:textColor="@color/contact_call_context_detail_text_color" + android:fontFamily="sans-serif-medium" + android:layout_below="@id/message"/> +</RelativeLayout>
\ No newline at end of file |