1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2008 Esmertec AG. 5 * Copyright (C) 2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19--> 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="fill_parent" 22 android:layout_height="fill_parent" 23 android:orientation="vertical" 24 android:padding="10dip"> 25 26 <TextView android:id= "@+id/label_username" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content"/> 29 30 <EditText android:id="@+id/edtName" 31 android:completionThreshold="1" 32 android:selectAllOnFocus="true" 33 android:layout_width="fill_parent" 34 android:layout_height="wrap_content" 35 android:inputType="text" /> 36 37 <TextView android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_marginTop="3dip" 40 android:text="@string/label_password" /> 41 42 <EditText android:id="@+id/edtPass" 43 android:layout_width="fill_parent" 44 android:layout_height="wrap_content" 45 android:selectAllOnFocus="true" 46 android:inputType="textPassword"/> 47 48 <LinearLayout android:layout_width="fill_parent" 49 android:layout_height="wrap_content" 50 android:orientation="horizontal"> 51 <LinearLayout android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:orientation="vertical"> 54 <CheckBox android:id="@+id/rememberPassword" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:textAppearance="?android:attr/textAppearanceSmall" 58 android:text="@string/remember_password" /> 59 60 <CheckBox android:id="@+id/keepSignIn" 61 android:textSize="13sp" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:textAppearance="?android:attr/textAppearanceSmall" 65 android:text="@string/keep_me_signed_in" /> 66 </LinearLayout> 67 68 <LinearLayout android:layout_width="fill_parent" 69 android:layout_height="fill_parent" 70 android:layout_weight="1.0" 71 android:gravity="center_vertical|right" 72 android:orientation="horizontal"> 73 <Button android:id="@+id/btnSignIn" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_marginTop="3dip" 77 android:text="@string/sign_in" /> 78 </LinearLayout> 79 </LinearLayout> 80 81 <TextView android:id="@+id/signUp" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:paddingLeft="4dip" 85 android:focusable="true" 86 android:focusableInTouchMode="true" 87 android:textAppearance="?android:attr/textAppearanceSmall" /> 88</LinearLayout> 89