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 xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:fillViewport="true">
     21 
     22     <LinearLayout
     23         android:layout_width="match_parent"
     24         android:layout_height="wrap_content"
     25         android:orientation="vertical" >
     26 
     27         <LinearLayout
     28             android:layout_width="match_parent"
     29             android:layout_height="wrap_content"
     30             android:layout_weight="1"
     31             android:orientation="vertical" >
     32             <TextView
     33                 android:id="@+id/instructions"
     34                 android:layout_width="match_parent"
     35                 android:layout_height="wrap_content"
     36                 android:layout_marginTop="10dip"
     37                 android:textSize="20sp"
     38                 android:text="@string/accounts_welcome"
     39                 android:textColor="?android:attr/textColorPrimary" />
     40             <View
     41                 android:layout_width="match_parent"
     42                 android:layout_height="0dip"
     43                 android:layout_weight="1" />
     44             <EditText
     45                 android:id="@+id/account_email"
     46                 android:hint="@string/account_setup_basics_email_hint"
     47                 android:inputType="textEmailAddress"
     48                 android:imeOptions="actionNext"
     49                 android:layout_height="wrap_content"
     50                 android:layout_width="match_parent" />
     51             <EditText
     52                 android:id="@+id/account_password"
     53                 android:hint="@string/account_setup_basics_password_hint"
     54                 android:inputType="textPassword"
     55                 android:imeOptions="actionDone"
     56                 android:layout_height="wrap_content"
     57                 android:layout_width="match_parent"
     58                 android:nextFocusDown="@+id/next" />
     59             <CheckBox
     60                 android:id="@+id/account_default"
     61                 android:layout_height="wrap_content"
     62                 android:layout_width="match_parent"
     63                 android:text="@string/account_setup_basics_default_label"
     64                 android:visibility="gone" />
     65             <View
     66                 android:layout_width="match_parent"
     67                 android:layout_height="0dip"
     68                 android:layout_weight="1" />
     69         </LinearLayout>
     70 
     71         <RelativeLayout
     72             android:layout_width="match_parent"
     73             android:layout_height="54dip"
     74             android:background="@android:drawable/bottom_bar" >
     75             <Button
     76                 android:id="@+id/manual_setup"
     77                 android:text="@string/account_setup_basics_manual_setup_action"
     78                 android:layout_height="wrap_content"
     79                 android:layout_width="wrap_content"
     80                 android:minWidth="@dimen/button_minWidth"
     81                 android:layout_alignParentLeft="true"
     82                 android:layout_centerVertical="true" />
     83             <Button
     84                 android:id="@+id/next"
     85                 android:text="@string/next_action"
     86                 android:layout_height="wrap_content"
     87                 android:layout_width="wrap_content"
     88                 android:minWidth="@dimen/button_minWidth"
     89                 android:drawableRight="@drawable/button_indicator_next"
     90                 android:layout_alignParentRight="true"
     91                 android:layout_centerVertical="true" />
     92         </RelativeLayout>
     93     </LinearLayout>
     94 </ScrollView>
     95