fragment_login.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. tools:context=".LoginActivity" >
  6. <!-- Login progress -->
  7. <LinearLayout
  8. android:id="@+id/login_status"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:layout_alignTop="@+id/login_form"
  12. android:layout_centerHorizontal="true"
  13. android:layout_gravity="center"
  14. android:gravity="center_horizontal"
  15. android:orientation="vertical"
  16. android:visibility="gone" >
  17. <ProgressBar
  18. style="?android:attr/progressBarStyleLarge"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_marginBottom="8dp" />
  22. <TextView
  23. android:id="@+id/login_status_message"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_marginBottom="16dp"
  27. android:text="@string/login_progress_signing_in"
  28. android:textAppearance="?android:attr/textAppearanceMedium" />
  29. </LinearLayout>
  30. <!-- Login form -->
  31. <LinearLayout
  32. android:id="@+id/login_form"
  33. style="@style/LoginFormContainer"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_alignParentBottom="true"
  37. android:orientation="vertical" >
  38. <EditText
  39. android:id="@+id/user"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:hint="@string/prompt_user"
  43. android:inputType="textAutoComplete"
  44. android:maxLines="1"
  45. android:singleLine="true"
  46. android:text="" />
  47. <EditText
  48. android:id="@+id/password"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:hint="@string/prompt_password"
  52. android:imeActionId="@+id/login"
  53. android:imeActionLabel="@string/action_sign_in_short"
  54. android:imeOptions="actionUnspecified"
  55. android:inputType="textPassword"
  56. android:maxLines="1"
  57. android:singleLine="true"
  58. android:text="" />
  59. <RelativeLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content" >
  62. <CheckBox
  63. android:id="@+id/cb_save"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="Save Password"
  67. android:layout_alignBottom="@+id/sign_in_button"/>
  68. <Button
  69. android:id="@+id/sign_in_button"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:layout_alignParentRight="true"
  73. android:layout_alignParentTop="true"
  74. android:paddingLeft="32dp"
  75. android:paddingRight="32dp"
  76. android:text="@string/action_sign_in_register" />
  77. </RelativeLayout>
  78. </LinearLayout>
  79. </RelativeLayout>