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 android:text="user" /> 60 <TextView 61 android:id="@+id/username_fixed" 62 android:textAppearance="?android:attr/textAppearanceSmall" 63 android:singleLine="true" 64 android:layout_marginTop="2dip" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" /> 67 <TextView 68 android:textAppearance="?android:attr/textAppearanceSmall" 69 android:textStyle="bold" 70 android:singleLine="true" 71 android:layout_marginTop="2dip" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:text="@string/login_activity_password_label" /> 75 <EditText 76 android:id="@+id/password_edit" 77 android:singleLine="true" 78 android:layout_width="fill_parent" 79 android:layout_height="wrap_content" 80 android:minWidth="250dip" 81 android:scrollHorizontally="true" 82 android:capitalize="none" 83 android:autoText="false" 84 android:password="true" 85 android:inputType="textPassword" 86 android:text="test" /> 87 <TextView 88 android:id="@+id/message_bottom" 89 android:textAppearance="?android:attr/textAppearanceSmall" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:layout_marginBottom="5dip" /> 93 </LinearLayout> 94 </ScrollView> 95 <FrameLayout 96 android:layout_width="fill_parent" 97 android:layout_height="wrap_content" 98 android:background="#c6c3c6" 99 android:minHeight="54dip" 100 android:paddingTop="4dip" 101 android:paddingLeft="2dip" 102 android:paddingRight="2dip"> 103 <Button 104 android:id="@+id/ok_button" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_gravity="center_horizontal" 108 android:minWidth="100dip" 109 android:text="@string/login_activity_ok_button" 110 android:onClick="handleLogin" /> 111 </FrameLayout> 112 </LinearLayout> 113