pref_account_login.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. android:padding="24dp">
  8. <TextView
  9. android:id="@+id/dialog_title"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_gravity="center_horizontal"
  13. android:textSize="16sp"
  14. android:textStyle="bold" />
  15. <View
  16. android:id="@+id/titleDivider"
  17. android:layout_width="match_parent"
  18. android:layout_height="1dp"
  19. android:layout_marginTop="6dp"
  20. android:layout_marginBottom="24dp"
  21. android:background="?android:attr/divider" />
  22. <com.google.android.material.textfield.TextInputLayout
  23. android:id="@+id/username_label"
  24. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:hint="@string/username">
  28. <com.google.android.material.textfield.TextInputEditText
  29. android:id="@+id/username"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content" />
  32. </com.google.android.material.textfield.TextInputLayout>
  33. <com.google.android.material.textfield.TextInputLayout
  34. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:hint="@string/password">
  38. <com.google.android.material.textfield.TextInputEditText
  39. android:id="@+id/password"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:ems="10"
  43. android:inputType="textPassword" />
  44. </com.google.android.material.textfield.TextInputLayout>
  45. <CheckBox
  46. android:id="@+id/show_password"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:layout_marginTop="10dp"
  50. android:text="@string/show_password" />
  51. <com.dd.processbutton.iml.ActionProcessButton
  52. android:id="@+id/login"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:layout_marginTop="20dp"
  56. android:text="@string/login"
  57. android:textColor="@android:color/white"
  58. app:pb_textComplete="@string/login_success"
  59. app:pb_textError="@string/invalid_login"
  60. app:pb_textProgress="@string/loading" />
  61. </LinearLayout>