1 <?xml version="1.0" encoding="utf-8" ?> 2 <!-- 3 /** 4 * Copyright (c) 2010, The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 --> 19 <LinearLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:orientation="vertical" 22 android:layout_width="fill_parent" 23 android:layout_height="wrap_content"> 24 <ScrollView 25 android:layout_width="fill_parent" 26 android:layout_height="0dip" 27 android:layout_weight="1"> 28 <LinearLayout 29 android:layout_width="fill_parent" 30 android:layout_height="wrap_content" 31 android:layout_weight="1" 32 android:orientation="vertical" 33 android:paddingTop="5dip" 34 android:paddingBottom="13dip" 35 android:paddingLeft="20dip" 36 android:paddingRight="20dip"> 37 <TextView 38 android:id="@+id/message" 39 android:textAppearance="?android:attr/textAppearanceSmall" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_marginBottom="5dip" /> 43 <TextView 44 android:textAppearance="?android:attr/textAppearanceSmall" 45 android:textStyle="bold" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="@string/login_activity_username_label" /> 49 <EditText 50 android:id="@+id/username_edit" 51 android:singleLine="true" 52 android:layout_width="fill_parent" 53 android:layout_height="wrap_content" 54 android:minWidth="250dip" 55 android:scrollHorizontally="true" 56 android:capitalize="none" 57 android:autoText="false" 58 android:inputType="textEmailAddress" /> 59 <TextView 60 android:id="@+id/username_fixed" 61 android:textAppearance="?android:attr/textAppearanceSmall" 62 android:singleLine="true" 63 android:layout_marginTop="2dip" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" /> 66 <TextView 67 android:textAppearance="?android:attr/textAppearanceSmall" 68 android:textStyle="bold" 69 android:singleLine="true" 70 android:layout_marginTop="2dip" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:text="@string/login_activity_password_label" /> 74 <EditText 75 android:id="@+id/password_edit" 76 android:singleLine="true" 77 android:layout_width="fill_parent" 78 android:layout_height="wrap_content" 79 android:minWidth="250dip" 80 android:scrollHorizontally="true" 81 android:capitalize="none" 82 android:autoText="false" 83 android:password="true" 84 android:inputType="textPassword" /> 85 <TextView 86 android:id="@+id/message_bottom" 87 android:textAppearance="?android:attr/textAppearanceSmall" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:layout_marginBottom="5dip" /> 91 </LinearLayout> 92 </ScrollView> 93 <FrameLayout 94 android:layout_width="fill_parent" 95 android:layout_height="wrap_content" 96 android:background="#c6c3c6" 97 android:minHeight="54dip" 98 android:paddingTop="4dip" 99 android:paddingLeft="2dip" 100 android:paddingRight="2dip"> 101 <Button 102 android:id="@+id/ok_button" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content" 105 android:layout_gravity="center_horizontal" 106 android:minWidth="100dip" 107 android:text="@string/login_activity_ok_button" 108 android:onClick="handleLogin" /> 109 </FrameLayout> 110 </LinearLayout> 111