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 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     xmlns:app="http://schemas.android.com/apk/res-auto"
     22     android:layout_width="match_parent"
     23     android:layout_height="wrap_content"
     24     android:orientation="vertical"
     25     >
     26     <!-- Spinners in a table to line everything up nicely -->
     27     <android.support.v7.widget.GridLayout
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content"
     30         app:columnCount="2" >
     31 
     32         <TextView
     33             android:layout_height="wrap_content"
     34             android:layout_width="wrap_content"
     35             app:layout_gravity="center_vertical"
     36             android:layout_margin="8dp"
     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             app:layout_gravity="center_vertical|fill_horizontal"/>
     43         <!-- 2nd row is shown only for EAS accounts -->
     44         <TextView
     45             android:id="@+id/account_sync_window_label"
     46             android:layout_height="wrap_content"
     47             android:layout_width="wrap_content"
     48             app:layout_gravity="center_vertical"
     49             android:layout_margin="8dp"
     50             android:text="@string/account_setup_options_mail_window_label"
     51             android:visibility="gone"
     52             style="@style/account_setup_label_text" />
     53         <Spinner
     54             android:id="@+id/account_sync_window"
     55             android:layout_height="wrap_content"
     56             app:layout_gravity="center_vertical|fill_horizontal"
     57             android:visibility="gone" />
     58 
     59     </android.support.v7.widget.GridLayout>
     60     <CheckBox
     61         android:id="@+id/account_notify"
     62         style="@style/account_setup_checkbox"
     63         android:layout_height="wrap_content"
     64         android:layout_width="match_parent"
     65         android:text="@string/account_setup_options_notify_label" />
     66     <!-- Contacts sync - hide unless EAS -->
     67     <View
     68         android:id="@+id/account_sync_contacts_divider"
     69         android:layout_width="match_parent"
     70         android:layout_height="1px"
     71         android:background="@color/account_setup_divider_color"
     72         android:visibility="gone" />
     73     <CheckBox
     74         android:id="@+id/account_sync_contacts"
     75         style="@style/account_setup_checkbox"
     76         android:layout_height="wrap_content"
     77         android:layout_width="match_parent"
     78         android:text="@string/account_setup_options_sync_contacts_label"
     79         android:visibility="gone" />
     80     <!-- Calendar sync - hide unless EAS -->
     81     <View
     82         android:id="@+id/account_sync_calendar_divider"
     83         android:layout_width="match_parent"
     84         android:layout_height="1px"
     85         android:background="@color/account_setup_divider_color"
     86         android:visibility="gone" />
     87     <CheckBox
     88         android:id="@+id/account_sync_calendar"
     89         style="@style/account_setup_checkbox"
     90         android:layout_height="wrap_content"
     91         android:layout_width="match_parent"
     92         android:text="@string/account_setup_options_sync_calendar_label"
     93         android:visibility="gone" />
     94     <!-- Email sync - always show -->
     95     <View
     96         android:layout_width="match_parent"
     97         android:layout_height="1px"
     98         android:background="@color/account_setup_divider_color" />
     99     <CheckBox
    100         android:id="@+id/account_sync_email"
    101         style="@style/account_setup_checkbox"
    102         android:layout_height="wrap_content"
    103         android:layout_width="match_parent"
    104         android:text="@string/account_setup_options_sync_email_label" />
    105     <!-- Auto-download attachments - always show, unless POP3 -->
    106     <View
    107         android:id="@+id/account_background_attachments_divider"
    108         android:layout_width="match_parent"
    109         android:layout_height="1px"
    110         android:background="@color/account_setup_divider_color" />
    111     <CheckBox
    112         android:id="@+id/account_background_attachments"
    113         style="@style/account_setup_checkbox"
    114         android:layout_height="wrap_content"
    115         android:layout_width="match_parent"
    116         android:text="@string/account_setup_options_background_attachments_label" />
    117 </LinearLayout>
    118