Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2013 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 
     19 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     20             xmlns:tools="http://schemas.android.com/tools"
     21             android:layout_gravity="center_horizontal|top"
     22             android:fillViewport="true"
     23             style="@style/VacationResponderScrollViewStyle">
     24 
     25     <LinearLayout
     26             android:layout_width="match_parent"
     27             android:layout_height="wrap_content"
     28             android:orientation="vertical"
     29             android:paddingTop="@dimen/vacation_responder_padding_vertical"
     30             android:paddingBottom="@dimen/vacation_responder_padding_vertical"
     31             android:background="@color/vacation_responder_foreground"
     32             style="@style/VacationResponderStyle">
     33 
     34         <Switch android:id="@+id/vacation_responder_switch"
     35                 android:layout_width="match_parent"
     36                 android:layout_height="wrap_content"
     37                 android:layout_marginBottom="16dip"
     38                 android:text="@string/preferences_vacation_responder_title"
     39                 android:textAppearance="?android:attr/textAppearanceMedium"
     40                 style="@style/VacationResponderSwitch"/>
     41 
     42         <LinearLayout android:layout_width="match_parent"
     43                       android:layout_height="wrap_content"
     44                       android:layout_marginBottom="-12dip"
     45                       android:minHeight="24dip">
     46 
     47             <TextView android:text="@string/pick_start_date_title"
     48                       style="@style/VactionResponderStartDateLabel" />
     49 
     50             <TextView android:text="@string/pick_end_date_title"
     51                       style="@style/VactionResponderEndDateLabel" />
     52 
     53         </LinearLayout>
     54 
     55         <LinearLayout android:layout_width="match_parent"
     56                       android:layout_height="wrap_content"
     57                       android:layout_marginTop="-6dip">
     58 
     59             <Button android:id="@+id/start_date"
     60                     android:layout_width="0dip"
     61                     android:layout_height="wrap_content"
     62                     android:layout_weight="1"
     63                     style="@style/VactionResponderStartDateSpinner" />
     64 
     65             <Button android:id="@+id/end_date"
     66                     android:layout_width="0dip"
     67                     android:layout_height="wrap_content"
     68                     android:layout_weight="1"
     69                     style="@style/VactionResponderEndDateSpinner"/>
     70 
     71         </LinearLayout>
     72 
     73         <RelativeLayout style="@style/ComposeFieldLayout">
     74             <!-- Subject: localization cannot control what field pressing tab
     75                  will bring the user to. This is controlled at runtime.  -->
     76             <com.android.mail.compose.EnterSubject
     77                     android:id="@+id/subject"
     78                     style="@style/VacationResponderSubject" />
     79         </RelativeLayout>
     80 
     81         <RelativeLayout android:layout_height="wrap_content"
     82                         android:layout_width="match_parent"
     83                         android:id="@+id/body_wrapper"
     84                         style="@style/ComposeFieldLayout">
     85 
     86             <EditText android:id="@+id/body"
     87                       android:hint="@string/vacation_responder_body_hint_text"
     88                       style="@style/VacationResponderBody" />
     89 
     90         </RelativeLayout>
     91 
     92         <CheckedTextView android:id="@+id/checkbox_send_to_contacts"
     93                          android:text="@string/send_to_contacts_text"
     94                          style="@style/VacationResponderCheckBox" />
     95 
     96         <CheckedTextView android:id="@+id/checkbox_send_to_domain"
     97                          tools:text="Send only to Google.com"
     98                          style="@style/VacationResponderCheckBox" />
     99     </LinearLayout>
    100 </ScrollView>
    101