Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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 <!-- Incoming server settings - tablet - see layout/ for phone UX variant -->
     18 <!-- This is used directly by the account setup activity, but during settings it is
     19      wrapped in an outer layout (account_settings_outgoing_fragment) -->
     20 <TableLayout  xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="wrap_content"
     23     android:stretchColumns="1" >
     24 
     25     <TableRow
     26         android:paddingTop="16dip" >
     27         <TextView
     28             android:layout_height="wrap_content"
     29             android:layout_width="wrap_content"
     30             android:layout_marginRight="16dip"
     31             android:text="@string/account_setup_outgoing_smtp_server_label" />
     32         <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
     33         <EditText
     34             android:id="@+id/account_server"
     35             android:layout_width="wrap_content"
     36             android:layout_height="wrap_content"
     37             android:inputType="textUri"
     38             android:imeOptions="actionDone" />
     39     </TableRow>
     40     <TableRow
     41         android:paddingTop="16dip" >
     42         <TextView
     43             android:layout_height="wrap_content"
     44             android:layout_width="wrap_content"
     45             android:layout_marginRight="16dip"
     46             android:text="@string/account_setup_outgoing_security_label" />
     47         <Spinner
     48             android:id="@+id/account_security_type"
     49             android:layout_width="wrap_content"
     50             android:layout_height="wrap_content" />
     51     </TableRow>
     52     <TableRow
     53         android:paddingTop="16dip" >
     54         <TextView
     55             android:layout_height="wrap_content"
     56             android:layout_width="wrap_content"
     57             android:layout_marginRight="16dip"
     58             android:text="@string/account_setup_outgoing_port_label" />
     59         <EditText
     60             android:id="@+id/account_port"
     61             android:layout_width="wrap_content"
     62             android:layout_height="wrap_content"
     63             android:inputType="number"
     64             android:imeOptions="actionDone" />
     65     </TableRow>
     66     <!-- Note, this row is not a TableRow, and it will span the entire table - no columns -->
     67     <LinearLayout
     68         android:layout_width="match_parent"
     69         android:layout_height="wrap_content"
     70         android:layout_marginTop="32dip"
     71         android:orientation="vertical" >
     72         <View
     73             android:layout_width="match_parent"
     74             android:layout_height="1px"
     75             android:background="@color/account_setup_divider_color" />
     76         <CheckBox
     77             android:id="@+id/account_require_login"
     78             android:layout_marginTop="16dip"
     79             android:layout_marginBottom="16dip"
     80             android:layout_marginLeft="32dip"
     81             android:layout_width="wrap_content"
     82             android:layout_height="wrap_content"
     83             android:text="@string/account_setup_outgoing_require_login_label" />
     84         <View
     85             android:layout_width="match_parent"
     86             android:layout_height="1px"
     87             android:background="@color/account_setup_divider_color" />
     88     </LinearLayout>
     89     <TableRow
     90         android:id="@+id/account_require_login_settings"
     91         android:paddingTop="16dip"
     92         android:visibility="gone" >
     93         <TextView
     94             android:layout_height="wrap_content"
     95             android:layout_width="wrap_content"
     96             android:layout_marginRight="16dip"
     97             android:text="@string/account_setup_outgoing_username_label" />
     98         <EditText
     99             android:id="@+id/account_username"
    100             android:layout_width="wrap_content"
    101             android:layout_height="wrap_content"
    102             android:inputType="textEmailAddress"
    103             android:imeOptions="actionDone" />
    104     </TableRow>
    105     <TableRow
    106         android:id="@+id/account_require_login_settings_2"
    107         android:paddingTop="16dip"
    108         android:visibility="gone" >
    109         <TextView
    110             android:layout_height="wrap_content"
    111             android:layout_width="wrap_content"
    112             android:layout_marginRight="16dip"
    113             android:text="@string/account_setup_outgoing_password_label" />
    114         <EditText
    115             android:id="@+id/account_password"
    116             android:layout_width="wrap_content"
    117             android:layout_height="wrap_content"
    118             android:inputType="textPassword"
    119             android:imeOptions="actionDone" />
    120     </TableRow>
    121 </TableLayout>
    122