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:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:padding="24dp">
  8. <TextView
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:text="@string/login_title"
  12. android:id="@+id/title"
  13. android:textStyle="bold"
  14. android:textSize="16sp"
  15. android:layout_gravity="center_horizontal" />
  16. <View android:id="@+id/titleDivider"
  17. android:layout_width="match_parent"
  18. android:layout_height="1dp"
  19. android:background="@color/line_grey"
  20. android:layout_marginTop="6dp"
  21. android:layout_marginBottom="24dp"/>
  22. <TextView
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:text="@string/username"/>
  26. <EditText
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:id="@+id/username" />
  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:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:inputType="textPassword"
  39. android:ems="10"
  40. android:id="@+id/password" />
  41. <CheckBox
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:text="@string/show_password"
  45. android:id="@+id/show_password"
  46. android:layout_marginTop="10dp"/>
  47. <com.dd.processbutton.iml.ActionProcessButton
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:textColor="@android:color/white"
  51. android:text="@string/login"
  52. android:id="@+id/login"
  53. app:pb_textComplete="@string/login_success"
  54. app:pb_textProgress="@string/loading"
  55. app:pb_textError="@string/invalid_login"
  56. android:layout_marginTop="20dp"/>
  57. </LinearLayout>