Chet Haase | faebd8f | 2012-05-18 14:17:57 -0700 | [diff] [blame] | 1 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | android:id="@+id/container" |
| 3 | android:layout_width="match_parent" |
| 4 | android:layout_height="match_parent"> |
| 5 | |
| 6 | <TextView |
| 7 | android:id="@+id/password" |
| 8 | android:layout_width="wrap_content" |
| 9 | android:layout_height="wrap_content" |
| 10 | android:layout_alignRight="@+id/username" |
| 11 | android:layout_below="@+id/username" |
| 12 | android:layout_marginTop="30dp" |
| 13 | android:textColor="#7f7f7f" |
| 14 | android:text="@string/password" |
| 15 | android:textAppearance="?android:attr/textAppearanceLarge" /> |
| 16 | |
| 17 | <EditText |
| 18 | android:id="@+id/usernameEdit" |
| 19 | android:layout_width="wrap_content" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:layout_alignTop="@+id/username" |
| 22 | android:layout_marginLeft="14dp" |
| 23 | android:layout_toRightOf="@+id/username" |
| 24 | android:ems="10" /> |
| 25 | |
| 26 | <TextView |
| 27 | android:id="@+id/username" |
| 28 | android:layout_width="wrap_content" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:layout_alignParentLeft="true" |
| 31 | android:layout_alignParentTop="true" |
| 32 | android:layout_marginLeft="20dp" |
| 33 | android:layout_marginTop="51dp" |
| 34 | android:text="@string/username" |
| 35 | android:textAppearance="?android:attr/textAppearanceLarge" /> |
| 36 | |
| 37 | <EditText |
| 38 | android:id="@+id/passwordEdit" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_alignBaseline="@+id/password" |
| 42 | android:layout_alignBottom="@+id/password" |
| 43 | android:layout_alignLeft="@+id/usernameEdit" |
| 44 | android:layout_alignParentRight="true" |
| 45 | android:editable="false" |
| 46 | android:ems="10" > |
| 47 | |
| 48 | <requestFocus /> |
| 49 | </EditText> |
| 50 | |
| 51 | <Button |
| 52 | android:id="@+id/cancel" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:layout_alignParentBottom="true" |
| 56 | android:layout_marginBottom="14dp" |
| 57 | android:layout_toLeftOf="@+id/passwordEdit" |
| 58 | android:onClick="sendMessage" |
| 59 | android:text="@string/cancel" /> |
| 60 | |
| 61 | <Button |
| 62 | android:id="@+id/submit" |
| 63 | android:layout_width="wrap_content" |
| 64 | android:layout_height="wrap_content" |
| 65 | android:layout_alignBaseline="@+id/cancel" |
| 66 | android:layout_alignBottom="@+id/cancel" |
| 67 | android:layout_alignLeft="@+id/passwordEdit" |
| 68 | android:layout_marginLeft="41dp" |
| 69 | android:onClick="sendMessage" |
| 70 | android:text="@string/submit" /> |
| 71 | |
| 72 | <TextView |
| 73 | android:id="@+id/newuser" |
| 74 | android:layout_width="wrap_content" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:layout_below="@+id/passwordEdit" |
| 77 | android:layout_centerHorizontal="true" |
| 78 | android:layout_marginTop="16dp" |
| 79 | android:textColor="#0000ff" |
| 80 | android:text="@string/new_user" |
| 81 | android:clickable="true" |
| 82 | android:onClick="sendMessage" |
| 83 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 84 | android:textStyle="italic" /> |
| 85 | |
| 86 | </RelativeLayout> |