• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
20    android:layout_height="wrap_content"
21    android:background="?android:attr/selectableItemBackground"
22    android:focusable="true">
23
24    <com.android.mail.browse.MessageHeaderContactBadge
25        android:id="@+id/photo"
26        android:layout_width="@dimen/contact_image_width"
27        android:layout_height="@dimen/contact_image_height"
28        android:layout_marginTop="@dimen/message_header_icon_margin"
29        android:layout_marginBottom="@dimen/message_header_icon_margin"
30        android:background="?android:attr/selectableItemBackground"
31        android:scaleType="centerCrop"
32        android:contentDescription="@string/contact_info_string"
33        style="@style/MessageHeaderIconStyle" />
34
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"
40        android:layout_marginTop="@dimen/message_header_icon_margin"
41        android:layout_marginBottom="@dimen/message_header_icon_margin"
42        android:visibility="invisible" />
43
44    <!-- draft should match photo in dimensions -->
45    <ImageView
46        android:id="@+id/draft"
47        android:layout_width="@dimen/contact_image_width"
48        android:layout_height="@dimen/contact_image_height"
49        android:layout_marginTop="@dimen/message_header_icon_margin"
50        android:layout_marginBottom="@dimen/message_header_icon_margin"
51        android:background="@drawable/draft_background_circle"
52        android:scaleType="center"
53        android:src="@drawable/ic_drafts_wht_24dp"
54        android:visibility="gone"
55        style="@style/MessageHeaderIconStyle" />
56
57    <include layout="@layout/conversation_message_upper_header_text" />
58
59    <include layout="@layout/conversation_message_upper_header_actions" />
60
61</LinearLayout>
62