activity_login.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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:paddingBottom="@dimen/activity_vertical_margin"
  9. android:paddingLeft="@dimen/activity_horizontal_margin"
  10. android:paddingRight="@dimen/activity_horizontal_margin"
  11. android:paddingTop="@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/trilium_address"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:hint="@string/prompt_trilium_address"
  38. android:inputType="textUri"
  39. android:maxLines="1"
  40. android:singleLine="true" />
  41. </android.support.design.widget.TextInputLayout>
  42. <android.support.design.widget.TextInputLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content">
  45. <AutoCompleteTextView
  46. android:id="@+id/username"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:hint="@string/prompt_username"
  50. android:inputType="text"
  51. android:maxLines="1"
  52. android:singleLine="true" />
  53. </android.support.design.widget.TextInputLayout>
  54. <android.support.design.widget.TextInputLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content">
  57. <EditText
  58. android:id="@+id/password"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:hint="@string/prompt_password"
  62. android:imeActionId="6"
  63. android:imeActionLabel="@string/action_sign_in_short"
  64. android:imeOptions="actionUnspecified"
  65. android:inputType="textPassword"
  66. android:maxLines="1"
  67. android:singleLine="true" />
  68. </android.support.design.widget.TextInputLayout>
  69. <Button
  70. android:id="@+id/email_sign_in_button"
  71. style="?android:textAppearanceSmall"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:layout_marginTop="16dp"
  75. android:text="@string/action_sign_in"
  76. android:textStyle="bold" />
  77. </LinearLayout>
  78. </ScrollView>
  79. </LinearLayout>