blob: 113acf3d0b050d68d875d5f4cb9f0f0ae9d4f908 [file] [log] [blame]
Mindy Pereira6f92de62011-12-19 11:31:48 -08001<?xml version="1.0" encoding="utf-8"?>
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -08002<!--
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-->
Mindy Pereira6f92de62011-12-19 11:31:48 -080018
19<!-- This layout is used as a template to create custom view CanvasConversationHeaderView
20 in wide mode. To be able to get the correct measurements, every source field should
21 be populated with data here. E.g:
22 - Text View should set text to a random long string (android:text="@string/long_string")
23 - Image View should set source to a specific asset -->
24<LinearLayout
25 xmlns:android="http://schemas.android.com/apk/res/android"
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:minHeight="64sp"
29 android:orientation="horizontal">
30 <ImageView
31 android:id="@+id/checkmark"
32 android:layout_width="wrap_content"
33 android:layout_height="wrap_content"
34 android:layout_marginLeft="16dip"
35 android:layout_marginRight="16dip"
36 android:layout_gravity="center_vertical"
37 android:src="@drawable/btn_check_on_normal_holo_light" />
38 <TextView
39 android:id="@+id/senders"
40 android:layout_width="224dip"
41 android:layout_height="wrap_content"
42 android:text="@string/long_string"
43 android:textSize="@dimen/wide_senders_font_size"
44 android:layout_gravity="center_vertical"
45 android:maxLines="2"
46 android:layout_marginTop="@dimen/wide_senders_margin_top" />
47 <ImageView
48 android:id="@+id/personal_level"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_marginLeft="16dip"
52 android:layout_marginRight="16dip"
53 android:layout_gravity="center_vertical"
54 android:src="@drawable/ic_email_caret_single" />
55 <TextView
56 android:id="@+id/subject"
57 android:layout_width="0dip"
58 android:layout_weight="0.7"
59 android:layout_height="wrap_content"
60 android:layout_gravity="center_vertical"
61 android:text="@string/long_string"
62 android:lines="2"
63 android:textColor="@color/subject_text_color_unread"
64 android:textSize="@dimen/wide_subject_font_size"
65 android:layout_marginTop="2sp"
66 android:layout_marginRight="@dimen/wide_subject_margin_right"/>
67 <LinearLayout
68 android:layout_width="wrap_content"
69 android:layout_height="match_parent"
70 android:orientation="vertical">
Mindy Pereira6f92de62011-12-19 11:31:48 -080071 <LinearLayout
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:orientation="horizontal"
75 android:layout_gravity="center_vertical">
76 <ImageView
77 android:id="@+id/paperclip"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:src="@drawable/ic_attachment_holo_light"
81 android:layout_gravity="center_vertical"
82 android:layout_marginTop="@dimen/wide_attachment_margin_top"/>
83 <TextView
84 android:id="@+id/date"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:layout_gravity="center_vertical"
88 android:text="@string/date"
89 android:layout_marginTop="@dimen/wide_date_margin_top" />
90 </LinearLayout>
91 </LinearLayout>
92 <ImageView
93 android:id="@+id/star"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:layout_marginLeft="16dip"
97 android:layout_marginRight="16dip"
98 android:layout_gravity="center_vertical"
99 android:src="@drawable/btn_star_off_normal_email_holo_light" />
100</LinearLayout>