OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / core / res / res / layout / contact_header.xml
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             <ImageView
45                 android:id="@+id/aggregate_badge"
46                 android:layout_width="wrap_content"
47                 android:layout_height="wrap_content"
48                 android:paddingRight="3dip"
49                 android:paddingTop="3dip"
50                 android:src="@drawable/ic_aggregated"
51                 android:visibility="gone"
52             />
53
54             <TextView android:id="@+id/name"
55                 android:layout_width="match_parent"
56                 android:layout_height="wrap_content"
57                 android:singleLine="true"
58                 android:ellipsize="end"
59                 android:textAppearance="?android:attr/textAppearanceMedium"
60                 android:textStyle="bold"
61                 android:shadowColor="#BB000000"
62                 android:shadowRadius="2.75"
63                 />
64         </LinearLayout>
65
66         <TextView android:id="@+id/phonetic_name"
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"
77             android:layout_width="match_parent"
78             android:layout_height="wrap_content"
79             android:textAppearance="?android:attr/textAppearanceSmall"
80             android:singleLine="true"
81             android:ellipsize="end"
82             android:layout_marginTop="-2dip"
83             android:visibility="gone"
84         />
85
86         <TextView android:id="@+id/status_date"
87             android:layout_width="match_parent"
88             android:layout_height="0dip"
89             android:layout_weight="1"
90             android:textAppearance="?android:attr/textAppearanceSmall"
91             android:textSize="12sp"
92             android:layout_marginTop="-2dip"
93             android:visibility="gone"
94         />
95     </LinearLayout>
96
97     <ImageView
98         android:id="@+id/presence"
99         android:layout_width="wrap_content"
100         android:layout_height="wrap_content"
101         android:layout_gravity="center_vertical"
102         android:paddingLeft="3dip"
103         android:paddingRight="6dip"
104         android:visibility="gone"
105     />
106
107     <CheckBox
108         android:id="@+id/star"
109         android:layout_width="wrap_content"
110         android:layout_height="wrap_content"
111         android:layout_gravity="center_vertical"
112         android:visibility="gone"
113         android:contentDescription="@string/description_star"
114         style="?android:attr/starStyle" />
115
116 </LinearLayout>