1 <?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 <!-- NOTE: Be careful when setting title_container's marginEnd. 20 The value is updated in code. See uses of 21 MessageHeaderView.mCollapsedTitleContainerMarginEnd --> 22 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:id="@+id/title_container" 24 android:layout_width="0dip" 25 android:layout_height="wrap_content" 26 android:layout_weight="1" 27 android:layout_marginTop="12dp" 28 style="@style/MessageUpperHeaderTextStyle" > 29 30 <TextView 31 android:id="@+id/upper_date" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:layout_alignParentEnd="true" 35 android:layout_alignParentRight="true" 36 android:visibility="gone" 37 android:lines="1" 38 style="@style/MessageHeaderUpperDateStyle" /> 39 <ImageView 40 android:id="@+id/attachment" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_toStartOf="@id/upper_date" 44 android:layout_toLeftOf="@id/upper_date" 45 android:src="@drawable/ic_attachment_holo_light" 46 style="@style/AttachmentIconStyle" /> 47 <TextView 48 android:id="@+id/sender_name" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_toStartOf="@id/attachment" 52 android:layout_toLeftOf="@id/attachment" 53 android:layout_alignParentStart="true" 54 android:layout_alignParentLeft="true" 55 style="@style/MessageSenderNameStyle" /> 56 <TextView 57 android:id="@+id/sender_email" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_below="@id/sender_name" 61 android:layout_alignParentStart="true" 62 android:layout_alignParentLeft="true" 63 style="@style/MessageHeaderSubtitleStyle" /> 64 <TextView 65 android:id="@+id/send_date" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_below="@id/sender_email" 69 android:layout_alignParentStart="true" 70 android:layout_alignParentLeft="true" 71 style="@style/MessageHeaderSubtitleStyle" /> 72 <TextView 73 android:id="@+id/email_snippet" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_below="@id/sender_name" 77 android:layout_alignParentStart="true" 78 android:layout_alignParentLeft="true" 79 style="@style/MessageHeaderSnippetStyle" /> 80 </RelativeLayout> 81