fragment_login.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <TextView
  79. android:id="@+id/tv_retrieve_pass"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_marginLeft="5dp"
  83. android:layout_marginTop="5dp"
  84. android:clickable="true"
  85. android:focusable="true"
  86. android:text="Retrieve password"
  87. android:textAppearance="?android:attr/textAppearanceMedium"
  88. android:textColor="@android:color/holo_blue_dark" />
  89. </LinearLayout>
  90. <TextView
  91. android:id="@+id/tv_ver"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_alignParentLeft="true"
  95. android:layout_alignParentTop="true"
  96. android:text="TextView" />
  97. </RelativeLayout>