2010-11-17 01:28:59 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2010 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.
|
|
|
|
-->
|
|
|
|
|
2011-05-25 19:08:09 +00:00
|
|
|
<!-- tablet -->
|
2011-04-06 00:02:13 +00:00
|
|
|
<FrameLayout
|
2010-11-17 01:28:59 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2011-08-09 23:11:20 +00:00
|
|
|
android:background="@android:color/white"
|
2010-11-17 01:28:59 +00:00
|
|
|
>
|
2011-04-06 00:02:13 +00:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/loading_progress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
style="?android:attr/progressBarStyleLarge"
|
|
|
|
/>
|
2011-08-31 21:03:29 +00:00
|
|
|
<com.android.email.view.NonLockingScrollView
|
2011-04-06 00:02:13 +00:00
|
|
|
android:id="@+id/main_panel"
|
2010-12-07 19:02:24 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:layout_height="match_parent"
|
2010-11-17 01:28:59 +00:00
|
|
|
>
|
2011-08-17 21:39:18 +00:00
|
|
|
<LinearLayout
|
2011-08-09 23:11:20 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:layout_height="wrap_content"
|
2011-08-17 21:39:18 +00:00
|
|
|
android:paddingLeft="16dip"
|
|
|
|
android:paddingRight="16dip"
|
|
|
|
android:orientation="vertical"
|
2011-04-06 00:02:13 +00:00
|
|
|
>
|
|
|
|
|
2011-08-17 21:39:18 +00:00
|
|
|
<!-- Subject -->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/subject"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dip"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
style="@style/message_view_subject"
|
|
|
|
/>
|
2011-04-06 00:02:13 +00:00
|
|
|
|
2011-08-17 21:39:18 +00:00
|
|
|
<View
|
|
|
|
android:id="@+id/subject_divider"
|
|
|
|
android:layout_marginBottom="16dip"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
style="@style/message_view_horizontal_divider"
|
|
|
|
/>
|
2011-04-06 00:02:13 +00:00
|
|
|
|
2011-08-17 21:39:18 +00:00
|
|
|
<!-- Upper header. Outer container needed only since the relative layout
|
|
|
|
params can't be passed in an include tag.-->
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/message_view_header_upper"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
>
|
|
|
|
<include layout="@layout/message_view_header_upper" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<!-- Addresses, timestamp -->
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/message_view_subheader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="16dip"
|
|
|
|
android:layout_marginRight="16dip"
|
|
|
|
>
|
|
|
|
<include layout="@layout/message_view_subheader" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/address_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
style="@style/message_view_horizontal_divider"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- The rest: tab + body + command buttons. -->
|
2011-04-06 00:02:13 +00:00
|
|
|
<!-- Tabs + divider -->
|
2011-01-10 21:35:47 +00:00
|
|
|
<LinearLayout
|
2011-04-06 00:02:13 +00:00
|
|
|
android:id="@+id/message_tabs_section"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2011-01-10 21:35:47 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:layout_height="40dip"
|
|
|
|
android:layout_marginLeft="14dip"
|
2011-01-10 21:35:47 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
>
|
2011-04-06 00:02:13 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/show_message"
|
|
|
|
android:layout_width="128dip"
|
|
|
|
android:layout_height="match_parent"
|
2011-06-22 21:55:15 +00:00
|
|
|
android:gravity="center"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:text="@string/message_view_show_message_action"
|
|
|
|
android:textSize="14dip"
|
|
|
|
android:textColor="@color/text_primary_color"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end"
|
|
|
|
style="@android:style/Widget.Holo.Light.Tab"
|
2011-01-10 21:35:47 +00:00
|
|
|
/>
|
2011-04-06 00:02:13 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/show_invite"
|
|
|
|
android:layout_width="128dip"
|
|
|
|
android:layout_height="match_parent"
|
2011-06-22 21:55:15 +00:00
|
|
|
android:gravity="center"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:text="@string/message_view_show_invite_action"
|
|
|
|
android:textSize="14dip"
|
2011-01-10 21:35:47 +00:00
|
|
|
android:textColor="@color/text_primary_color"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end"
|
2011-04-06 00:02:13 +00:00
|
|
|
style="@android:style/Widget.Holo.Light.Tab"
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/show_attachments"
|
|
|
|
android:layout_width="128dip"
|
|
|
|
android:layout_height="match_parent"
|
2011-06-22 21:55:15 +00:00
|
|
|
android:gravity="center"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:textSize="14dip"
|
|
|
|
android:textColor="@color/text_primary_color"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end"
|
|
|
|
style="@android:style/Widget.Holo.Light.Tab"
|
|
|
|
/>
|
|
|
|
<!-- filler -->
|
|
|
|
<View
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="0dip"
|
|
|
|
android:layout_weight="1"
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/show_pictures"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2011-06-22 21:55:15 +00:00
|
|
|
android:gravity="center"
|
2011-09-26 22:47:09 +00:00
|
|
|
style="?android:attr/borderlessButtonStyle"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:padding="0dip"
|
|
|
|
android:text="@string/message_view_show_pictures_action"
|
|
|
|
android:textSize="14dip"
|
|
|
|
android:textColor="@color/text_ternary_color"
|
|
|
|
android:drawableRight="@drawable/ic_show_images_holo_light"
|
|
|
|
android:drawablePadding="8dip"
|
|
|
|
/>
|
2011-09-26 22:47:09 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/always_show_pictures_button"
|
2011-06-13 17:14:58 +00:00
|
|
|
android:layout_width="wrap_content"
|
2011-09-26 22:47:09 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
android:padding="0dip"
|
|
|
|
android:text="@string/message_view_always_show_pictures_prompt"
|
|
|
|
android:textSize="14dip"
|
|
|
|
android:textColor="@color/text_ternary_color"
|
|
|
|
android:drawableRight="@drawable/ic_show_images_holo_light"
|
|
|
|
android:drawablePadding="8dip"
|
2011-06-13 17:14:58 +00:00
|
|
|
android:visibility="gone"
|
2011-09-26 22:47:09 +00:00
|
|
|
/>
|
2011-04-06 00:02:13 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="16dip"
|
|
|
|
android:layout_height="0dip"
|
2011-01-10 21:35:47 +00:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2011-04-06 00:02:13 +00:00
|
|
|
<View
|
2011-01-10 21:35:47 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-04-06 00:02:13 +00:00
|
|
|
style="@style/message_view_horizontal_divider"
|
2011-01-10 21:35:47 +00:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2011-04-06 00:02:13 +00:00
|
|
|
<!-- margin -->
|
|
|
|
<View
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="16dip"
|
2010-12-07 19:02:24 +00:00
|
|
|
/>
|
2010-11-17 01:28:59 +00:00
|
|
|
|
2011-04-06 00:02:13 +00:00
|
|
|
<!-- content area - only one of them is visible at a time -->
|
|
|
|
<!-- Message body -->
|
2011-08-17 21:39:18 +00:00
|
|
|
<com.android.email.view.RigidWebView
|
2011-04-06 00:02:13 +00:00
|
|
|
android:id="@+id/message_content"
|
|
|
|
android:layout_width="match_parent"
|
2011-08-17 21:39:18 +00:00
|
|
|
android:layout_height="wrap_content"
|
2011-08-11 23:45:49 +00:00
|
|
|
android:background="@android:color/white"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:visibility="gone"
|
2010-12-07 19:02:24 +00:00
|
|
|
/>
|
2010-11-17 01:28:59 +00:00
|
|
|
|
2011-08-17 21:39:18 +00:00
|
|
|
<!-- TODO: get rid of these useless _scroll elements now that
|
|
|
|
they're no longer needed -->
|
2011-04-06 00:02:13 +00:00
|
|
|
<!-- Invite: Even though this section is only for MessageViewFragment,
|
|
|
|
Its visibility is controlled by MessageViewFragmentBase for simplicity.
|
|
|
|
MessageFileViewFragment shouldn't touch this. -->
|
2011-08-17 21:39:18 +00:00
|
|
|
<FrameLayout
|
2011-04-06 00:02:13 +00:00
|
|
|
android:id="@+id/invite_scroll"
|
|
|
|
android:layout_width="match_parent"
|
2011-08-17 21:39:18 +00:00
|
|
|
android:layout_height="wrap_content"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
>
|
|
|
|
<include layout="@layout/message_view_invitation" />
|
2011-08-17 21:39:18 +00:00
|
|
|
</FrameLayout>
|
2010-11-17 01:28:59 +00:00
|
|
|
|
2011-04-06 00:02:13 +00:00
|
|
|
<!-- Attachments -->
|
2011-08-17 21:39:18 +00:00
|
|
|
<FrameLayout
|
2011-04-06 00:02:13 +00:00
|
|
|
android:id="@+id/attachments_scroll"
|
|
|
|
android:layout_width="match_parent"
|
2011-08-17 21:39:18 +00:00
|
|
|
android:layout_height="wrap_content"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:visibility="gone"
|
2010-12-07 19:02:24 +00:00
|
|
|
>
|
|
|
|
<LinearLayout
|
2011-04-06 00:02:13 +00:00
|
|
|
android:id="@+id/attachments"
|
2011-01-10 21:35:47 +00:00
|
|
|
android:orientation="vertical"
|
2010-12-07 19:02:24 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-04-06 00:02:13 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:divider="?android:attr/dividerHorizontal"
|
|
|
|
android:showDividers="beginning|middle|end"
|
2010-12-07 19:02:24 +00:00
|
|
|
/>
|
2011-08-17 21:39:18 +00:00
|
|
|
</FrameLayout>
|
2011-04-06 00:02:13 +00:00
|
|
|
</LinearLayout>
|
2011-08-31 21:03:29 +00:00
|
|
|
</com.android.email.view.NonLockingScrollView>
|
2011-04-06 00:02:13 +00:00
|
|
|
</FrameLayout>
|