• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<merge xmlns:android="http://schemas.android.com/apk/res/android">
18    <!-- header area -->
19    <LinearLayout
20        android:layout_width="fill_parent"
21        android:layout_height="wrap_content"
22        android:orientation="vertical"
23        android:background="@drawable/ic_email_thread_open_top_default">
24        <LinearLayout
25            android:id="@+id/from_container"
26            android:layout_width="fill_parent"
27            android:layout_height="wrap_content"
28            android:baselineAligned="true" >
29            <ImageView
30                android:id="@+id/presence"
31                android:src="@drawable/presence_inactive"
32                android:layout_width="wrap_content"
33                android:layout_height="wrap_content"
34                android:layout_marginRight="5dip"
35                android:baselineAlignBottom="true"
36                android:background="@drawable/quickcontact_presence_bg" />
37            <TextView
38                android:id="@+id/from"
39                android:textAppearance="?android:attr/textAppearanceMedium"
40                android:textStyle="bold"
41                android:textColor="?android:attr/textColorPrimaryInverse"
42                android:layout_width="0dip"
43                android:layout_weight="1.0"
44                android:layout_height="wrap_content"
45                android:layout_alignParentLeft="true"
46                android:singleLine="true"
47                android:ellipsize="end"
48                android:paddingRight="6dip" />
49            <ImageView
50                android:id="@+id/attachment"
51                android:src="@drawable/ic_email_attachment_small"
52                android:layout_width="22dip"
53                android:layout_height="22dip"
54                android:baselineAlignBottom="true" />
55            <TextView
56                android:id="@+id/date"
57                android:textAppearance="?android:attr/textAppearanceSmall"
58                android:textColor="?android:attr/textColorPrimaryInverse"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content"
61                android:layout_marginLeft="4dip"
62                android:singleLine="true" />
63        </LinearLayout>
64        <LinearLayout
65            android:id="@+id/to_container"
66            android:layout_width="fill_parent"
67            android:layout_height="wrap_content" >
68            <TextView
69                android:textAppearance="?android:attr/textAppearanceSmall"
70                android:textColor="?android:attr/textColorSecondaryInverse"
71                android:textStyle="bold"
72                android:layout_width="wrap_content"
73                android:layout_height="wrap_content"
74                android:text="@string/message_view_to_label" />
75            <TextView
76                android:id="@+id/to"
77                android:textAppearance="?android:attr/textAppearanceSmall"
78                android:textColor="?android:attr/textColorSecondaryInverse"
79                android:layout_width="0dip"
80                android:layout_weight="1.0"
81                android:layout_height="wrap_content"
82                android:layout_marginLeft="4dip"
83                android:singleLine="false"
84                android:ellipsize="none" />
85            <TextView
86                android:id="@+id/time"
87                android:textAppearance="?android:attr/textAppearanceSmall"
88                android:textColor="?android:attr/textColorPrimaryInverse"
89                android:layout_width="wrap_content"
90                android:layout_height="wrap_content"
91                android:layout_marginLeft="4dip"
92                android:singleLine="true" />
93        </LinearLayout>
94        <LinearLayout
95            android:id="@+id/cc_container"
96            android:layout_width="fill_parent"
97            android:layout_height="wrap_content" >
98            <TextView
99                android:textAppearance="?android:attr/textAppearanceSmall"
100                android:textColor="?android:attr/textColorSecondaryInverse"
101                android:textStyle="bold"
102                android:layout_width="wrap_content"
103                android:layout_height="wrap_content"
104                android:text="@string/message_view_cc_label" />
105            <TextView
106                android:id="@+id/cc"
107                android:textAppearance="?android:attr/textAppearanceSmall"
108                android:textColor="?android:attr/textColorSecondaryInverse"
109                android:layout_width="0dip"
110                android:layout_weight="1.0"
111                android:layout_height="wrap_content"
112                android:layout_marginLeft="4dip"
113                android:singleLine="false"
114                android:ellipsize="none" />
115        </LinearLayout>
116        <LinearLayout
117            android:layout_width="fill_parent"
118            android:layout_height="wrap_content" >
119            <TextView
120                android:id="@+id/subject"
121                android:textAppearance="?android:attr/textAppearanceSmall"
122                android:textColor="?android:attr/textColorSecondaryInverse"
123                android:textStyle="bold"
124                android:layout_width="0dip"
125                android:layout_weight="1.0"
126                android:layout_height="wrap_content"
127                android:singleLine="false"
128                android:ellipsize="none" />
129            <!-- TODO: Move this to wherever it really belongs -->
130            <ImageView
131                android:id="@+id/favorite"
132                android:layout_width="wrap_content"
133                android:layout_height="wrap_content"
134                android:layout_alignParentRight="true"
135                android:src="@drawable/btn_star_big_buttonless_off" />
136                </LinearLayout>
137    </LinearLayout>
138    <LinearLayout
139        android:id="@+id/show_pictures_section"
140        android:layout_width="fill_parent"
141        android:layout_height="wrap_content"
142        android:background="#ffefefef"
143        android:layout_marginTop="6dip"
144        android:paddingLeft="6dip"
145        android:paddingRight="3dip"
146        android:paddingTop="4dip"
147        android:paddingBottom="4dip"
148        android:baselineAligned="false"
149        android:visibility="gone">
150        <TextView
151            android:textAppearance="?android:attr/textAppearanceSmall"
152            android:textColor="?android:attr/textColorSecondaryInverse"
153            android:text="@string/message_view_show_pictures_instructions"
154            android:layout_gravity="center"
155            android:layout_width="0dip"
156            android:layout_height="wrap_content"
157            android:layout_weight="1.0" />
158        <Button
159            android:id="@+id/show_pictures"
160            android:layout_width="wrap_content"
161            android:layout_height="wrap_content"
162            android:text="@string/message_view_show_pictures_action" />
163    </LinearLayout>
164    <!-- content area -->
165    <WebView
166        android:id="@+id/message_content"
167        android:layout_height="wrap_content"
168        android:layout_width="fill_parent"
169        android:background="#ffffff" />
170    <!-- attachments area -->
171    <LinearLayout
172        android:id="@+id/attachments"
173        android:orientation="vertical"
174        android:layout_width="fill_parent"
175        android:layout_height="wrap_content"
176        android:padding="4dip"
177        android:background="#ffffff">
178    </LinearLayout>
179</merge>
180