/TheElements/res/layout/login_layout.xml

http://thelements.googlecode.com/ · XML · 70 lines · 59 code · 11 blank · 0 comment · 0 complexity · 58c163029a40c9ff4ce2f052472a354e MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:orientation="horizontal"
  5. android:layout_width="fill_parent"
  6. android:layout_height="fill_parent"
  7. >
  8. <TextView android:id="@+id/welcome_text"
  9. android:text = "Login to Save Server"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_centerHorizontal="true"
  13. />
  14. <TextView android:id="@+id/username_text"
  15. android:text = "username:"
  16. android:layout_centerHorizontal="true"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_below="@+id/welcome_text"
  20. />
  21. <EditText android:id="@+id/txt_username"
  22. android:layout_height="wrap_content"
  23. android:layout_width="250px"
  24. android:layout_centerHorizontal="true"
  25. android:layout_below="@+id/username_text"
  26. android:singleLine="true" />
  27. <TextView android:id="@+id/password_text"
  28. android:text = "password:"
  29. android:layout_centerHorizontal="true"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_below="@+id/txt_username"
  33. />
  34. <EditText android:id="@+id/txt_password"
  35. android:password="true"
  36. android:layout_height="wrap_content"
  37. android:layout_width="250px"
  38. android:layout_centerHorizontal="true"
  39. android:layout_below="@+id/password_text"
  40. android:singleLine="true" />
  41. <Button
  42. android:id="@+id/login_button2"
  43. android:text="Login"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_centerHorizontal="true"
  47. android:layout_below="@+id/txt_password"
  48. />
  49. <Button
  50. android:id="@+id/register_button"
  51. android:text="Register"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_centerHorizontal="true"
  55. android:layout_below="@+id/txt_password"
  56. android:layout_toRightOf="@+id/login_button2"
  57. />
  58. <Button android:layout_toRightOf="@+id/login_button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/register_button" android:id="@+id/engage_test" android:text="Engage "></Button>
  59. </RelativeLayout>