fragment_login.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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_centerInParent="true"
  12. android:layout_gravity="center"
  13. android:gravity="center_horizontal"
  14. android:orientation="vertical"
  15. android:visibility="gone" >
  16. <ProgressBar
  17. style="?android:attr/progressBarStyleLarge"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_marginBottom="8dp" />
  21. <TextView
  22. android:id="@+id/login_status_message"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_marginBottom="16dp"
  26. android:text="@string/login_progress_signing_in"
  27. android:textAppearance="?android:attr/textAppearanceMedium" />
  28. </LinearLayout>
  29. <!-- Login form -->
  30. <ScrollView
  31. android:id="@+id/login_form"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent" >
  34. <LinearLayout
  35. style="@style/LoginFormContainer"
  36. android:orientation="vertical" >
  37. <EditText
  38. android:id="@+id/user"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:hint="@string/prompt_email"
  42. android:inputType="textAutoComplete"
  43. android:maxLines="1"
  44. android:singleLine="true"
  45. android:text="ra.admin" />
  46. <EditText
  47. android:id="@+id/password"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:hint="@string/prompt_password"
  51. android:imeActionId="@+id/login"
  52. android:imeActionLabel="@string/action_sign_in_short"
  53. android:imeOptions="actionUnspecified"
  54. android:inputType="textPassword"
  55. android:maxLines="1"
  56. android:singleLine="true"
  57. android:text="#UL$dc01" />
  58. <Button
  59. android:id="@+id/sign_in_button"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_gravity="right"
  63. android:layout_marginTop="16dp"
  64. android:paddingLeft="32dp"
  65. android:paddingRight="32dp"
  66. android:text="@string/action_sign_in_register" />
  67. </LinearLayout>
  68. </ScrollView>
  69. </RelativeLayout>