blob: b5a6901be2e540ac194984149601dafbeac50339 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 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.
-->
<!-- XML resource file for the "person info" area of the main
CallCard of the in-call UI, which includes the photo and
name/number TextViews. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/callCardPersonInfo"
android:orientation="vertical"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<!-- Photo, with elapsed time widget off to the side. -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="172dp"
>
<!-- Photo, or else a generic placeholder image. -->
<!-- Contact photos are generally 96x96 (but may be smaller.)
The layout size of this ImageView is larger than that, though,
to account for the incall_photo_border background, which
adds a white border around the image (and a shadow around
the white border.) -->
<ImageView android:id="@+id/photo"
android:layout_width="172dp"
android:layout_height="166dp"
android:layout_centerHorizontal="true"
android:background="@drawable/incall_photo_border_lg"
android:contentDescription="@string/contactPhoto"
/>
<!-- The big "Manage conference" button that we show in place of
the contact photo during a conference call (but only on
devices where the in-call touch UI is enabled.) The photo is
invisible if this button is visible, and vice-versa. -->
<Button android:id="@+id/manageConferencePhotoButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="@string/onscreenManageConferenceText"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:background="@drawable/manage_conference_photo_button"
android:layout_marginTop="16dip"
/>
<!-- Elapsed time indication for a call in progress. -->
<TextView android:id="@+id/elapsedTime"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="15sp"
android:textStyle="bold"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/photo"
android:layout_alignParentBottom="true"
android:layout_marginBottom="19dip"
android:layout_marginLeft="-14dip"
/>
</RelativeLayout>
<!-- Name (or the phone number, if we don't have a name to display). -->
<TextView android:id="@+id/name"
android:gravity="center_horizontal"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="28sp"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="-22dip"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:paddingBottom="4dip"
/>
<!-- Label (like "Mobile" or "Work", if present) and phone number, side by side -->
<LinearLayout android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="-6dip">
<TextView android:id="@+id/label"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="18sp"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="6dip"
/>
<TextView android:id="@+id/phoneNumber"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="18sp"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<!-- Social status -->
<TextView android:id="@+id/socialStatus"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="16sp"
android:textColor="?android:attr/textColorSecondary"
android:maxLines="2"
android:ellipsize="end"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>