blob: 79e3e26046ebf3da9b0dbcbff2b523bce1cb5ae9 [file] [log] [blame]
Mindy Pereira326c6602012-01-04 15:32:42 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2011 Google Inc.
4 Licensed to The Android Open Source Project.
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17-->
18
19<!-- title_container's marginRight is *reserved*, see
20 MessageHeaderView.mCollapsedTextMarginRight -->
21<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:id="@+id/title_container"
23 android:layout_width="0dip"
24 android:layout_height="wrap_content"
25 android:paddingLeft="@dimen/message_header_inner_side_padding"
26 android:layout_marginRight="@dimen/message_header_title_container_margin_right"
27 android:layout_weight="1">
28
29 <TextView
30 android:id="@+id/upper_date"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_alignParentRight="true"
34 android:visibility="gone"
35 android:minHeight="24dp"
36 android:gravity="bottom"
37 android:lines="1"
38 style="@style/MessageHeaderExtraSmallStyle" />
39 <ImageView
40 android:id="@+id/attachment"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_toLeftOf="@id/upper_date"
44 android:layout_marginTop="4dp"
45 android:layout_marginRight="5dp"
46 android:layout_marginLeft="5dp"
47 android:src="@drawable/ic_attachment_holo_light" />
48 <TextView
49 android:id="@+id/sender_name"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_toLeftOf="@id/attachment"
53 android:layout_alignParentLeft="true"
54 android:layout_alignBaseline="@id/upper_date"
55 style="@style/MessageSenderNameStyle"
56 android:singleLine="true" />
57 <ImageView
58 android:id="@+id/presence"
59 android:layout_below="@id/sender_name"
60 style="@style/MessageHeaderPresenceStyle" />
61 <TextView
62 android:id="@+id/sender_email"
63 android:layout_below="@id/sender_name"
64 android:layout_toRightOf="@id/presence"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:singleLine="true"
68 style="@style/MessageSenderEmailStyle" />
69
70</RelativeLayout>