dialog_add_user.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android">
  3. <LinearLayout
  4. android:layout_width="400dp"
  5. android:layout_height="600dp"
  6. android:background="@drawable/common_card_bg"
  7. android:orientation="vertical">
  8. <LinearLayout
  9. android:id="@+id/title_layout"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:gravity="center_vertical"
  13. android:orientation="horizontal"
  14. android:paddingHorizontal="10dp"
  15. android:paddingVertical="5dp">
  16. <TextView
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:layout_weight="1"
  20. android:text="@string/user_manage_new_user_title"
  21. android:textColor="@color/black"
  22. android:textSize="20sp" />
  23. <ImageView
  24. android:id="@+id/close_iv"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:paddingHorizontal="10dp"
  28. android:src="@drawable/icon_close" />
  29. </LinearLayout>
  30. <View
  31. android:layout_width="match_parent"
  32. android:layout_height="1dp"
  33. android:background="@color/black" />
  34. <LinearLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="match_parent"
  37. android:layout_weight="1"
  38. android:orientation="vertical">
  39. <LinearLayout
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_marginTop="20dp"
  43. android:gravity="center_vertical"
  44. android:orientation="horizontal"
  45. android:paddingHorizontal="16dp">
  46. <TextView
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:text="@string/nickname"
  50. android:textColor="@color/black"
  51. android:textSize="18sp" />
  52. <EditText
  53. android:id="@+id/nickname_et"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_marginLeft="10dp"
  57. android:background="@drawable/bg_common_input"
  58. android:hint="@string/please_input_nickname"
  59. android:maxLines="1"
  60. android:paddingHorizontal="10dp"
  61. android:paddingVertical="2dp"
  62. android:singleLine="true"
  63. android:textColor="@color/black"
  64. android:textSize="18sp" />
  65. </LinearLayout>
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginTop="20dp"
  70. android:gravity="center_vertical"
  71. android:orientation="horizontal"
  72. android:paddingHorizontal="16dp">
  73. <TextView
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="@string/user_manage_card_code"
  77. android:textColor="@color/black"
  78. android:textSize="18sp" />
  79. <EditText
  80. android:id="@+id/cardcode_et"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_marginLeft="10dp"
  84. android:background="@drawable/bg_common_input"
  85. android:hint="@string/please_input_card_code"
  86. android:maxLines="1"
  87. android:paddingHorizontal="10dp"
  88. android:paddingVertical="2dp"
  89. android:singleLine="true"
  90. android:textColor="@color/black"
  91. android:textSize="18sp" />
  92. </LinearLayout>
  93. <LinearLayout
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_marginTop="20dp"
  97. android:gravity="center_vertical"
  98. android:orientation="horizontal"
  99. android:paddingHorizontal="16dp">
  100. <TextView
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="@string/user_manage_role"
  104. android:textColor="@color/black"
  105. android:textSize="18sp" />
  106. <TextView
  107. android:id="@+id/role_tv"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:layout_marginLeft="10dp"
  111. android:background="@drawable/bg_common_input"
  112. android:drawableRight="@drawable/icon_drop_down"
  113. android:hint="@string/please_select_role"
  114. android:paddingHorizontal="10dp"
  115. android:paddingVertical="2dp"
  116. android:textColor="@color/black"
  117. android:textSize="18sp" />
  118. </LinearLayout>
  119. <LinearLayout
  120. android:id="@+id/workstation_layout"
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:layout_marginTop="20dp"
  124. android:gravity="center_vertical"
  125. android:orientation="horizontal"
  126. android:paddingHorizontal="16dp">
  127. <TextView
  128. android:layout_width="wrap_content"
  129. android:layout_height="wrap_content"
  130. android:text="@string/user_manage_area"
  131. android:textColor="@color/black"
  132. android:textSize="18sp" />
  133. <TextView
  134. android:id="@+id/workstation_name_tv"
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:layout_marginLeft="10dp"
  138. android:background="@drawable/bg_common_input"
  139. android:drawableRight="@drawable/icon_drop_down"
  140. android:hint="@string/please_select_area"
  141. android:paddingHorizontal="10dp"
  142. android:paddingVertical="2dp"
  143. android:textColor="@color/black"
  144. android:textSize="18sp" />
  145. </LinearLayout>
  146. <LinearLayout
  147. android:layout_width="match_parent"
  148. android:layout_height="wrap_content"
  149. android:layout_marginTop="20dp"
  150. android:gravity="center_vertical"
  151. android:orientation="horizontal"
  152. android:paddingHorizontal="16dp">
  153. <TextView
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:text="@string/manage_filter_status"
  157. android:textColor="@color/black"
  158. android:textSize="18sp" />
  159. <RadioGroup
  160. android:id="@+id/status_rg"
  161. android:layout_width="match_parent"
  162. android:layout_height="wrap_content"
  163. android:orientation="horizontal">
  164. <RadioButton
  165. android:id="@+id/activate_rb"
  166. android:layout_width="wrap_content"
  167. android:layout_height="wrap_content"
  168. android:layout_marginLeft="10dp"
  169. android:text="@string/user_manage_filter_activate"
  170. android:textSize="18sp" />
  171. <RadioButton
  172. android:id="@+id/deactivate_rb"
  173. android:layout_width="wrap_content"
  174. android:layout_height="wrap_content"
  175. android:layout_marginLeft="10dp"
  176. android:text="@string/user_manage_filter_deactivate"
  177. android:textSize="18sp" />
  178. </RadioGroup>
  179. </LinearLayout>
  180. </LinearLayout>
  181. <LinearLayout
  182. android:layout_width="match_parent"
  183. android:layout_height="wrap_content"
  184. android:gravity="right"
  185. android:orientation="horizontal"
  186. android:padding="10dp">
  187. <TextView
  188. android:id="@+id/confirm"
  189. android:layout_width="wrap_content"
  190. android:layout_height="wrap_content"
  191. android:layout_marginLeft="10dp"
  192. android:background="@drawable/common_dialog_btn"
  193. android:paddingHorizontal="20dp"
  194. android:text="@string/confirm"
  195. android:textColor="@color/black"
  196. android:textSize="20sp" />
  197. <TextView
  198. android:id="@+id/cancel"
  199. android:layout_width="wrap_content"
  200. android:layout_height="wrap_content"
  201. android:layout_marginLeft="10dp"
  202. android:background="@drawable/common_dialog_btn"
  203. android:paddingHorizontal="20dp"
  204. android:text="@string/cancel"
  205. android:textColor="@color/black"
  206. android:textSize="20sp" />
  207. </LinearLayout>
  208. </LinearLayout>
  209. </layout>