Home | History | Annotate | Download | only in layout-w600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!-- Common data-entry area of account options setup screen - check freq, options, etc. -->
     18 <!-- tablet version -->
     19 <RelativeLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="wrap_content"
     23     >
     24     <!-- Spinners in a table to line everything up nicely -->
     25     <TableLayout
     26         android:id="@+id/spinners_table"
     27         android:layout_alignParentTop="true"
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content"
     30         android:stretchColumns="1" >
     31         <TableRow
     32             android:paddingTop="16dip" >
     33             <TextView
     34                 android:layout_height="wrap_content"
     35                 android:layout_width="wrap_content"
     36                 android:layout_marginRight="16dip"
     37                 android:text="@string/account_setup_options_mail_check_frequency_label"
     38                 style="@style/account_setup_label_text" />
     39             <Spinner
     40                 android:id="@+id/account_check_frequency"
     41                 android:layout_height="wrap_content"
     42                 android:layout_width="match_parent" />
     43         </TableRow>
     44         <!-- 2nd row is shown only for EAS accounts -->
     45         <TableRow
     46             android:id="@+id/account_sync_window_row"
     47             android:paddingTop="16dip"
     48             android:visibility="gone" >
     49             <TextView
     50                 android:layout_height="wrap_content"
     51                 android:layout_width="wrap_content"
     52                 android:layout_marginRight="16dip"
     53                 android:text="@string/account_setup_options_mail_window_label"
     54                 style="@style/account_setup_label_text" />
     55             <Spinner
     56                 android:id="@+id/account_sync_window"
     57                 android:layout_height="wrap_content"
     58                 android:layout_width="match_parent" />
     59         </TableRow>
     60     </TableLayout>
     61     <CheckBox
     62         android:id="@+id/account_notify"
     63         android:layout_below="@+id/spinners_table"
     64         style="@style/account_setup_checkbox"
     65         android:layout_height="wrap_content"
     66         android:layout_width="match_parent"
     67         android:text="@string/account_setup_options_notify_label" />
     68     <View
     69         android:id="@+id/account_notify_divider"
     70         android:layout_below="@+id/account_notify"
     71         android:layout_width="match_parent"
     72         android:layout_height="1px"
     73         android:background="@color/account_setup_divider_color" />
     74     <!-- Contacts sync - hide unless EAS -->
     75     <CheckBox
     76         android:id="@+id/account_sync_contacts"
     77         android:layout_below="@+id/account_notify_divider"
     78         style="@style/account_setup_checkbox"
     79         android:layout_height="wrap_content"
     80         android:layout_width="match_parent"
     81         android:text="@string/account_setup_options_sync_contacts_label"
     82         android:visibility="gone" />
     83     <View
     84         android:id="@+id/account_sync_contacts_divider"
     85         android:layout_below="@+id/account_sync_contacts"
     86         android:layout_width="match_parent"
     87         android:layout_height="1px"
     88         android:background="@color/account_setup_divider_color"
     89         android:visibility="gone" />
     90     <!-- Calendar sync - hide unless EAS -->
     91     <CheckBox
     92         android:id="@+id/account_sync_calendar"
     93         android:layout_below="@+id/account_sync_contacts_divider"
     94         style="@style/account_setup_checkbox"
     95         android:layout_height="wrap_content"
     96         android:layout_width="match_parent"
     97         android:text="@string/account_setup_options_sync_calendar_label"
     98         android:visibility="gone" />
     99     <View
    100         android:id="@+id/account_sync_calendar_divider"
    101         android:layout_below="@+id/account_sync_calendar"
    102         android:layout_width="match_parent"
    103         android:layout_height="1px"
    104         android:background="@color/account_setup_divider_color"
    105         android:visibility="gone" />
    106     <!-- Email sync - always show -->
    107     <CheckBox
    108         android:id="@+id/account_sync_email"
    109         android:layout_below="@+id/account_sync_calendar_divider"
    110         style="@style/account_setup_checkbox"
    111         android:layout_height="wrap_content"
    112         android:layout_width="match_parent"
    113         android:text="@string/account_setup_options_sync_email_label" />
    114     <View
    115         android:id="@+id/account_sync_email_divider"
    116         android:layout_below="@+id/account_sync_email"
    117         android:layout_width="match_parent"
    118         android:layout_height="1px"
    119         android:background="@color/account_setup_divider_color" />
    120     <!-- Auto-download attachments - always show, unless POP3 -->
    121     <CheckBox
    122         android:id="@+id/account_background_attachments"
    123         android:layout_below="@+id/account_sync_email_divider"
    124         style="@style/account_setup_checkbox"
    125         android:layout_height="wrap_content"
    126         android:layout_width="match_parent"
    127         android:text="@string/account_setup_options_background_attachments_label" />
    128     <View
    129         android:id="@+id/account_background_attachments_divider"
    130         android:layout_below="@+id/account_sync_email"
    131         android:layout_width="match_parent"
    132         android:layout_height="1px"
    133         android:background="@color/account_setup_divider_color" />
    134 </RelativeLayout>
    135