contact_header.xml revision e87bd517767784bb40f1fac51309fee5b829b00e
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/banner"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="horizontal"
22    android:background="@drawable/title_bar_medium"
23    android:paddingRight="5dip">
24
25    <android.widget.QuickContactBadge android:id="@+id/photo"
26        android:layout_gravity="center_vertical"
27        android:layout_marginRight="8dip"
28        android:layout_marginLeft="-1dip"
29        style="@*android:style/Widget.QuickContactBadge.WindowSmall" />
30    />
31
32    <LinearLayout
33        android:layout_width="0dip"
34        android:layout_height="wrap_content"
35        android:layout_weight="1"
36        android:orientation="vertical"
37        android:layout_gravity="center_vertical" >
38
39        <LinearLayout
40            android:layout_width="match_parent"
41            android:layout_height="wrap_content"
42            android:orientation="horizontal">
43
44            <TextView android:id="@+id/name"
45                android:layout_width="match_parent"
46                android:layout_height="wrap_content"
47                android:singleLine="true"
48                android:ellipsize="end"
49                android:textAppearance="?android:attr/textAppearanceMedium"
50                android:textStyle="bold"
51                android:shadowColor="#BB000000"
52                android:shadowRadius="2.75"
53                />
54        </LinearLayout>
55
56        <TextView android:id="@+id/phonetic_name"
57            android:layout_width="match_parent"
58            android:layout_height="wrap_content"
59            android:textAppearance="?android:attr/textAppearanceSmall"
60            android:singleLine="true"
61            android:ellipsize="end"
62            android:layout_marginTop="-2dip"
63            android:visibility="gone"
64        />
65
66        <TextView android:id="@+id/status"
67            android:layout_width="match_parent"
68            android:layout_height="wrap_content"
69            android:textAppearance="?android:attr/textAppearanceSmall"
70            android:singleLine="true"
71            android:ellipsize="end"
72            android:layout_marginTop="-2dip"
73            android:visibility="gone"
74        />
75
76        <TextView android:id="@+id/status_date"
77            android:layout_width="match_parent"
78            android:layout_height="0dip"
79            android:layout_weight="1"
80            android:textAppearance="?android:attr/textAppearanceSmall"
81            android:textSize="12sp"
82            android:layout_marginTop="-2dip"
83            android:visibility="gone"
84        />
85    </LinearLayout>
86
87    <ImageView
88        android:id="@+id/presence"
89        android:layout_width="wrap_content"
90        android:layout_height="wrap_content"
91        android:layout_gravity="center_vertical"
92        android:paddingLeft="3dip"
93        android:paddingRight="6dip"
94        android:visibility="gone"
95    />
96</LinearLayout>
97