1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 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 "person info" area of the main 18 CallCard of the in-call UI, which includes the photo and 19 name/number TextViews. --> 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/callCardPersonInfo" 22 android:orientation="vertical" 23 android:gravity="center_horizontal" 24 android:layout_width="fill_parent" 25 android:layout_height="wrap_content" 26 > 27 28 <!-- Photo, with elapsed time widget off to the side. --> 29 <RelativeLayout 30 android:layout_width="fill_parent" 31 android:layout_height="172dp" 32 > 33 <!-- Photo, or else a generic placeholder image. --> 34 <!-- Contact photos are generally 96x96 (but may be smaller.) 35 The layout size of this ImageView is larger than that, though, 36 to account for the incall_photo_border background, which 37 adds a white border around the image (and a shadow around 38 the white border.) --> 39 <ImageView android:id="@+id/photo" 40 android:layout_width="172dp" 41 android:layout_height="166dp" 42 android:layout_centerHorizontal="true" 43 android:background="@drawable/incall_photo_border_lg" 44 /> 45 46 <!-- The big "Manage conference" button that we show in place of 47 the contact photo during a conference call (but only on 48 devices where the in-call touch UI is enabled.) The photo is 49 invisible if this button is visible, and vice-versa. --> 50 <Button android:id="@+id/manageConferencePhotoButton" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:layout_centerHorizontal="true" 54 android:text="@string/onscreenManageConferenceText" 55 android:textAppearance="?android:attr/textAppearanceMedium" 56 android:textColor="?android:attr/textColorPrimary" 57 android:background="@drawable/manage_conference_photo_button" 58 android:layout_marginTop="16dip" 59 /> 60 61 <!-- Elapsed time indication for a call in progress. --> 62 <TextView android:id="@+id/elapsedTime" 63 android:textAppearance="?android:attr/textAppearanceMedium" 64 android:textSize="15sp" 65 android:textStyle="bold" 66 android:singleLine="true" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_toRightOf="@id/photo" 70 android:layout_alignParentBottom="true" 71 android:layout_marginBottom="19dip" 72 android:layout_marginLeft="-14dip" 73 /> 74 </RelativeLayout> 75 76 <!-- Name (or the phone number, if we don't have a name to display). --> 77 <TextView android:id="@+id/name" 78 android:gravity="center_horizontal" 79 android:textAppearance="?android:attr/textAppearanceLarge" 80 android:textSize="28sp" 81 android:singleLine="true" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_marginTop="-22dip" 85 android:paddingLeft="4dip" 86 android:paddingRight="4dip" 87 /> 88 89 <!-- Label (like "Mobile" or "Work", if present) and phone number, side by side --> 90 <LinearLayout android:orientation="horizontal" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:layout_gravity="center_horizontal" 94 android:layout_marginTop="-6dip"> 95 <TextView android:id="@+id/label" 96 android:textAppearance="?android:attr/textAppearanceSmall" 97 android:textSize="18sp" 98 android:textColor="?android:attr/textColorSecondary" 99 android:singleLine="true" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:paddingRight="6dip" 103 /> 104 <TextView android:id="@+id/phoneNumber" 105 android:textAppearance="?android:attr/textAppearanceSmall" 106 android:textSize="18sp" 107 android:textColor="?android:attr/textColorSecondary" 108 android:singleLine="true" 109 android:layout_width="wrap_content" 110 android:layout_height="wrap_content" 111 /> 112 </LinearLayout> 113 114 <!-- Social status --> 115 <TextView android:id="@+id/socialStatus" 116 android:textAppearance="?android:attr/textAppearanceSmall" 117 android:textSize="16sp" 118 android:textColor="?android:attr/textColorSecondary" 119 android:maxLines="2" 120 android:ellipsize="end" 121 android:paddingLeft="10dip" 122 android:paddingRight="10dip" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 /> 126 127</LinearLayout> 128