activity_login.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:gravity="center_horizontal"
  7. android:orientation="vertical"
  8. android:paddingLeft="@dimen/activity_horizontal_margin"
  9. android:paddingTop="@dimen/activity_vertical_margin"
  10. android:paddingRight="@dimen/activity_horizontal_margin"
  11. android:paddingBottom="@dimen/activity_vertical_margin"
  12. tools:context=".LoginActivity">
  13. <!-- Login progress -->
  14. <ProgressBar
  15. android:id="@+id/login_progress"
  16. style="?android:attr/progressBarStyleLarge"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_marginBottom="8dp"
  20. android:visibility="gone" />
  21. <ScrollView
  22. android:id="@+id/login_form"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent">
  25. <LinearLayout
  26. android:id="@+id/email_login_form"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:orientation="vertical">
  30. <android.support.design.widget.TextInputLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content">
  33. <AutoCompleteTextView
  34. android:id="@+id/email"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:fontFamily="@font/play_regular"
  38. android:hint="@string/prompt_email"
  39. android:inputType="textEmailAddress"
  40. android:maxLines="1"
  41. android:singleLine="true" />
  42. </android.support.design.widget.TextInputLayout>
  43. <android.support.design.widget.TextInputLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content">
  46. <EditText
  47. android:id="@+id/password"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:fontFamily="@font/play_regular"
  51. android:hint="@string/prompt_password"
  52. android:imeActionId="6"
  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.support.design.widget.TextInputLayout>
  59. <Button
  60. android:id="@+id/email_sign_in_button"
  61. style="?android:textAppearanceSmall"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_marginTop="16dp"
  65. android:fontFamily="@font/play_regular"
  66. android:text="@string/action_sign_in"
  67. android:textStyle="bold" />
  68. </LinearLayout>
  69. </ScrollView>
  70. </LinearLayout>