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 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
Andrew Sapperstein | c5499cd | 2013-07-03 18:11:55 -0700 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
Jin Cao | a740458 | 2014-08-05 14:03:59 -0700 | [diff] [blame] | 21 | android:background="?android:attr/selectableItemBackground" |
| 22 | android:focusable="true"> |
Mark Wei | 1dc5753 | 2012-09-13 14:56:50 -0700 | [diff] [blame] | 23 | |
Andrew Sapperstein | ab3837c | 2014-03-29 13:33:04 -0700 | [diff] [blame] | 24 | <com.android.mail.browse.MessageHeaderContactBadge |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 25 | android:id="@+id/photo" |
James Lemieux | 928308d | 2014-07-01 18:01:31 -0700 | [diff] [blame] | 26 | android:layout_width="@dimen/contact_image_width" |
| 27 | android:layout_height="@dimen/contact_image_height" |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 28 | android:layout_marginTop="@dimen/message_header_icon_margin" |
| 29 | android:layout_marginBottom="@dimen/message_header_icon_margin" |
Andrew Sapperstein | de40dd3 | 2014-06-30 21:12:16 -0700 | [diff] [blame] | 30 | android:background="?android:attr/selectableItemBackground" |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 31 | android:scaleType="centerCrop" |
Andrew Sapperstein | ca4f947 | 2013-09-18 17:40:56 -0700 | [diff] [blame] | 32 | android:contentDescription="@string/contact_info_string" |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 33 | style="@style/MessageHeaderIconStyle" /> |
| 34 | |
Andrew Sapperstein | 58aea28 | 2014-07-02 11:44:36 -0700 | [diff] [blame] | 35 | <!-- invisible view so that the quick contact will expand from the image --> |
| 36 | <QuickContactBadge |
| 37 | android:id="@+id/invisible_quick_contact" |
| 38 | android:layout_width="0dp" |
| 39 | android:layout_height="0dp" |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 40 | android:layout_marginTop="@dimen/message_header_icon_margin" |
| 41 | android:layout_marginBottom="@dimen/message_header_icon_margin" |
Andrew Sapperstein | 58aea28 | 2014-07-02 11:44:36 -0700 | [diff] [blame] | 42 | android:visibility="invisible" /> |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 43 | |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 44 | <!-- draft should match photo in dimensions --> |
| 45 | <ImageView |
| 46 | android:id="@+id/draft" |
James Lemieux | 928308d | 2014-07-01 18:01:31 -0700 | [diff] [blame] | 47 | android:layout_width="@dimen/contact_image_width" |
| 48 | android:layout_height="@dimen/contact_image_height" |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 49 | android:layout_marginTop="@dimen/message_header_icon_margin" |
| 50 | android:layout_marginBottom="@dimen/message_header_icon_margin" |
Andrew Sapperstein | 735a22a | 2014-07-11 03:57:42 -0700 | [diff] [blame] | 51 | android:background="@drawable/draft_background_circle" |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 52 | android:scaleType="center" |
Andrew Sapperstein | 735a22a | 2014-07-11 03:57:42 -0700 | [diff] [blame] | 53 | android:src="@drawable/ic_drafts_wht_24dp" |
| 54 | android:visibility="gone" |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 55 | style="@style/MessageHeaderIconStyle" /> |
| 56 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 57 | <include layout="@layout/conversation_message_upper_header_text" /> |
Andrew Sapperstein | 7dc32fd | 2014-08-04 18:06:53 -0700 | [diff] [blame] | 58 | |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 59 | <include layout="@layout/conversation_message_upper_header_actions" /> |
Mark Wei | 1dc5753 | 2012-09-13 14:56:50 -0700 | [diff] [blame] | 60 | |
Mindy Pereira | 326c660 | 2012-01-04 15:32:42 -0800 | [diff] [blame] | 61 | </LinearLayout> |