login_layout.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:background="@drawable/login"
  10. android:orientation="vertical"
  11. tools:layout_editor_absoluteX="86dp"
  12. tools:layout_editor_absoluteY="168dp">
  13. <LinearLayout
  14. android:id="@+id/account_layout"
  15. android:layout_width="match_parent"
  16. android:layout_height="221dp"
  17. android:layout_gravity="center"
  18. android:layout_marginTop="300dp"
  19. android:layout_weight="1"
  20. android:gravity="center"
  21. android:orientation="horizontal">
  22. <View
  23. android:layout_width="1dip"
  24. android:layout_height="fill_parent"
  25. android:layout_gravity="center_horizontal"
  26. android:background="#E2E2E2" />
  27. <EditText
  28. android:id="@+id/account"
  29. android:layout_width="fill_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_marginLeft="20dp"
  32. android:layout_marginRight="20dp"
  33. android:foregroundTint="#D90E0E"
  34. android:hint="@string/account"
  35. android:inputType="text"
  36. android:selectAllOnFocus="true"
  37. android:singleLine="false"
  38. android:textColor="#000"
  39. android:textColorHint="#ccc"
  40. android:textScaleX="1"
  41. android:theme="@style/MyEditText" />
  42. </LinearLayout>
  43. <LinearLayout
  44. android:id="@+id/go_on_layout"
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent"
  47. android:layout_marginRight="20dp"
  48. android:layout_weight="2"
  49. android:gravity="right"
  50. android:orientation="vertical">
  51. <Button
  52. android:id="@+id/go_on"
  53. android:layout_width="70dp"
  54. android:layout_height="36dp"
  55. android:background="@drawable/login_button"
  56. android:onClick="go_on_click"
  57. android:text="@string/go_on"
  58. android:textColor="#fff"
  59. tools:ignore="OnClick" />
  60. </LinearLayout>
  61. <LinearLayout
  62. android:layout_width="match_parent"
  63. android:layout_height="200dp"
  64. android:layout_marginLeft="30dp"
  65. android:layout_marginTop="300dp"
  66. android:layout_marginRight="30dp"
  67. android:orientation="vertical">
  68. <com.example.watch.ui.activity.SecurityCodeView
  69. android:id="@+id/edit_security_code"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:layout_marginLeft="24dp"
  73. android:layout_marginTop="21dp"
  74. android:layout_marginRight="24dp"
  75. android:gravity="center_horizontal"
  76. tools:ignore="MissingClass" />
  77. <TextView
  78. android:id="@+id/tv_text"
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:layout_marginLeft="20dp"
  82. android:layout_marginTop="30dp"
  83. android:layout_marginRight="20dp"
  84. android:text="@string/tv_user_agreement"
  85. android:textColor="#AACC03" />
  86. <LinearLayout
  87. android:id="@+id/login_button_layout"
  88. android:layout_width="match_parent"
  89. android:layout_height="match_parent"
  90. android:layout_marginRight="20dp"
  91. android:layout_weight="2"
  92. android:gravity="right"
  93. android:orientation="vertical">
  94. <Button
  95. android:id="@+id/login_btn"
  96. android:layout_width="70dp"
  97. android:layout_height="36dp"
  98. android:background="@drawable/login_button"
  99. android:text="@string/login_btn"
  100. android:textColor="#fff"
  101. tools:ignore="OnClick" />
  102. </LinearLayout>
  103. </LinearLayout>
  104. </LinearLayout>
  105. </androidx.constraintlayout.widget.ConstraintLayout>