• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2    <!--
3/* Copyright 2009, Google Inc.
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9**     http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17    -->
18
19<LinearLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:background="#FF8F8F8F"
22    android:orientation="horizontal"
23    android:layout_width="fill_parent"
24    android:layout_height="wrap_content">
25
26    <ImageView
27        android:id="@+id/avatar"
28        android:background="#FFFFFFFF"
29        android:padding="2dip"
30        android:layout_margin="5dip"
31        android:layout_width="48dip"
32        android:layout_height="48dip" />
33
34    <LinearLayout
35        android:layout_weight="1"
36        android:orientation="vertical"
37        android:layout_width="wrap_content"
38        android:layout_height="wrap_content"
39        android:layout_marginLeft="3dip">
40        <TextView
41            android:id="@+id/contact_name"
42            android:layout_marginTop="5dip"
43            style="?android:attr/windowTitleStyle"
44            android:textStyle="bold"
45            android:textSize="16dip"
46            android:gravity="center_vertical"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content" />
49
50        <TextView
51            android:id="@+id/contact_status"
52            android:gravity="center_vertical"
53            style="?android:attr/windowTitleStyle"
54            android:layout_width="fill_parent"
55            android:layout_height="wrap_content" />
56    </LinearLayout>
57
58    <ImageView
59        android:layout_weight="0"
60        android:id="@+id/presence_icon"
61        android:layout_marginLeft="3dip"
62        android:layout_marginRight="5dip"
63        android:layout_gravity="center_vertical"
64        android:layout_width="wrap_content"
65        android:layout_height="wrap_content" />
66</LinearLayout>
67
68