blob: 8eca29e221db5cc35908d892108bd2cde88b2591 [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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
Andrew Sappersteinc5499cd2013-07-03 18:11:55 -070020 android:layout_height="wrap_content"
Jin Caoa7404582014-08-05 14:03:59 -070021 android:background="?android:attr/selectableItemBackground"
22 android:focusable="true">
Mark Wei1dc57532012-09-13 14:56:50 -070023
Andrew Sappersteinab3837c2014-03-29 13:33:04 -070024 <com.android.mail.browse.MessageHeaderContactBadge
Mindy Pereira326c6602012-01-04 15:32:42 -080025 android:id="@+id/photo"
James Lemieux928308d2014-07-01 18:01:31 -070026 android:layout_width="@dimen/contact_image_width"
27 android:layout_height="@dimen/contact_image_height"
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070028 android:layout_marginTop="@dimen/message_header_icon_margin"
29 android:layout_marginBottom="@dimen/message_header_icon_margin"
Andrew Sappersteinde40dd32014-06-30 21:12:16 -070030 android:background="?android:attr/selectableItemBackground"
Mindy Pereira326c6602012-01-04 15:32:42 -080031 android:scaleType="centerCrop"
Andrew Sappersteinca4f9472013-09-18 17:40:56 -070032 android:contentDescription="@string/contact_info_string"
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070033 style="@style/MessageHeaderIconStyle" />
34
Andrew Sapperstein58aea282014-07-02 11:44:36 -070035 <!-- 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 Sapperstein7dc32fd2014-08-04 18:06:53 -070040 android:layout_marginTop="@dimen/message_header_icon_margin"
41 android:layout_marginBottom="@dimen/message_header_icon_margin"
Andrew Sapperstein58aea282014-07-02 11:44:36 -070042 android:visibility="invisible" />
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070043
Mindy Pereira326c6602012-01-04 15:32:42 -080044 <!-- draft should match photo in dimensions -->
45 <ImageView
46 android:id="@+id/draft"
James Lemieux928308d2014-07-01 18:01:31 -070047 android:layout_width="@dimen/contact_image_width"
48 android:layout_height="@dimen/contact_image_height"
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070049 android:layout_marginTop="@dimen/message_header_icon_margin"
50 android:layout_marginBottom="@dimen/message_header_icon_margin"
Andrew Sapperstein735a22a2014-07-11 03:57:42 -070051 android:background="@drawable/draft_background_circle"
Mindy Pereira326c6602012-01-04 15:32:42 -080052 android:scaleType="center"
Andrew Sapperstein735a22a2014-07-11 03:57:42 -070053 android:src="@drawable/ic_drafts_wht_24dp"
54 android:visibility="gone"
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070055 style="@style/MessageHeaderIconStyle" />
56
Andrew Sappersteina839fd02014-04-22 14:33:55 -070057 <include layout="@layout/conversation_message_upper_header_text" />
Andrew Sapperstein7dc32fd2014-08-04 18:06:53 -070058
Andrew Sappersteina839fd02014-04-22 14:33:55 -070059 <include layout="@layout/conversation_message_upper_header_actions" />
Mark Wei1dc57532012-09-13 14:56:50 -070060
Mindy Pereira326c6602012-01-04 15:32:42 -080061</LinearLayout>