Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 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 | |
Andrew Sapperstein | 14f9374 | 2013-07-25 14:29:56 -0700 | [diff] [blame] | 19 | <!-- NOTE: Be careful when setting title_container's marginEnd. |
| 20 | The value is updated in code. See uses of |
| 21 | MessageHeaderView.mCollapsedTitleContainerMarginEnd --> |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 22 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 23 | android:id="@+id/title_container" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 24 | android:layout_width="0dip" |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 25 | android:layout_height="wrap_content" |
Andrew Sapperstein | 65aaf09 | 2013-08-22 12:31:53 -0700 | [diff] [blame] | 26 | android:layout_weight="1" |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 27 | android:layout_marginTop="@dimen/message_header_text_margin_top" |
Andrew Sapperstein | ca4f947 | 2013-09-18 17:40:56 -0700 | [diff] [blame] | 28 | style="@style/MessageUpperHeaderTextStyle" > |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 29 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 30 | <TextView |
| 31 | android:id="@+id/upper_date" |
| 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 34 | android:layout_alignBaseline="@+id/sender_name" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 35 | android:visibility="gone" |
| 36 | android:lines="1" |
| 37 | style="@style/MessageHeaderUpperDateStyle" /> |
Jin Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 38 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 39 | <ImageView |
| 40 | android:id="@+id/attachment" |
| 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="wrap_content" |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 43 | android:layout_marginTop="6dp" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 44 | android:layout_toStartOf="@id/upper_date" |
| 45 | android:layout_toLeftOf="@id/upper_date" |
Andrew Sapperstein | 2640771 | 2014-07-01 16:11:03 -0700 | [diff] [blame] | 46 | android:src="@drawable/ic_attach_file_20dp" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 47 | style="@style/AttachmentIconStyle" /> |
Jin Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 48 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 49 | <TextView |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 50 | android:id="@id/sender_name" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 51 | 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 Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 56 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 57 | <TextView |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 58 | android:id="@+id/recipient_summary" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 59 | android:layout_width="wrap_content" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_below="@id/sender_name" |
Andrew Sapperstein | 1666f0d | 2014-09-10 14:04:42 -0700 | [diff] [blame] | 62 | android:ellipsize="end" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 63 | style="@style/MessageHeaderSubtitleStyle" /> |
Jin Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 64 | |
Andrew Sapperstein | 35c3bb7 | 2013-07-11 11:28:16 -0700 | [diff] [blame] | 65 | <TextView |
| 66 | android:id="@+id/send_date" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 67 | android:layout_width="wrap_content" |
Andrew Sapperstein | 35c3bb7 | 2013-07-11 11:28:16 -0700 | [diff] [blame] | 68 | android:layout_height="wrap_content" |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 69 | 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 Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 73 | |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 74 | <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 Sapperstein | 35c3bb7 | 2013-07-11 11:28:16 -0700 | [diff] [blame] | 84 | style="@style/MessageHeaderSubtitleStyle" /> |
Jin Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 85 | |
Andrew Sapperstein | 35c3bb7 | 2013-07-11 11:28:16 -0700 | [diff] [blame] | 86 | <TextView |
| 87 | android:id="@+id/email_snippet" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 88 | android:layout_width="wrap_content" |
Andrew Sapperstein | 35c3bb7 | 2013-07-11 11:28:16 -0700 | [diff] [blame] | 89 | android:layout_height="wrap_content" |
Andrew Sapperstein | 58aea28 | 2014-07-02 11:44:36 -0700 | [diff] [blame] | 90 | android:layout_marginBottom="16dp" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 91 | android:layout_below="@id/sender_name" |
Andrew Sapperstein | 35c3bb7 | 2013-07-11 11:28:16 -0700 | [diff] [blame] | 92 | style="@style/MessageHeaderSnippetStyle" /> |
Jin Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 93 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 94 | </RelativeLayout> |