Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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 <ScrollView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:fillViewport="true" >
     22 
     23     <LinearLayout
     24         android:layout_width="match_parent"
     25         android:layout_height="wrap_content"
     26         android:orientation="vertical" >
     27 
     28         <LinearLayout
     29             android:layout_width="match_parent"
     30             android:layout_height="wrap_content"
     31             android:layout_weight="1"
     32             android:orientation="vertical" >
     33             <TextView
     34                 android:text="@string/account_setup_outgoing_smtp_server_label"
     35                 android:layout_height="wrap_content"
     36                 android:layout_width="match_parent"
     37                 android:textAppearance="?android:attr/textAppearanceSmall"
     38                 android:textColor="?android:attr/textColorPrimary" />
     39             <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
     40             <EditText
     41                 android:id="@+id/account_server"
     42                 android:inputType="textUri"
     43                 android:imeOptions="actionDone"
     44                 android:layout_height="wrap_content"
     45                 android:layout_width="match_parent" />
     46             <TextView
     47                 android:text="@string/account_setup_outgoing_port_label"
     48                 android:layout_height="wrap_content"
     49                 android:layout_width="match_parent"
     50                 android:textAppearance="?android:attr/textAppearanceSmall"
     51                 android:textColor="?android:attr/textColorPrimary" />
     52             <EditText
     53                 android:id="@+id/account_port"
     54                 android:inputType="number"
     55                 android:imeOptions="actionDone"
     56                 android:layout_height="wrap_content"
     57                 android:layout_width="match_parent" />
     58             <TextView
     59                 android:text="@string/account_setup_outgoing_security_label"
     60                 android:layout_height="wrap_content"
     61                 android:layout_width="match_parent"
     62                 android:textAppearance="?android:attr/textAppearanceSmall"
     63                 android:textColor="?android:attr/textColorPrimary" />
     64             <Spinner
     65                 android:id="@+id/account_security_type"
     66                 android:layout_height="wrap_content"
     67                 android:layout_width="match_parent" />
     68             <CheckBox
     69                 android:id="@+id/account_require_login"
     70                 android:layout_width="match_parent"
     71                 android:layout_height="wrap_content"
     72                 android:text="@string/account_setup_outgoing_require_login_label" />
     73             <LinearLayout
     74                 android:id="@+id/account_require_login_settings"
     75                 android:layout_width="match_parent"
     76                 android:layout_height="match_parent"
     77                 android:orientation="vertical"
     78                 android:visibility="gone">
     79                 <TextView
     80                     android:text="@string/account_setup_outgoing_username_label"
     81                     android:layout_height="wrap_content"
     82                     android:layout_width="match_parent"
     83                     android:textAppearance="?android:attr/textAppearanceSmall"
     84                     android:textColor="?android:attr/textColorPrimary" />
     85                 <EditText
     86                     android:id="@+id/account_username"
     87                     android:inputType="textEmailAddress"
     88                     android:imeOptions="actionDone"
     89                     android:layout_height="wrap_content"
     90                     android:layout_width="match_parent" />
     91                 <TextView
     92                     android:text="@string/account_setup_outgoing_password_label"
     93                     android:layout_height="wrap_content"
     94                     android:layout_width="match_parent"
     95                     android:textAppearance="?android:attr/textAppearanceSmall"
     96                     android:textColor="?android:attr/textColorPrimary" />
     97                 <EditText
     98                     android:id="@+id/account_password"
     99                     android:inputType="textPassword"
    100                     android:imeOptions="actionDone"
    101                     android:layout_height="wrap_content"
    102                     android:layout_width="match_parent" />
    103             </LinearLayout>
    104         </LinearLayout>
    105         <RelativeLayout
    106             android:layout_width="match_parent"
    107             android:layout_height="54dip"
    108             android:background="@android:drawable/bottom_bar">
    109             <Button
    110                 android:id="@+id/next"
    111                 android:text="@string/next_action"
    112                 android:layout_height="wrap_content"
    113                 android:layout_width="wrap_content"
    114                 android:minWidth="@dimen/button_minWidth"
    115                 android:drawableRight="@drawable/button_indicator_next"
    116                 android:layout_alignParentRight="true"
    117                 android:layout_centerVertical="true" />
    118         </RelativeLayout>
    119     </LinearLayout>
    120 </ScrollView>
    121