summaryrefslogtreecommitdiff
path: root/res/layout-land/incall_screen.xml
blob: 12781158aae6a12bc5758748bddc303175093526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<!-- In-call Phone UI; see InCallScreen.java. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/landscape_incall_screen"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <!-- The "Call Card", which displays info about the currently
         active phone call(s) on the device.  See call_card.xml. -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/background_dial_holo_dark">
        <include
            layout="@layout/call_card"
            android:id="@+id/callCard"
            android:layout_width="0dp"
            android:layout_weight="3"
            android:layout_height="match_parent" />
        <!-- Note: This center margin is repeated in layout-land/incall_touch_ui
             Both layouts need to have this margin to be aligned correctly. -->
        <View
            android:layout_width="@dimen/dialpad_center_margin"
            android:layout_weight="0"
            android:layout_height="match_parent" />
        <View
            android:layout_width="0dp"
            android:layout_weight="2"
            android:layout_height="match_parent" />
    </LinearLayout>

    <!-- In-call onscreen touch controls; see InCallTouchUi.java.
         This widget contains the cluster of buttons shown at the right
         of the in-call screen, and also the DTMF dialpad (which, when
         visible, covers the contact picture/call_card on the left half of the screen) -->

    <ViewStub
        android:id="@+id/inCallTouchUiStub"
        android:layout="@layout/incall_touch_ui"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    <ViewStub
        android:id="@+id/inCallTouchUiCdmaStub"
        android:layout="@layout/incall_touch_ui_cdma"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <!-- ViewStub for OTASP-related UI elements (for the CDMA "activation"
         call.)  Note that this ViewStub provides the *entire* OTASP
         screen, including the status area at the top *and* touch controls
         at the bottom of the screen.  The regular CallCard and the
         InCallTouchUi widget are not used at all during an OTASP call. -->
    <ViewStub android:id="@+id/otaCallCardStub"
              android:layout="@layout/otacall_card"
              android:layout_width="match_parent"
              android:layout_height="match_parent" />

    <!-- The "Manage conference" UI.  This panel is displayed (and covers up
         the entire normal in-call UI) when the user clicks "Manage conference"
         during a GSM conference call. -->
    <ViewStub android:id="@+id/manageConferencePanelStub"
              android:layout="@layout/manage_conference_panel"
              android:layout_width="match_parent"
              android:layout_height="match_parent" />

</FrameLayout>