blob: 88f6b2b1f2b17f7e4b858add109320c5a2113aa6 [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
Andrew Sapperstein14f93742013-07-25 14:29:56 -070019<!-- NOTE: Be careful when setting title_container's marginEnd.
20 The value is updated in code. See uses of
21 MessageHeaderView.mCollapsedTitleContainerMarginEnd -->
Andrew Sappersteina839fd02014-04-22 14:33:55 -070022<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Mindy Pereira326c6602012-01-04 15:32:42 -080023 android:id="@+id/title_container"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070024 android:layout_width="0dip"
Mindy Pereira326c6602012-01-04 15:32:42 -080025 android:layout_height="wrap_content"
Andrew Sapperstein65aaf092013-08-22 12:31:53 -070026 android:layout_weight="1"
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070027 android:layout_marginTop="@dimen/message_header_text_margin_top"
Andrew Sappersteinca4f9472013-09-18 17:40:56 -070028 style="@style/MessageUpperHeaderTextStyle" >
Mindy Pereira326c6602012-01-04 15:32:42 -080029
Andrew Sappersteina839fd02014-04-22 14:33:55 -070030 <TextView
31 android:id="@+id/upper_date"
32 android:layout_width="wrap_content"
33 android:layout_height="wrap_content"
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070034 android:layout_alignBaseline="@+id/sender_name"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070035 android:visibility="gone"
36 android:lines="1"
37 style="@style/MessageHeaderUpperDateStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070038
Andrew Sappersteina839fd02014-04-22 14:33:55 -070039 <ImageView
40 android:id="@+id/attachment"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070043 android:layout_marginTop="6dp"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070044 android:layout_toStartOf="@id/upper_date"
45 android:layout_toLeftOf="@id/upper_date"
Andrew Sapperstein26407712014-07-01 16:11:03 -070046 android:src="@drawable/ic_attach_file_20dp"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070047 style="@style/AttachmentIconStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070048
Andrew Sappersteina839fd02014-04-22 14:33:55 -070049 <TextView
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070050 android:id="@id/sender_name"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070051 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:layout_toStartOf="@id/attachment"
54 android:layout_toLeftOf="@id/attachment"
55 style="@style/MessageSenderNameStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070056
Andrew Sappersteina839fd02014-04-22 14:33:55 -070057 <TextView
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070058 android:id="@+id/recipient_summary"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070059 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_below="@id/sender_name"
Andrew Sapperstein1666f0d2014-09-10 14:04:42 -070062 android:ellipsize="end"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070063 style="@style/MessageHeaderSubtitleStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070064
Andrew Sapperstein35c3bb72013-07-11 11:28:16 -070065 <TextView
66 android:id="@+id/send_date"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070067 android:layout_width="wrap_content"
Andrew Sapperstein35c3bb72013-07-11 11:28:16 -070068 android:layout_height="wrap_content"
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070069 android:layout_below="@id/recipient_summary"
70 android:background="?android:attr/selectableItemBackground"
71 android:paddingBottom="@dimen/message_header_margin_bottom"
72 style="@style/MessageHeaderSubtitleStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070073
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070074 <TextView
75 android:id="@+id/hide_details"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_below="@id/recipient_summary"
79 android:background="?android:attr/selectableItemBackground"
80 android:paddingBottom="@dimen/message_header_margin_bottom"
81 android:text="@string/hide_details"
82 android:textColor="@color/conversation_view_text_color_link_blue"
83 android:visibility="gone"
Andrew Sapperstein35c3bb72013-07-11 11:28:16 -070084 style="@style/MessageHeaderSubtitleStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070085
Andrew Sapperstein35c3bb72013-07-11 11:28:16 -070086 <TextView
87 android:id="@+id/email_snippet"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070088 android:layout_width="wrap_content"
Andrew Sapperstein35c3bb72013-07-11 11:28:16 -070089 android:layout_height="wrap_content"
Andrew Sapperstein58aea282014-07-02 11:44:36 -070090 android:layout_marginBottom="16dp"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070091 android:layout_below="@id/sender_name"
Andrew Sapperstein35c3bb72013-07-11 11:28:16 -070092 style="@style/MessageHeaderSnippetStyle" />
Jin Caoa7404582014-08-05 14:03:59 -070093
Andrew Sappersteina839fd02014-04-22 14:33:55 -070094</RelativeLayout>