1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<LinearLayout
18  xmlns:android="http://schemas.android.com/apk/res/android"
19  android:layout_width="match_parent"
20  android:layout_height="64dp"
21  android:paddingStart="16dp"
22  android:paddingEnd="8dp"
23  android:gravity="center_vertical"
24  android:orientation="horizontal">
25
26  <!-- Caller information -->
27  <LinearLayout
28    android:layout_width="0dp"
29    android:layout_height="match_parent"
30    android:layout_weight="1"
31    android:gravity="center_vertical"
32    android:orientation="horizontal">
33
34    <ImageView
35      android:id="@+id/callerPhoto"
36      android:layout_width="@dimen/contact_browser_list_item_photo_size"
37      android:layout_height="@dimen/contact_browser_list_item_photo_size"/>
38
39    <LinearLayout
40      android:layout_width="match_parent"
41      android:layout_height="wrap_content"
42      android:layout_marginStart="16dp"
43      android:paddingBottom="2dp"
44      android:gravity="center_vertical"
45      android:orientation="vertical">
46
47      <!-- Name or number of this caller -->
48      <TextView
49        android:id="@+id/conferenceCallerName"
50        android:layout_width="wrap_content"
51        android:layout_height="match_parent"
52        android:layout_marginEnd="2dp"
53        android:singleLine="true"
54        android:textAppearance="?android:attr/textAppearanceLarge"
55        android:textColor="@color/conference_call_manager_caller_name_text_color"
56        android:textSize="16sp"/>
57
58      <!-- Number of this caller if name is supplied above -->
59      <LinearLayout
60        android:layout_width="wrap_content"
61        android:layout_height="match_parent"
62        android:gravity="bottom"
63        android:orientation="horizontal">
64
65        <!-- Status (only support on hold now) -->
66        <TextView
67            android:id="@+id/conferenceCallerStatus"
68            android:layout_width="wrap_content"
69            android:layout_height="wrap_content"
70            style="@style/Dialer.TextAppearance.Secondary"
71            android:enabled="false"
72            android:visibility="gone"/>
73
74        <!-- Number -->
75        <TextView
76          android:id="@+id/conferenceCallerNumber"
77          android:layout_width="wrap_content"
78          android:layout_height="wrap_content"
79          android:layout_marginEnd="8dp"
80          android:ellipsize="marquee"
81          android:singleLine="true"
82          android:textColor="@color/conference_call_manager_secondary_text_color"
83          android:textSize="14sp"/>
84
85      </LinearLayout>  <!-- End of caller number -->
86
87    </LinearLayout>  <!-- End of caller information -->
88
89  </LinearLayout>
90
91  <!-- "Separate" (i.e. "go private") button for this caller -->
92  <ImageView
93    android:id="@+id/conferenceCallerSeparate"
94    android:layout_width="@dimen/conference_call_manager_button_dimension"
95    android:layout_height="@dimen/conference_call_manager_button_dimension"
96    android:background="?android:attr/selectableItemBackgroundBorderless"
97    android:clickable="true"
98    android:contentDescription="@string/goPrivate"
99    android:scaleType="center"
100    android:src="@drawable/ic_call_split_white_24dp"
101    android:tint="?colorIcon"/>
102
103  <!-- "Disconnect" button which terminates the connection with this caller. -->
104  <ImageButton
105    android:id="@+id/conferenceCallerDisconnect"
106    android:layout_width="@dimen/conference_call_manager_button_dimension"
107    android:layout_height="@dimen/conference_call_manager_button_dimension"
108    android:layout_marginStart="8dp"
109    android:background="?android:attr/selectableItemBackgroundBorderless"
110    android:clickable="true"
111    android:contentDescription="@string/conference_caller_disconnect_content_description"
112    android:scaleType="center"
113    android:src="@drawable/quantum_ic_call_end_white_24"
114    android:tint="?colorIcon"/>
115
116</LinearLayout>  <!-- End of single list element -->
117