blob: e291ac16311f97b1f4fad5ac2e61117a64623ae5 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2007 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 state of the Phone UI. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- Main frame containing the main set of in-call UI elements. -->
<FrameLayout android:id="@+id/mainFrame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="10dip"
android:paddingLeft="6dip"
android:paddingRight="6dip"
>
<!-- (1) inCallPanel: the main set of in-call UI elements.
We update this view's background to indicate the state of the
current call; see updateInCallPanelBackground(). -->
<RelativeLayout android:id="@+id/inCallPanel"
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. -->
<com.android.phone2.CallCard android:id="@+id/callCard"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</RelativeLayout> <!-- End of inCallPanel -->
<!-- Contains all OTA-related UI elements for CDMA -->
<ViewStub android:id="@+id/otaCallCardStub"
android:layout="@layout/otacall_card"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</FrameLayout> <!-- End of mainFrame -->
<!-- The "Manage conference" UI. This panel is displayed (instead of
the inCallPanel) when the user clicks the "Manage conference"
button while on a conference call. -->
<ViewStub android:id="@+id/manageConferencePanelStub"
android:layout="@layout/manage_conference_panel"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<!-- The sliding drawer control containing the DTMF dialpad.
Note this isn't a child of mainFrame, which ensures that it'll be
able to use the full width of the screen. (And a SlidingDrawer
widget needs to be be a direct child of a FrameLayout anyway.)
This is used only on devices that do *not* have an onscreen
InCallTouchUi widget.-->
<!-- TODO: this should be a ViewStub, and should only get inflated
on platforms that need it. -->
<include layout="@layout/dtmf_twelve_key_dialer"/>
<!-- Finally, the "touch lock" overlay, drawn on top of the DTMF
dialpad (after some delay) to prevent false touches from
triggering DTMF tones. (When the overlay is up, you need to
double-tap the "lock" icon to unlock the dialpad.) -->
<RelativeLayout android:id="@+id/touchLockOverlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:background="#8000"
>
<!-- Layout note: we could use android:layout_centerInParent="true"
here to center the lock icon exactly in the middle of the screen.
But it actually looks better to have the lock roughly in the
middle of the dialpad key area, so instead we position it a
fixed distance from the bottom of the screen. -->
<TextView android:id="@+id/touchLockIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="70dip"
android:text="@string/touchLockText"
android:textAppearance="?android:attr/textAppearanceLarge"
android:background="@drawable/dialpad_lock"
/>
</RelativeLayout>
<!-- In-call onscreen touch controls, used on some platforms. -->
<!-- TODO: if this widget ends up being totally unused on some platforms,
then this should probably be a ViewStub. -->
<com.android.phone2.InCallTouchUi
android:id="@+id/inCallTouchUi"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<!-- Frame where the provider's badge will be
inflated. The badge must fit in the available height.
The badge is displayed for 5s on top of the contact's
picture.
-->
<FrameLayout android:id="@+id/inCallProviderOverlay"
android:background="@drawable/dialog_bg_calling_via"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="88dip"
android:layout_marginTop="8dip"
android:layout_gravity="top"
android:visibility="gone">
<TextView android:id="@+id/callingVia"
android:text="@string/calling_via_template"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceMediumInverse"
android:textSize="16sp"
/>
</FrameLayout>
</FrameLayout>