• 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:addStatesFromChildren="true"
22    android:background="?android:attr/selectableItemBackground"
23    android:focusable="true">
24
25    <com.android.mail.browse.MessageHeaderContactBadge
26        android:id="@+id/photo"
27        android:layout_width="@dimen/contact_image_width"
28        android:layout_height="@dimen/contact_image_height"
29        android:layout_marginTop="@dimen/message_header_icon_margin"
30        android:layout_marginBottom="@dimen/message_header_icon_margin"
31        android:background="?android:attr/selectableItemBackground"
32        android:scaleType="centerCrop"
33        android:contentDescription="@string/contact_info_string"
34        style="@style/MessageHeaderIconStyle" />
35
36    <!-- invisible view so that the quick contact will expand from the image -->
37    <QuickContactBadge
38        android:id="@+id/invisible_quick_contact"
39        android:layout_width="0dp"
40        android:layout_height="0dp"
41        android:layout_marginTop="@dimen/message_header_icon_margin"
42        android:layout_marginBottom="@dimen/message_header_icon_margin"
43        android:visibility="invisible" />
44
45    <!-- draft should match photo in dimensions -->
46    <ImageView
47        android:id="@+id/draft"
48        android:layout_width="@dimen/contact_image_width"
49        android:layout_height="@dimen/contact_image_height"
50        android:layout_marginTop="@dimen/message_header_icon_margin"
51        android:layout_marginBottom="@dimen/message_header_icon_margin"
52        android:background="@drawable/draft_background_circle"
53        android:scaleType="center"
54        android:src="@drawable/ic_drafts_wht_24dp"
55        android:visibility="gone"
56        style="@style/MessageHeaderIconStyle" />
57
58    <include layout="@layout/conversation_message_upper_header_text" />
59
60    <include layout="@layout/conversation_message_upper_header_actions" />
61
62</LinearLayout>
63