pref_account_login.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:paddingStart="24dp"
  8. android:paddingEnd="24dp">
  9. <com.google.android.material.textfield.TextInputLayout
  10. android:id="@+id/username_label"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:hint="@string/username">
  14. <com.google.android.material.textfield.TextInputEditText
  15. android:id="@+id/username"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:inputType="text" />
  19. </com.google.android.material.textfield.TextInputLayout>
  20. <com.google.android.material.textfield.TextInputLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:hint="@string/password"
  24. app:endIconMode="password_toggle">
  25. <com.google.android.material.textfield.TextInputEditText
  26. android:id="@+id/password"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:inputType="textPassword" />
  30. </com.google.android.material.textfield.TextInputLayout>
  31. <com.dd.processbutton.iml.ActionProcessButton
  32. android:id="@+id/login"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_marginTop="20dp"
  36. android:text="@string/login"
  37. android:textColor="?attr/colorOnPrimary"
  38. app:pb_colorNormal="?attr/colorPrimary"
  39. app:pb_colorPressed="?attr/colorPrimary"
  40. app:pb_textComplete="@string/login_success"
  41. app:pb_textError="@string/invalid_login"
  42. app:pb_textProgress="@string/loading" />
  43. </LinearLayout>