2010-11-15 20:12:09 +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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- xlarge -->
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
>
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="@dimen/message_compose_paper_width"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:paddingTop="16dip"
|
|
|
|
android:paddingBottom="16dip"
|
|
|
|
android:paddingLeft="32dip"
|
|
|
|
android:paddingRight="32dip"
|
2010-11-15 20:12:09 +00:00
|
|
|
android:background="#ffffffff"
|
|
|
|
>
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
>
|
2011-01-05 21:21:18 +00:00
|
|
|
<!-- headers + buttons -->
|
2010-11-15 20:12:09 +00:00
|
|
|
<LinearLayout
|
2011-01-05 21:21:18 +00:00
|
|
|
android:orientation="horizontal"
|
2010-11-15 20:12:09 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
>
|
2011-01-05 21:21:18 +00:00
|
|
|
<!-- headers: from/to/cc/bcc/subject -->
|
2010-11-15 20:12:09 +00:00
|
|
|
<LinearLayout
|
2011-01-05 21:21:18 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2010-11-15 20:12:09 +00:00
|
|
|
>
|
2011-01-05 21:21:18 +00:00
|
|
|
<!-- from: -->
|
|
|
|
<LinearLayout
|
|
|
|
style="@style/message_compose_header_field_container_no_tray"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
style="@style/message_compose_header_field_label"
|
|
|
|
android:text="@string/message_compose_from_label"
|
|
|
|
/>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/from"
|
|
|
|
style="@style/message_compose_header_field_value"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2010-11-15 20:12:09 +00:00
|
|
|
|
2011-01-05 21:21:18 +00:00
|
|
|
<!-- to: -->
|
|
|
|
<LinearLayout
|
|
|
|
style="@style/message_compose_header_field_container"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
style="@style/message_compose_header_field_label"
|
|
|
|
android:text="@string/message_compose_to_label"
|
|
|
|
/>
|
|
|
|
<com.android.email.activity.AddressTextView
|
|
|
|
android:id="@+id/to"
|
|
|
|
style="@style/message_compose_header_field_value"
|
|
|
|
android:inputType="textEmailAddress"
|
|
|
|
android:imeOptions="actionNext"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cc_bcc_container"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
>
|
|
|
|
<!-- cc: -->
|
|
|
|
<LinearLayout
|
|
|
|
style="@style/message_compose_header_field_container"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
style="@style/message_compose_header_field_label"
|
|
|
|
android:text="@string/message_compose_cc_label"
|
|
|
|
/>
|
|
|
|
<com.android.email.activity.AddressTextView
|
|
|
|
android:id="@+id/cc"
|
|
|
|
style="@style/message_compose_header_field_value"
|
|
|
|
android:inputType="textEmailAddress"
|
|
|
|
android:imeOptions="actionNext"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- bcc: -->
|
|
|
|
<LinearLayout
|
|
|
|
style="@style/message_compose_header_field_container"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
style="@style/message_compose_header_field_label"
|
|
|
|
android:text="@string/message_compose_bcc_label"
|
|
|
|
/>
|
|
|
|
<com.android.email.activity.AddressTextView
|
|
|
|
android:id="@+id/bcc"
|
|
|
|
style="@style/message_compose_header_field_value"
|
|
|
|
android:inputType="textEmailAddress"
|
|
|
|
android:imeOptions="actionNext"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- subject -->
|
|
|
|
<LinearLayout
|
|
|
|
style="@style/message_compose_header_field_container"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
style="@style/message_compose_header_field_label"
|
|
|
|
android:text="@string/message_compose_subject_label"
|
|
|
|
/>
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/subject"
|
|
|
|
style="@style/message_compose_header_field_value"
|
|
|
|
android:inputType
|
|
|
|
="textEmailSubject|textAutoCorrect|textCapSentences|textImeMultiLine"
|
|
|
|
android:imeOptions="actionNext"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> <!-- end of header -->
|
|
|
|
|
|
|
|
<!-- Buttons: +cc/bcc, add attachment -->
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="@dimen/message_compose_header_button_area_width"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:paddingLeft="16dip"
|
|
|
|
android:layout_gravity="bottom"
|
2010-11-15 20:12:09 +00:00
|
|
|
>
|
2011-01-05 21:21:18 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/add_cc_bcc"
|
|
|
|
android:layout_height="48dip"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_marginTop="48dip"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
|
|
android:paddingTop="0dip"
|
|
|
|
android:paddingBottom="0dip"
|
|
|
|
android:paddingLeft="0dip"
|
|
|
|
android:paddingRight="0dip"
|
|
|
|
android:textSize="18dip"
|
|
|
|
android:textColor="@color/text_primary_color"
|
|
|
|
android:text="@string/add_cc_bcc_action"
|
|
|
|
android:gravity="left|center_vertical"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
2011-01-05 21:21:18 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/add_attachment"
|
|
|
|
android:layout_height="48dip"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
style="@android:style/Widget.Holo.Button.Borderless"
|
|
|
|
android:paddingTop="0dip"
|
|
|
|
android:paddingBottom="0dip"
|
|
|
|
android:paddingLeft="0dip"
|
|
|
|
android:paddingRight="0dip"
|
|
|
|
android:gravity="left|center_vertical"
|
|
|
|
android:src="@drawable/ic_add_attachment_holo_light"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
2011-01-05 21:21:18 +00:00
|
|
|
</RelativeLayout> <!-- end of buttons -->
|
|
|
|
</LinearLayout> <!-- end of headers+buttons -->
|
2010-11-15 20:12:09 +00:00
|
|
|
|
2011-01-05 21:21:18 +00:00
|
|
|
<LinearLayout android:id="@+id/attachment_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dip"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
2010-11-15 20:12:09 +00:00
|
|
|
>
|
2011-01-05 21:21:18 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_marginRight="@dimen/message_compose_header_button_area_width"
|
2011-01-10 19:51:47 +00:00
|
|
|
style="@style/message_compose_horizontal_divider"
|
2011-01-05 21:21:18 +00:00
|
|
|
/>
|
|
|
|
<!--
|
|
|
|
Empty container for storing attachments. We'll stick
|
|
|
|
instances of message_compose_attachment.xml in here.
|
|
|
|
-->
|
|
|
|
<LinearLayout android:id="@+id/attachments"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="112dip"
|
|
|
|
android:orientation="vertical"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
2011-01-05 21:21:18 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_marginRight="@dimen/message_compose_header_button_area_width"
|
2011-01-10 19:51:47 +00:00
|
|
|
style="@style/message_compose_horizontal_divider"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- message body -->
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/message_content"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="32dip"
|
|
|
|
android:layout_marginBottom="32dip"
|
|
|
|
android:layout_marginLeft="16dip"
|
|
|
|
android:layout_marginRight="16dip"
|
2010-11-15 20:12:09 +00:00
|
|
|
android:gravity="left|top"
|
|
|
|
android:minLines="3"
|
|
|
|
android:hint="@string/message_compose_body_hint"
|
|
|
|
android:inputType="textLongMessage|textMultiLine|textAutoCorrect|textCapSentences"
|
|
|
|
android:imeOptions="actionDone|flagNoEnterAction"
|
2011-01-05 21:21:18 +00:00
|
|
|
style="@style/PlainEditText"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- quoted text bar -->
|
2010-11-23 01:32:43 +00:00
|
|
|
<LinearLayout
|
2010-11-15 20:12:09 +00:00
|
|
|
android:id="@+id/quoted_text_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2010-11-23 01:32:43 +00:00
|
|
|
android:orientation="vertical"
|
2010-11-15 20:12:09 +00:00
|
|
|
>
|
|
|
|
<View
|
2010-11-23 01:32:43 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-01-10 19:51:47 +00:00
|
|
|
style="@style/message_compose_horizontal_divider"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
2010-11-23 01:32:43 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_height="46dip"
|
2010-11-23 01:32:43 +00:00
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_height="match_parent"
|
2010-11-23 01:32:43 +00:00
|
|
|
android:layout_weight="0"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_marginLeft="16dip"
|
|
|
|
android:gravity="left|center_vertical"
|
|
|
|
android:textSize="18dip"
|
|
|
|
android:textColor="@color/text_secondary_color"
|
2010-11-23 01:32:43 +00:00
|
|
|
android:text="@string/message_compose_quoted_text_label"
|
|
|
|
/>
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_height="match_parent"
|
2010-11-23 01:32:43 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="right|center_vertical"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:textSize="18dip"
|
|
|
|
android:textColor="@color/text_primary_color"
|
2010-11-23 01:32:43 +00:00
|
|
|
android:text="@string/message_compose_include_quoted_text_checkbox_label"
|
|
|
|
/>
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/include_quoted_text"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_width="48dip"
|
|
|
|
android:layout_height="match_parent"
|
2010-11-23 01:32:43 +00:00
|
|
|
android:layout_weight="0"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:gravity="center"
|
2010-11-23 01:32:43 +00:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2010-11-15 20:12:09 +00:00
|
|
|
<View
|
2010-11-23 01:32:43 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-01-10 19:51:47 +00:00
|
|
|
style="@style/message_compose_horizontal_divider"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
2010-11-23 01:32:43 +00:00
|
|
|
</LinearLayout>
|
2010-11-15 20:12:09 +00:00
|
|
|
<!--
|
|
|
|
Quoted text
|
|
|
|
TODO: Don't put a webview in a scroll view.
|
|
|
|
-->
|
|
|
|
<WebView android:id="@+id/quoted_text"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
2011-01-05 21:21:18 +00:00
|
|
|
android:layout_marginTop="16dip"
|
2010-11-15 20:12:09 +00:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|