blob: 70740f99da363c3799514f99f279d0f73488d63f [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 Google Inc.
Licensed to 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.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal|top"
android:fillViewport="true"
android:paddingLeft="@dimen/compose_wrapper_side_padding"
android:paddingRight="@dimen/compose_wrapper_side_padding">
<!-- Horizontal layout to get side paddings for tablets -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="@dimen/compose_wrapper_top_padding">
<!-- Start border -->
<Space
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="@integer/compose_padding_weight" />
<LinearLayout
android:orientation="vertical"
android:paddingLeft="@dimen/vacation_responder_padding_horizontal"
android:paddingRight="@dimen/vacation_responder_padding_horizontal"
style="@style/ComposeArea">
<Switch
android:id="@+id/vacation_responder_switch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:minHeight="56dp"
android:text="@string/preferences_vacation_responder_title"
android:textColor="@color/vacation_responder_main_text_color"
android:textSize="@dimen/vacation_responder_main_text_size" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp">
<!-- Start date -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
style="@style/VacationResponderDatePadding">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/pick_start_date_title"
android:textColor="@color/vacation_responder_header_text_color"
android:textSize="@dimen/vacation_responder_header_text_size" />
<!-- date selector -->
<LinearLayout
android:id="@+id/start_date_selector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground">
<TextView
android:id="@+id/start_date"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:textColor="@color/vacation_responder_main_text_color"
android:textSize="@dimen/vacation_responder_main_text_size" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@drawable/ic_drop_down_24dp" />
</LinearLayout>
<View
android:layout_marginTop="8dp"
style="@style/DefaultDividerStyle" />
</LinearLayout>
<!-- End date -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/pick_end_date_title"
android:textColor="@color/vacation_responder_header_text_color"
android:textSize="@dimen/vacation_responder_header_text_size" />
<!-- date selector -->
<LinearLayout
android:id="@+id/end_date_selector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground">
<TextView
android:id="@+id/end_date"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:textColor="@color/vacation_responder_main_text_color"
android:textSize="@dimen/vacation_responder_main_text_size" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@drawable/ic_drop_down_24dp" />
</LinearLayout>
<View
android:layout_marginTop="8dp"
style="@style/DefaultDividerStyle" />
</LinearLayout>
</LinearLayout>
<com.android.mail.compose.EnterSubject
android:id="@+id/subject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/subject_hint"
android:imeOptions="actionDone|flagNoExtractUi|flagNoFullscreen"
android:inputType="textEmailSubject|textAutoCorrect|textCapSentences|textImeMultiLine|textMultiLine"
android:maxLength="@integer/vacation_responder_subject_length"
style="@style/VacationResponderInputField" />
<View style="@style/DefaultDividerStyle" />
<EditText
android:id="@+id/body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/vacation_responder_body_hint_text"
android:imeOptions="flagNoFullscreen|actionDone|flagNoEnterAction"
android:inputType="textLongMessage|textMultiLine|textAutoCorrect|textCapSentences"
android:maxLength="@integer/vacation_responder_body_length"
style="@style/VacationResponderInputField" />
<View style="@style/DefaultDividerStyle" />
<CheckedTextView
android:id="@+id/checkbox_send_to_contacts"
android:text="@string/send_to_contacts_text"
style="@style/VacationResponderCheckBox" />
<CheckedTextView
android:id="@+id/checkbox_send_to_domain"
style="@style/VacationResponderCheckBox" />
</LinearLayout>
<!-- End border -->
<Space
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="@integer/compose_padding_weight" />
</LinearLayout>
</ScrollView>