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 <!-- Common data-entry area of initial account setup screen - email, password, default check --> 18 <!-- tablet version --> 19 <RelativeLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingLeft="@dimen/setup_item_inset_left" 24 android:paddingRight="@dimen/setup_item_inset_right" 25 > 26 <TextView 27 android:id="@+id/instructions" 28 android:layout_alignParentTop="true" 29 android:layout_alignParentLeft="true" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:layout_marginTop="16dip" 33 android:text="@string/accounts_welcome" 34 android:textAppearance="@style/accountSetupInfoText" /> 35 <TableLayout 36 android:id="@+id/email_password_table" 37 android:layout_below="@+id/instructions" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_marginTop="16dip"> 41 42 <TableRow android:paddingTop="16dip" > 43 <TextView 44 android:layout_height="wrap_content" 45 android:layout_width="wrap_content" 46 android:layout_marginRight="16dip" 47 android:text="@string/account_setup_basics_email_label" 48 android:textAppearance="@style/accountSetupLabelText" /> 49 <EditText 50 android:id="@+id/account_email" 51 android:layout_width="@dimen/setup_credentials_input_width" 52 android:layout_height="wrap_content" 53 android:contentDescription="@string/account_setup_basics_email_label" 54 android:inputType="textEmailAddress" 55 android:imeOptions="actionNext" /> 56 </TableRow> 57 <TableRow android:paddingTop="16dip" > 58 <TextView 59 android:layout_height="wrap_content" 60 android:layout_width="wrap_content" 61 android:layout_marginRight="16dip" 62 android:text="@string/account_setup_basics_password_label" 63 android:textAppearance="@style/accountSetupLabelText" /> 64 <EditText 65 android:id="@+id/account_password" 66 android:layout_height="wrap_content" 67 android:layout_width="@dimen/setup_credentials_input_width" 68 android:contentDescription="@string/account_setup_basics_password_label" 69 android:inputType="textPassword" 70 android:imeOptions="actionDone" 71 android:nextFocusDown="@+id/next" /> 72 </TableRow> 73 </TableLayout> 74 75 <!-- Note, the next three items should be shown/hidden as a group --> 76 <View 77 android:id="@+id/account_default_divider_1" 78 android:layout_below="@+id/email_password_table" 79 android:layout_marginTop="48dip" 80 android:layout_width="match_parent" 81 android:layout_height="1px" 82 android:background="@color/account_setup_divider_color" 83 android:visibility="gone" /> 84 <CheckBox 85 android:id="@+id/account_default" 86 android:layout_below="@+id/account_default_divider_1" 87 android:layout_marginTop="16dip" 88 android:layout_marginBottom="16dip" 89 android:layout_marginLeft="32dip" 90 android:layout_height="wrap_content" 91 android:layout_width="wrap_content" 92 android:text="@string/account_setup_basics_default_label" 93 android:textAppearance="@style/accountSetupInfoText" 94 android:visibility="gone" /> 95 <View 96 android:id="@+id/account_default_divider_2" 97 android:layout_below="@+id/account_default" 98 android:layout_width="match_parent" 99 android:layout_height="1px" 100 android:background="@color/account_setup_divider_color" 101 android:visibility="gone" /> 102 </RelativeLayout> 103