• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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<!-- In-call Phone UI; see InCallScreen.java. -->
18<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/incall_screen"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    >
23    <!-- inCallPanel: container for the CallCard. -->
24    <!-- TODO: This RelativeLayout is useless since it only has
25         one child.  And the only reason it's here is so we can
26         setVisibility(View.GONE) on it when we want to entirely
27         hide the CallCard.
28         So let's just get rid of it, and call setVisibility()
29         directly on the CallCard. -->
30    <!-- Note that the CallCard is technically the size of the full screen
31         (since layout_width and layout_height are both "match_parent" here) but
32         we manually adjust its bottom margin in CallCard.updateCallInfoLayout()
33         to make sure it doesn't overlap with the onscreen buttons from
34         incall_touch_ui.xml. -->
35    <RelativeLayout android:id="@+id/inCallPanel"
36                    android:layout_width="match_parent"
37                    android:layout_height="match_parent"
38                    >
39        <!-- The "Call Card", which displays info about the currently
40             active phone call(s) on the device.  See call_card.xml. -->
41        <com.android.phone.CallCard android:id="@+id/callCard"
42                                    android:layout_width="match_parent"
43                                    android:layout_height="match_parent"
44                                    />
45    </RelativeLayout>  <!-- End of inCallPanel -->
46
47    <!-- In-call onscreen touch controls; see InCallTouchUi.java.
48         This widget contains the cluster of buttons shown at the bottom
49         of the in-call screen, and also the DTMF dialpad (which, when
50         visible, covers the upper part of the screen too.) -->
51    <com.android.phone.InCallTouchUi
52        android:id="@+id/inCallTouchUi"
53        android:layout_width="match_parent"
54        android:layout_height="match_parent"
55        />
56
57    <!-- ViewStub for OTASP-related UI elements (for the CDMA "activation"
58         call.)  Note that this ViewStub provides the *entire* OTASP
59         screen, including the status area at the top *and* touch controls
60         at the bottom of the screen.  The regular CallCard and the
61         InCallTouchUi widget are not used at all during an OTASP call. -->
62    <ViewStub android:id="@+id/otaCallCardStub"
63              android:layout="@layout/otacall_card"
64              android:layout_width="match_parent"
65              android:layout_height="match_parent"
66              />
67
68    <!-- The "Manage conference" UI.  This panel is displayed (and covers up
69         the entire normal in-call UI) when the user clicks "Manage conference"
70         during a GSM conference call. -->
71    <ViewStub android:id="@+id/manageConferencePanelStub"
72              android:layout="@layout/manage_conference_panel"
73              android:layout_width="match_parent"
74              android:layout_height="match_parent"
75              />
76
77    <!-- Overlay for the "Calling via ..." provider badge, which is
78         displayed for a few seconds at the start of any outgoing call
79         using a gateway provider (see InCallScreen.updateProviderOverlay()). -->
80    <LinearLayout android:id="@+id/inCallProviderOverlay"
81        android:background="@drawable/dialog_bg_calling_via"
82        android:layout_width="match_parent"
83        android:layout_height="88dip"
84        android:layout_marginTop="@dimen/provider_overlay_top_margin"
85        android:layout_gravity="top"
86        android:gravity="center"
87        android:visibility="gone"
88        android:orientation="horizontal">
89
90         <ImageView android:id="@+id/callingViaIcon"
91            android:layout_width="40dip"
92            android:layout_height="40dip"
93            />
94        <TextView android:id="@+id/callingVia"
95            android:text="@string/calling_via_template"
96            android:layout_weight="1"
97            android:layout_width="0dip"
98            android:layout_height="match_parent"
99            android:textAppearance="?android:attr/textAppearanceSmallInverse"
100            android:gravity="center"
101            />
102        <View
103            android:layout_width="40dip"
104            android:layout_height="40dip"
105            />
106    </LinearLayout>
107
108</FrameLayout>
109