Home | History | Annotate | Download | only in layout
      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 state of the Phone UI. -->
     18 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19               android:layout_width="match_parent"
     20               android:layout_height="match_parent"
     21               >
     22 
     23     <!-- Main frame containing the main set of in-call UI elements. -->
     24     <FrameLayout android:id="@+id/mainFrame"
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent"
     27         android:paddingTop="10dip"
     28         android:paddingLeft="6dip"
     29         android:paddingRight="6dip"
     30         >
     31 
     32         <!-- (1) inCallPanel: the main set of in-call UI elements.
     33              We update this view's background to indicate the state of the
     34              current call; see updateInCallPanelBackground(). -->
     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          <!-- Contains all OTA-related UI elements for CDMA -->
     48         <ViewStub android:id="@+id/otaCallCardStub"
     49                   android:layout="@layout/otacall_card"
     50                   android:layout_width="match_parent"
     51                   android:layout_height="match_parent"
     52                   />
     53 
     54     </FrameLayout>  <!-- End of mainFrame -->
     55 
     56     <!-- The "Manage conference" UI.  This panel is displayed (instead of
     57          the inCallPanel) when the user clicks the "Manage conference"
     58          button while on a conference call. -->
     59     <ViewStub android:id="@+id/manageConferencePanelStub"
     60               android:layout="@layout/manage_conference_panel"
     61               android:layout_width="match_parent"
     62               android:layout_height="match_parent"
     63               />
     64 
     65     <!-- The sliding drawer control containing the DTMF dialpad.
     66          Note this isn't a child of mainFrame, which ensures that it'll be
     67          able to use the full width of the screen.  (And a SlidingDrawer
     68          widget needs to be be a direct child of a FrameLayout anyway.)
     69          This is used only on devices that do *not* have an onscreen
     70          InCallTouchUi widget.-->
     71     <!-- TODO: this should be a ViewStub, and should only get inflated
     72          on platforms that need it. -->
     73     <include layout="@layout/dtmf_twelve_key_dialer"/>
     74 
     75     <!-- Finally, the "touch lock" overlay, drawn on top of the DTMF
     76          dialpad (after some delay) to prevent false touches from
     77          triggering DTMF tones.  (When the overlay is up, you need to
     78          double-tap the "lock" icon to unlock the dialpad.) -->
     79     <RelativeLayout android:id="@+id/touchLockOverlay"
     80         android:layout_width="match_parent"
     81         android:layout_height="match_parent"
     82         android:visibility="gone"
     83         android:background="#8000"
     84         >
     85         <!-- Layout note: we could use android:layout_centerInParent="true"
     86              here to center the lock icon exactly in the middle of the screen.
     87              But it actually looks better to have the lock roughly in the
     88              middle of the dialpad key area, so instead we position it a
     89              fixed distance from the bottom of the screen. -->
     90         <TextView android:id="@+id/touchLockIcon"
     91             android:layout_width="wrap_content"
     92             android:layout_height="wrap_content"
     93             android:gravity="center"
     94             android:layout_alignParentBottom="true"
     95             android:layout_centerHorizontal="true"
     96             android:layout_marginBottom="70dip"
     97             android:text="@string/touchLockText"
     98             android:textAppearance="?android:attr/textAppearanceLarge"
     99             android:background="@drawable/dialpad_lock"
    100             />
    101     </RelativeLayout>
    102 
    103     <!-- In-call onscreen touch controls, used on some platforms. -->
    104     <!-- TODO: if this widget ends up being totally unused on some platforms,
    105          then this should probably be a ViewStub. -->
    106     <com.android.phone.InCallTouchUi
    107         android:id="@+id/inCallTouchUi"
    108         android:layout_width="match_parent"
    109         android:layout_height="match_parent"
    110         />
    111 
    112     <!-- Frame where the provider's badge will be
    113          inflated. The badge must fit in the available height.
    114          The badge is displayed for 5s on top of the contact's
    115          picture.
    116       -->
    117     <FrameLayout android:id="@+id/inCallProviderOverlay"
    118         android:background="@drawable/dialog_bg_calling_via"
    119         android:layout_width="match_parent"
    120         android:layout_height="wrap_content"
    121         android:minHeight="88dip"
    122         android:layout_marginTop="8dip"
    123         android:layout_gravity="top"
    124         android:visibility="gone">
    125         <TextView android:id="@+id/callingVia"
    126             android:text="@string/calling_via_template"
    127             android:layout_width="wrap_content"
    128             android:layout_height="wrap_content"
    129             android:layout_gravity="center"
    130             android:gravity="center"
    131             android:textAppearance="?android:attr/textAppearanceMediumInverse"
    132             android:textSize="16sp"
    133             />
    134     </FrameLayout>
    135 
    136 </FrameLayout>
    137