2009-03-04 03:32:22 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2008 The Android Open Source Project
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<!-- header area -->
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="@drawable/ic_email_thread_open_top_default">
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/from_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2009-03-13 20:04:24 +00:00
|
|
|
android:baselineAligned="true" >
|
2009-03-04 03:32:22 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/presence"
|
2009-03-13 20:04:24 +00:00
|
|
|
android:src="@drawable/presence_inactive"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
android:baselineAlignBottom="true"
|
|
|
|
android:background="@drawable/quickcontact_presence_bg" />
|
2009-03-04 03:32:22 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/from"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textColor="?android:attr/textColorPrimaryInverse"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="1.0"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:paddingRight="6dip" />
|
2009-03-04 03:32:22 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/attachment"
|
|
|
|
android:src="@drawable/ic_email_attachment_small"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_width="22dip"
|
|
|
|
android:layout_height="22dip"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:baselineAlignBottom="true" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/date"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorPrimaryInverse"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_marginLeft="4dip"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:singleLine="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/to_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondaryInverse"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/message_view_to_label" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/to"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondaryInverse"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="1.0"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_marginLeft="4dip"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:singleLine="false"
|
|
|
|
android:ellipsize="none" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/time"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorPrimaryInverse"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_marginLeft="4dip"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:singleLine="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cc_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondaryInverse"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/message_view_cc_label" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/cc"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondaryInverse"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="1.0"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_marginLeft="4dip"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:singleLine="false"
|
|
|
|
android:ellipsize="none" />
|
|
|
|
</LinearLayout>
|
2009-06-15 07:01:17 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="fill_parent"
|
2009-11-13 02:46:09 +00:00
|
|
|
android:layout_height="wrap_content" >
|
2009-06-15 07:01:17 +00:00
|
|
|
<TextView
|
2009-11-13 02:46:09 +00:00
|
|
|
android:id="@+id/subject"
|
2009-06-15 07:01:17 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondaryInverse"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_weight="1.0"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="false"
|
|
|
|
android:ellipsize="none" />
|
2009-11-13 02:46:09 +00:00
|
|
|
<!-- TODO: Move this to wherever it really belongs -->
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/favorite"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:src="@drawable/btn_star_big_buttonless_off" />
|
|
|
|
</LinearLayout>
|
2009-03-04 03:32:22 +00:00
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/show_pictures_section"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="#ffefefef"
|
|
|
|
android:layout_marginTop="6dip"
|
|
|
|
android:paddingLeft="6dip"
|
|
|
|
android:paddingRight="3dip"
|
|
|
|
android:paddingTop="4dip"
|
|
|
|
android:paddingBottom="4dip"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondaryInverse"
|
|
|
|
android:text="@string/message_view_show_pictures_instructions"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1.0" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/show_pictures"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/message_view_show_pictures_action" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- content area -->
|
|
|
|
<WebView
|
|
|
|
android:id="@+id/message_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:background="#ffffff" />
|
|
|
|
<!-- attachments area -->
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/attachments"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="4dip"
|
|
|
|
android:background="#ffffff">
|
|
|
|
</LinearLayout>
|
|
|
|
</merge>
|