pref_account_login.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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="@color/dividerLight" />
  22. <TextView
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:text="@string/username" />
  26. <EditText
  27. android:id="@+id/username"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content" />
  30. <TextView
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_marginTop="16dp"
  34. android:text="@string/password" />
  35. <EditText
  36. android:id="@+id/password"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:ems="10"
  40. android:inputType="textPassword" />
  41. <CheckBox
  42. android:id="@+id/show_password"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_marginTop="10dp"
  46. android:text="@string/show_password" />
  47. <com.dd.processbutton.iml.ActionProcessButton
  48. android:id="@+id/login"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_marginTop="20dp"
  52. android:text="@string/login"
  53. android:textColor="@android:color/white"
  54. app:pb_textComplete="@string/login_success"
  55. app:pb_textError="@string/invalid_login"
  56. app:pb_textProgress="@string/loading" />
  57. </LinearLayout>