• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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:layout_width="fill_parent"
23                android:layout_height="fill_parent"
24                android:visibility="gone"
25                >
26    <!-- This original header (with timer) is currently not being used,
27         but may be of use in the future. -->
28    <!-- Header, including chronometer and List divider -->
29    <Chronometer
30        android:id="@+id/manageConferencePanelHeader"
31        android:textAppearance="?android:attr/textAppearanceLarge"
32        android:textSize="24sp"
33        android:layout_width="fill_parent"
34        android:layout_height="wrap_content"
35        android:gravity="center_horizontal"
36        android:layout_alignParentTop="true"
37        android:layout_marginTop="5dip"
38        android:layout_marginBottom="5dip"
39        android:visibility="gone"/>
40
41    <ImageView
42        android:id="@+id/manageConferencePanelDivider"
43        android:layout_width="fill_parent"
44        android:layout_height="wrap_content"
45        android:src="@android:drawable/divider_horizontal_dark"
46        android:scaleType="fitXY"
47        android:layout_below="@id/manageConferencePanelHeader"
48        android:visibility="gone"/>
49    <!-- End of the original header -->
50
51    <!-- New header, based on the list separator in Contacts. -->
52    <LinearLayout android:id="@+id/manageConferenceHeader"
53                  android:layout_width="fill_parent"
54                  android:layout_height="wrap_content"
55                  android:orientation="vertical">
56
57        <TextView
58            android:layout_width="fill_parent"
59            android:layout_height="wrap_content"
60            android:gravity="center_vertical"
61            android:background="@android:drawable/dark_header"
62            android:textColor="?android:attr/textColorSecondary"
63            android:textStyle="bold"
64            android:textSize="14sp"
65            android:paddingLeft="8dip"
66            android:text="@string/menu_manageConference"/>
67
68        <View
69            android:layout_width="fill_parent"
70            android:layout_height="1dip"
71            android:background="?android:attr/listDivider"/>
72
73    </LinearLayout>  <!-- End of new header -->
74
75    <!-- The scrollview wrapper for the list of callers on
76         the conference call (in case the list gets too long). -->
77    <ScrollView
78        android:id="@+id/conferenceList"
79        android:layout_width="fill_parent"
80        android:layout_height="wrap_content"
81        android:layout_below="@id/manageConferenceHeader"
82        android:layout_marginTop="8dip"
83        android:layout_marginBottom="60dip">
84
85        <!-- The actual list of callers; this embedded LinearLayout
86             required since scrollview only supports a single child. -->
87        <LinearLayout
88            android:orientation="vertical"
89            android:layout_width="fill_parent"
90            android:layout_height="wrap_content">
91
92            <!-- A conference can have at most MAX_CALLERS_IN_CONFERENCE (= 5) callers,
93                 so just define all those UI elements here. -->
94
95            <!-- Caller 0 -->
96            <include
97                layout="@layout/caller_in_conference"
98                android:id="@+id/caller0"/>
99
100            <!-- Caller 1 -->
101            <include
102                layout="@layout/caller_in_conference"
103                android:id="@+id/caller1"/>
104
105            <!-- Caller 2 -->
106            <include
107                layout="@layout/caller_in_conference"
108                android:id="@+id/caller2"/>
109
110            <!-- Caller 3 -->
111            <include
112                layout="@layout/caller_in_conference"
113                android:id="@+id/caller3"/>
114
115            <!-- Caller 4 -->
116            <include
117                layout="@layout/caller_in_conference"
118                android:id="@+id/caller4"/>
119
120        </LinearLayout>  <!-- End of "list of callers on conference call" -->
121
122    </ScrollView>  <!-- End of scrolling list wrapper for the linear layout -->
123
124    <!-- The grey footer, background behind the "Back to call" button -->
125    <View
126        android:layout_width="fill_parent"
127        android:layout_height="54dip"
128        android:gravity="center_vertical"
129        android:layout_alignParentBottom="true"
130        android:background="@android:drawable/dark_header"/>
131
132    <!-- The "Back to call" button -->
133    <Button android:id="@+id/manage_done"
134            style="?android:attr/buttonStyleSmall"
135            android:text="@string/caller_manage_manage_done_text"
136            android:layout_width="wrap_content"
137            android:layout_height="wrap_content"
138            android:layout_alignParentBottom="true"
139            android:layout_centerHorizontal="true"
140            android:paddingTop="14dip"
141            android:paddingBottom="18dip"
142            android:paddingLeft="42dip"
143            android:paddingRight="42dip"/>
144
145</RelativeLayout>
146