Home | History | Annotate | Download | only in layout
      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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent"
     19     android:orientation="vertical">
     20 
     21     <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     22         android:layout_width="match_parent"
     23         android:layout_height="0px"
     24         android:layout_weight="1">
     25 
     26         <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     27             android:layout_width="match_parent"
     28             android:layout_height="match_parent"
     29             android:orientation="vertical">
     30 
     31             <View
     32                 android:layout_height="10dip"
     33                 android:layout_width="match_parent" />
     34 
     35             <TextView
     36                 android:layout_width="wrap_content"
     37                 android:layout_height="wrap_content"
     38                 android:textAppearance="?android:attr/textAppearanceMedium"
     39                 android:text="@string/autofill_profile_editor_heading" />
     40 
     41             <View
     42                 android:layout_height="12dip"
     43                 android:layout_width="match_parent" />
     44 
     45             <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
     46                 android:layout_width="match_parent"
     47                 android:layout_height="wrap_content"
     48                 android:shrinkColumns="1"
     49                 android:stretchColumns="1">
     50                 <TableRow>
     51                     <TextView
     52                         android:layout_width="wrap_content"
     53                         android:layout_height="wrap_content"
     54                         android:gravity="center_vertical"
     55                         android:layout_margin="2dip"
     56                         android:textAppearance="?android:attr/textAppearanceMedium"
     57                         android:text="@string/autofill_profile_editor_name" />
     58                     <EditText android:id="@+id/autofill_profile_editor_name_edit"
     59                         android:layout_width="match_parent"
     60                         android:layout_height="wrap_content"
     61                         android:gravity="center_vertical"
     62                         android:layout_margin="2dip"
     63                         android:textAppearance="?android:attr/textAppearanceMedium"
     64                         android:inputType="textPersonName|textCapWords"
     65                         android:singleLine="true"
     66                         android:imeOptions="actionNext" />
     67                 </TableRow>
     68                 <TableRow>
     69                     <TextView
     70                         android:layout_width="wrap_content"
     71                         android:layout_height="wrap_content"
     72                         android:gravity="center_vertical"
     73                         android:layout_margin="2dip"
     74                         android:textAppearance="?android:attr/textAppearanceMedium"
     75                         android:text="@string/autofill_profile_editor_company_name" />
     76                     <EditText android:id="@+id/autofill_profile_editor_company_name_edit"
     77                         android:layout_width="match_parent"
     78                         android:layout_height="wrap_content"
     79                         android:gravity="center_vertical"
     80                         android:layout_margin="2dip"
     81                         android:textAppearance="?android:attr/textAppearanceMedium"
     82                         android:inputType="textCapWords"
     83                         android:singleLine="true"
     84                         android:imeOptions="actionNext" />
     85                 </TableRow>
     86                 <TableRow>
     87                     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     88                         android:layout_width="wrap_content"
     89                         android:layout_height="wrap_content"
     90                         android:layout_margin="2dip"
     91                         android:orientation="vertical">
     92                         <TextView
     93                             android:layout_width="wrap_content"
     94                             android:layout_height="wrap_content"
     95                             android:gravity="center_vertical"
     96                             android:textAppearance="?android:attr/textAppearanceMedium"
     97                             android:text="@string/autofill_profile_editor_address_line_1" />
     98                          <TextView
     99                             android:layout_width="wrap_content"
    100                             android:layout_height="wrap_content"
    101                             android:gravity="center_vertical"
    102                             android:textAppearance="?android:attr/textAppearanceSmall"
    103                             android:text="@string/autofill_profile_editor_address_line_1_hint" />
    104                     </LinearLayout>
    105                     <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
    106                         android:layout_width="match_parent"
    107                         android:layout_height="wrap_content"
    108                         android:gravity="center_vertical"
    109                         android:layout_margin="2dip"
    110                         android:textAppearance="?android:attr/textAppearanceMedium"
    111                         android:inputType="textCapWords"
    112                         android:singleLine="true"
    113                         android:imeOptions="actionNext" />
    114                 </TableRow>
    115                 <TableRow>
    116                     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    117                         android:layout_width="wrap_content"
    118                         android:layout_height="wrap_content"
    119                         android:layout_margin="2dip"
    120                         android:orientation="vertical">
    121                         <TextView
    122                             android:layout_width="wrap_content"
    123                             android:layout_height="wrap_content"
    124                             android:gravity="center_vertical"
    125                             android:textAppearance="?android:attr/textAppearanceMedium"
    126                             android:text="@string/autofill_profile_editor_address_line_2" />
    127                          <TextView
    128                             android:layout_width="wrap_content"
    129                             android:layout_height="wrap_content"
    130                             android:gravity="center_vertical"
    131                             android:textAppearance="?android:attr/textAppearanceSmall"
    132                             android:text="@string/autofill_profile_editor_address_line_2_hint" />
    133                     </LinearLayout>
    134                     <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
    135                         android:layout_width="match_parent"
    136                         android:layout_height="wrap_content"
    137                         android:gravity="bottom"
    138                         android:layout_margin="2dip"
    139                         android:textAppearance="?android:attr/textAppearanceMedium"
    140                         android:inputType="textCapWords"
    141                         android:singleLine="true"
    142                         android:imeOptions="actionNext" />
    143                 </TableRow>
    144                 <TableRow>
    145                     <TextView
    146                         android:layout_width="wrap_content"
    147                         android:layout_height="wrap_content"
    148                         android:gravity="center_vertical"
    149                         android:layout_margin="2dip"
    150                         android:textAppearance="?android:attr/textAppearanceMedium"
    151                         android:text="@string/autofill_profile_editor_city" />
    152                     <EditText android:id="@+id/autofill_profile_editor_city_edit"
    153                         android:layout_width="match_parent"
    154                         android:layout_height="wrap_content"
    155                         android:gravity="center_vertical"
    156                         android:layout_margin="2dip"
    157                         android:inputType="textCapWords"
    158                         android:textAppearance="?android:attr/textAppearanceMedium"
    159                         android:singleLine="true"
    160                         android:imeOptions="actionNext" />
    161                 </TableRow>
    162                 <TableRow>
    163                     <TextView
    164                         android:layout_width="wrap_content"
    165                         android:layout_height="wrap_content"
    166                         android:gravity="center_vertical"
    167                         android:layout_margin="2dip"
    168                         android:textAppearance="?android:attr/textAppearanceMedium"
    169                         android:text="@string/autofill_profile_editor_state" />
    170                     <EditText android:id="@+id/autofill_profile_editor_state_edit"
    171                         android:layout_width="match_parent"
    172                         android:layout_height="wrap_content"
    173                         android:gravity="center_vertical"
    174                         android:layout_margin="2dip"
    175                         android:inputType="textCapWords"
    176                         android:textAppearance="?android:attr/textAppearanceMedium"
    177                         android:singleLine="true"
    178                         android:imeOptions="actionNext" />
    179                 </TableRow>
    180                 <TableRow>
    181                     <TextView
    182                         android:layout_width="wrap_content"
    183                         android:layout_height="wrap_content"
    184                         android:gravity="center_vertical"
    185                         android:layout_margin="2dip"
    186                         android:textAppearance="?android:attr/textAppearanceMedium"
    187                         android:text="@string/autofill_profile_editor_zip_code" />
    188                     <EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
    189                         android:layout_width="match_parent"
    190                         android:layout_height="wrap_content"
    191                         android:gravity="center_vertical"
    192                         android:layout_margin="2dip"
    193                         android:inputType="textCapCharacters"
    194                         android:textAppearance="?android:attr/textAppearanceMedium"
    195                         android:singleLine="true"
    196                         android:imeOptions="actionNext" />
    197                 </TableRow>
    198                 <TableRow>
    199                     <TextView
    200                         android:layout_width="wrap_content"
    201                         android:layout_height="wrap_content"
    202                         android:gravity="center_vertical"
    203                         android:layout_margin="2dip"
    204                         android:textAppearance="?android:attr/textAppearanceMedium"
    205                         android:text="@string/autofill_profile_editor_country" />
    206                     <EditText android:id="@+id/autofill_profile_editor_country_edit"
    207                         android:layout_width="match_parent"
    208                         android:layout_height="wrap_content"
    209                         android:gravity="center_vertical"
    210                         android:layout_margin="2dip"
    211                         android:inputType="textCapWords"
    212                         android:textAppearance="?android:attr/textAppearanceMedium"
    213                         android:singleLine="true"
    214                         android:imeOptions="actionNext" />
    215                 </TableRow>
    216                 <TableRow>
    217                     <TextView
    218                         android:layout_width="wrap_content"
    219                         android:layout_height="wrap_content"
    220                         android:gravity="center_vertical"
    221                         android:layout_margin="2dip"
    222                         android:textAppearance="?android:attr/textAppearanceMedium"
    223                         android:text="@string/autofill_profile_editor_phone_number" />
    224                     <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
    225                         android:layout_width="match_parent"
    226                         android:layout_height="wrap_content"
    227                         android:gravity="center_vertical"
    228                         android:layout_margin="2dip"
    229                         android:textAppearance="?android:attr/textAppearanceMedium"
    230                         android:singleLine="true"
    231                         android:phoneNumber="true"
    232                         android:imeOptions="actionNext" />
    233                 </TableRow>
    234                 <TableRow>
    235                     <TextView
    236                         android:layout_width="wrap_content"
    237                         android:layout_height="wrap_content"
    238                         android:gravity="center_vertical"
    239                         android:layout_margin="2dip"
    240                         android:textAppearance="?android:attr/textAppearanceMedium"
    241                         android:text="@string/autofill_profile_editor_email_address" />
    242                     <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
    243                         android:layout_width="match_parent"
    244                         android:layout_height="wrap_content"
    245                         android:gravity="center_vertical"
    246                         android:layout_margin="2dip"
    247                         android:textAppearance="?android:attr/textAppearanceMedium"
    248                         android:inputType="textEmailAddress"
    249                         android:singleLine="true"
    250                         android:imeOptions="actionDone" />
    251                 </TableRow>
    252             </TableLayout>
    253        </LinearLayout>
    254     </ScrollView>
    255 
    256     <View
    257         android:layout_height="12dip"
    258         android:layout_width="match_parent" />
    259 
    260     <Button
    261         android:id="@+id/autofill_profile_editor_save_button"
    262         android:layout_width="wrap_content"
    263         android:layout_height="wrap_content"
    264         android:text="@string/autofill_profile_editor_save_profile"
    265         android:textAppearance="?android:attr/textAppearanceMedium" />
    266 
    267 </LinearLayout>
    268 
    269