blob: f1fbfdfac9559ae87bb9b5de32fd31be3c2c8335 [file] [log] [blame]
Santos Cordon7d4ddf62013-07-10 11:58:08 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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<!-- The "Manage conference" UI. This panel is displayed (instead of
18 the inCallPanel) when the user clicks the "Manage conference"
19 button while on a conference call. -->
20<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:id="@+id/manageConferencePanel"
22 android:background="#FF000000"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:visibility="gone"
26 >
27 <!-- This original header (with timer) is currently not being used,
28 but may be of use in the future. -->
29 <!-- Header, including chronometer and List divider -->
30 <Chronometer
31 android:id="@+id/manageConferencePanelHeader"
32 android:textAppearance="?android:attr/textAppearanceLarge"
33 android:textSize="24sp"
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:gravity="center_horizontal"
37 android:layout_alignParentTop="true"
38 android:layout_marginTop="5dip"
39 android:layout_marginBottom="5dip"
40 android:visibility="gone"/>
41
42 <ImageView
43 android:id="@+id/manageConferencePanelDivider"
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 android:src="@android:drawable/divider_horizontal_dark"
47 android:scaleType="fitXY"
48 android:layout_below="@id/manageConferencePanelHeader"
49 android:visibility="gone"/>
50 <!-- End of the original header -->
51
52 <!-- Header which looks like ActionBar. -->
53 <FrameLayout
54 android:id="@+id/manageConferenceHeader"
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:background="@*android:drawable/ab_transparent_dark_holo">
58
59 <LinearLayout
60 android:id="@+id/manage_done"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 android:background="?android:attr/selectableItemBackground"
64 android:clickable="true"
65 android:orientation="horizontal">
66
67 <ImageView
68 android:src="?android:attr/homeAsUpIndicator"
69 android:layout_gravity="center_vertical|left"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content" />
72
73 <TextView
74 android:layout_width="match_parent"
75 android:layout_height="?android:attr/actionBarSize"
76 style="@*android:style/TextAppearance.Holo.Widget.ActionBar.Title"
77 android:gravity="center_vertical"
78 android:text="@string/manageConferenceLabel"/>
79 </LinearLayout>
80
81 </FrameLayout> <!-- End of header -->
82
83 <!-- The scrollview wrapper for the list of callers on
84 the conference call (in case the list gets too long). -->
85 <ScrollView
86 android:id="@+id/conferenceList"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:layout_below="@id/manageConferenceHeader">
90
91 <!-- The actual list of callers; this embedded LinearLayout
92 required since scrollview only supports a single child. -->
93 <LinearLayout
94 android:orientation="vertical"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:showDividers="middle|end"
98 android:divider="?android:attr/listDivider">
99
100 <!-- A conference can have at most MAX_CALLERS_IN_CONFERENCE (= 5) callers,
101 so just define all those UI elements here. -->
102
103 <!-- Caller 0 -->
104 <include
105 layout="@layout/caller_in_conference"
106 android:id="@+id/caller0"/>
107
108 <!-- Caller 1 -->
109 <include
110 layout="@layout/caller_in_conference"
111 android:id="@+id/caller1"/>
112
113 <!-- Caller 2 -->
114 <include
115 layout="@layout/caller_in_conference"
116 android:id="@+id/caller2"/>
117
118 <!-- Caller 3 -->
119 <include
120 layout="@layout/caller_in_conference"
121 android:id="@+id/caller3"/>
122
123 <!-- Caller 4 -->
124 <include
125 layout="@layout/caller_in_conference"
126 android:id="@+id/caller4"/>
127
128 </LinearLayout> <!-- End of "list of callers on conference call" -->
129
130 </ScrollView> <!-- End of scrolling list wrapper for the linear layout -->
131
132</RelativeLayout>