• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- XML resource file for secondary call info, which will be used by CallCard. -->
18
19<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/secondary_call_info"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:layout_alignParentBottom="true"
24    android:background="@color/incall_banner_secondary_background_color"
25    android:visibility="gone">
26
27    <Space android:layout_width="match_parent"
28        android:layout_height="1dp"
29        android:background="@color/secondary_call_info_divider_highlight_color" />
30
31    <!-- This LinearLayout nested immediately in a FrameLayout is necessary to apply both a
32         background color and ripple to the button. -->
33    <LinearLayout
34        android:layout_width="match_parent"
35        android:layout_height="match_parent"
36        android:orientation="horizontal"
37        android:paddingStart="@dimen/secondary_call_info_horizontal_padding"
38        android:paddingEnd="@dimen/secondary_call_info_horizontal_padding"
39        android:paddingTop="@dimen/secondary_call_info_vertical_padding"
40        android:paddingBottom="@dimen/secondary_call_info_vertical_padding"
41        android:background="?android:attr/selectableItemBackground">
42
43        <ImageView android:id="@+id/secondaryCallVideoCallIcon"
44                   android:layout_width="wrap_content"
45                   android:layout_height="wrap_content"
46                   android:src="@drawable/ic_toolbar_video"
47                   android:tint="@color/incall_banner_secondary_text_color"
48                   android:paddingEnd="16dp"/>
49
50        <ImageView android:id="@+id/secondaryCallConferenceCallIcon"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:src="@drawable/ic_group_white_24dp"
54            android:tint="@color/incall_banner_secondary_text_color"
55            android:paddingEnd="16dp"/>
56
57        <LinearLayout
58            android:layout_width="0dp"
59            android:layout_height="wrap_content"
60            android:layout_weight="1"
61            android:orientation="vertical">
62
63            <!-- Name (or the phone number, if we don't have a name to display). -->
64            <TextView android:id="@+id/secondaryCallName"
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:textColor="@color/incall_banner_secondary_text_color"
68                android:textSize="@dimen/secondary_call_info_text_size"
69                android:textAlignment="viewStart"
70                android:ellipsize="marquee"
71                android:singleLine="true"/>
72
73            <!-- Provider, e.g. AT&T, that a call is associated with -->
74            <LinearLayout android:id="@+id/secondary_call_provider_info"
75                android:layout_width="match_parent"
76                android:layout_height="wrap_content"
77                android:orientation="horizontal"
78                android:visibility="gone" >
79
80                <TextView android:id="@+id/secondaryCallProviderLabel"
81                    android:layout_width="match_parent"
82                    android:layout_height="wrap_content"
83                    android:textColor="@color/incall_banner_secondary_text_color"
84                    android:textSize="@dimen/secondary_call_info_text_size"
85                    android:textAlignment="viewStart"
86                    android:singleLine="true"/>
87
88            </LinearLayout>
89
90        </LinearLayout>
91
92        <!-- Call status of the background call, usually the string "On hold". -->
93        <TextView android:id="@+id/secondaryCallStatus"
94            android:layout_width="wrap_content"
95            android:layout_height="wrap_content"
96            android:layout_gravity="center_vertical"
97            android:paddingEnd="18dp"
98            android:text="@string/onHold"
99            android:textColor="@color/incall_banner_secondary_text_color"
100            android:textSize="@dimen/secondary_call_info_text_size"
101            android:singleLine="true" />
102
103    </LinearLayout>
104
105</FrameLayout>
106