Home | History | Annotate | Download | only in layout-port
      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 <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             <TextView
     46                 android:layout_width="wrap_content"
     47                 android:layout_height="wrap_content"
     48                 android:gravity="center_vertical"
     49                 android:layout_margin="2dip"
     50                 android:textAppearance="?android:attr/textAppearanceMedium"
     51                 android:text="@string/autofill_profile_editor_name" />
     52             <EditText android:id="@+id/autofill_profile_editor_name_edit"
     53                 android:layout_width="match_parent"
     54                 android:layout_height="wrap_content"
     55                 android:gravity="center_vertical"
     56                 android:layout_margin="2dip"
     57                 android:textAppearance="?android:attr/textAppearanceMedium"
     58                 android:inputType="textPersonName|textCapWords"
     59                 android:singleLine="true" />
     60             <TextView
     61                 android:layout_width="wrap_content"
     62                 android:layout_height="wrap_content"
     63                 android:gravity="center_vertical"
     64                 android:layout_margin="2dip"
     65                 android:textAppearance="?android:attr/textAppearanceMedium"
     66                 android:text="@string/autofill_profile_editor_company_name" />
     67             <EditText android:id="@+id/autofill_profile_editor_company_name_edit"
     68                 android:layout_width="match_parent"
     69                 android:layout_height="wrap_content"
     70                 android:gravity="center_vertical"
     71                 android:layout_margin="2dip"
     72                 android:textAppearance="?android:attr/textAppearanceMedium"
     73                 android:inputType="textCapWords"
     74                 android:singleLine="true" />
     75             <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     76                 android:layout_width="wrap_content"
     77                 android:layout_height="wrap_content"
     78                 android:layout_margin="2dip"
     79                 android:orientation="vertical">
     80                 <TextView
     81                     android:layout_width="wrap_content"
     82                     android:layout_height="wrap_content"
     83                     android:gravity="center_vertical"
     84                     android:textAppearance="?android:attr/textAppearanceMedium"
     85                     android:text="@string/autofill_profile_editor_address_line_1" />
     86                  <TextView
     87                     android:layout_width="wrap_content"
     88                     android:layout_height="wrap_content"
     89                     android:gravity="center_vertical"
     90                     android:textAppearance="?android:attr/textAppearanceSmall"
     91                     android:text="@string/autofill_profile_editor_address_line_1_hint" />
     92             </LinearLayout>
     93             <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
     94                 android:layout_width="match_parent"
     95                 android:layout_height="wrap_content"
     96                 android:gravity="center_vertical"
     97                 android:layout_margin="2dip"
     98                 android:textAppearance="?android:attr/textAppearanceMedium"
     99                 android:inputType="textCapWords"
    100                 android:singleLine="true" />
    101             <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    102                 android:layout_width="wrap_content"
    103                 android:layout_height="wrap_content"
    104                 android:layout_margin="2dip"
    105                 android:orientation="vertical">
    106                 <TextView
    107                     android:layout_width="wrap_content"
    108                     android:layout_height="wrap_content"
    109                     android:gravity="center_vertical"
    110                     android:textAppearance="?android:attr/textAppearanceMedium"
    111                     android:text="@string/autofill_profile_editor_address_line_2" />
    112                  <TextView
    113                     android:layout_width="wrap_content"
    114                     android:layout_height="wrap_content"
    115                     android:gravity="center_vertical"
    116                     android:textAppearance="?android:attr/textAppearanceSmall"
    117                     android:text="@string/autofill_profile_editor_address_line_2_hint" />
    118             </LinearLayout>
    119             <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
    120                 android:layout_width="match_parent"
    121                 android:layout_height="wrap_content"
    122                 android:gravity="bottom"
    123                 android:layout_margin="2dip"
    124                 android:textAppearance="?android:attr/textAppearanceMedium"
    125                 android:inputType="textCapWords"
    126                 android:singleLine="true" />
    127             <TextView
    128                 android:layout_width="wrap_content"
    129                 android:layout_height="wrap_content"
    130                 android:gravity="center_vertical"
    131                 android:layout_margin="2dip"
    132                 android:textAppearance="?android:attr/textAppearanceMedium"
    133                 android:text="@string/autofill_profile_editor_city" />
    134             <EditText android:id="@+id/autofill_profile_editor_city_edit"
    135                 android:layout_width="match_parent"
    136                 android:layout_height="wrap_content"
    137                 android:gravity="center_vertical"
    138                 android:layout_margin="2dip"
    139                 android:inputType="textCapWords"
    140                 android:textAppearance="?android:attr/textAppearanceMedium"
    141                 android:singleLine="true" />
    142             <TextView
    143                 android:layout_width="wrap_content"
    144                 android:layout_height="wrap_content"
    145                 android:gravity="center_vertical"
    146                 android:layout_margin="2dip"
    147                 android:textAppearance="?android:attr/textAppearanceMedium"
    148                 android:text="@string/autofill_profile_editor_state" />
    149             <EditText android:id="@+id/autofill_profile_editor_state_edit"
    150                 android:layout_width="match_parent"
    151                 android:layout_height="wrap_content"
    152                 android:gravity="center_vertical"
    153                 android:layout_margin="2dip"
    154                 android:inputType="textCapWords"
    155                 android:textAppearance="?android:attr/textAppearanceMedium"
    156                 android:singleLine="true" />
    157             <TextView
    158                 android:layout_width="wrap_content"
    159                 android:layout_height="wrap_content"
    160                 android:gravity="center_vertical"
    161                 android:layout_margin="2dip"
    162                 android:textAppearance="?android:attr/textAppearanceMedium"
    163                 android:text="@string/autofill_profile_editor_zip_code" />
    164             <EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
    165                 android:layout_width="match_parent"
    166                 android:layout_height="wrap_content"
    167                 android:gravity="center_vertical"
    168                 android:layout_margin="2dip"
    169                 android:inputType="textCapCharacters"
    170                 android:textAppearance="?android:attr/textAppearanceMedium"
    171                 android:singleLine="true" />
    172             <TextView
    173                 android:layout_width="wrap_content"
    174                 android:layout_height="wrap_content"
    175                 android:gravity="center_vertical"
    176                 android:layout_margin="2dip"
    177                 android:textAppearance="?android:attr/textAppearanceMedium"
    178                 android:text="@string/autofill_profile_editor_country" />
    179             <EditText android:id="@+id/autofill_profile_editor_country_edit"
    180                 android:layout_width="match_parent"
    181                 android:layout_height="wrap_content"
    182                 android:gravity="center_vertical"
    183                 android:layout_margin="2dip"
    184                 android:inputType="textCapWords"
    185                 android:textAppearance="?android:attr/textAppearanceMedium"
    186                 android:singleLine="true" />
    187             <TextView
    188                 android:layout_width="wrap_content"
    189                 android:layout_height="wrap_content"
    190                 android:gravity="center_vertical"
    191                 android:layout_margin="2dip"
    192                 android:textAppearance="?android:attr/textAppearanceMedium"
    193                 android:text="@string/autofill_profile_editor_phone_number" />
    194             <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
    195                 android:layout_width="match_parent"
    196                 android:layout_height="wrap_content"
    197                 android:gravity="center_vertical"
    198                 android:layout_margin="2dip"
    199                 android:textAppearance="?android:attr/textAppearanceMedium"
    200                 android:singleLine="true"
    201                 android:phoneNumber="true" />
    202             <TextView
    203                 android:layout_width="wrap_content"
    204                 android:layout_height="wrap_content"
    205                 android:gravity="center_vertical"
    206                 android:layout_margin="2dip"
    207                 android:textAppearance="?android:attr/textAppearanceMedium"
    208                 android:text="@string/autofill_profile_editor_email_address" />
    209             <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
    210                 android:layout_width="match_parent"
    211                 android:layout_height="wrap_content"
    212                 android:gravity="center_vertical"
    213                 android:layout_margin="2dip"
    214                 android:textAppearance="?android:attr/textAppearanceMedium"
    215                 android:inputType="textEmailAddress"
    216                 android:singleLine="true" />
    217         </LinearLayout>
    218     </ScrollView>
    219 
    220     <View
    221         android:layout_height="12dip"
    222         android:layout_width="match_parent" />
    223 
    224     <Button
    225         android:id="@+id/autofill_profile_editor_save_button"
    226         android:layout_width="wrap_content"
    227         android:layout_height="wrap_content"
    228         android:text="@string/autofill_profile_editor_save_profile"
    229         android:textAppearance="?android:attr/textAppearanceMedium" />
    230 
    231 </LinearLayout>
    232