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 <!-- XML resource file for the *children* of a CallCard used in the Phone app. 18 The CallCard itself is a subclass of FrameLayout, and its (single) 19 child is the LinearLayout found here. (In the CallCard constructor, 20 we inflate this file and add it as a child.) 21 TODO: consider just <include>ing this directly from incall_screen.xml? --> 22 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 > 26 27 <!-- Info about the "secondary" call, displayed at the upper right of 28 the screen. (If you're on a call with both lines in use, this 29 area displays the status and caller-id info of the call on hold.) 30 31 This block of info needs to be Z-ordered underneath the 32 primaryCallInfo block, so it's the first child listed here. --> 33 <LinearLayout android:id="@+id/secondaryCallInfo" 34 android:orientation="vertical" 35 android:layout_width="160dp" 36 android:layout_height="wrap_content" 37 android:gravity="center_horizontal" 38 android:layout_alignParentTop="true" 39 android:layout_alignParentRight="true" 40 android:layout_marginTop="16dp" 41 > 42 <TextView android:id="@+id/secondaryCallStatus" 43 android:text="@string/onHold" 44 android:textAppearance="?android:attr/textAppearanceMedium" 45 android:textSize="14sp" 46 android:singleLine="true" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 /> 50 51 <TextView android:id="@+id/secondaryCallName" 52 android:textAppearance="?android:attr/textAppearanceMedium" 53 android:textSize="14sp" 54 android:singleLine="true" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_marginTop="-2dip" 58 /> 59 60 <!-- Scaled-down photo, or else a generic placeholder image. --> 61 <ImageView android:id="@+id/secondaryCallPhoto" 62 android:layout_width="106dp" 63 android:layout_height="101dp" 64 android:layout_marginTop="-6dip" 65 android:background="@drawable/incall_photo_border_med" 66 android:contentDescription="@string/onHold" 67 /> 68 </LinearLayout> 69 70 <!-- The main block of info about the "primary" or "active" call --> 71 <LinearLayout 72 android:id="@+id/primaryCallInfo" 73 android:orientation="vertical" 74 android:gravity="center_horizontal" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:layout_alignParentTop="true" 78 android:layout_marginTop="18dip" 79 > 80 81 <!-- "Upper title" at the very top of the CallCard. --> 82 <TextView android:id="@+id/upperTitle" 83 android:textAppearance="?android:attr/textAppearanceLarge" 84 android:textSize="28sp" 85 android:singleLine="true" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_marginBottom="10dip" 89 /> 90 91 <!-- "Person info": photo / name / number --> 92 <include layout="@layout/call_card_person_info" /> 93 94 </LinearLayout> <!-- End of (1) The main call card --> 95 96 <!-- The hint about the Menu button, below all the call info. 97 This is only ever shown on devices that actually have a 98 menu while in-call, i.e. it's never shown on devices where the 99 InCallTouchUi is enabled (see InCallScreen.updateMenuButtonHint().) --> 100 <TextView android:id="@+id/menuButtonHint" 101 android:text="@string/menuButtonHint" 102 android:textAppearance="?android:attr/textAppearanceMedium" 103 android:textSize="18sp" 104 android:textColor="?android:attr/textColorSecondary" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_below="@id/primaryCallInfo" 108 android:layout_marginTop="22dip" 109 android:layout_centerHorizontal="true" 110 android:visibility="gone" 111 /> 112 113 </RelativeLayout> 114