activity_add_service_resource.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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. android:background="@color/white"
  7. android:orientation="vertical"
  8. tools:context=".ui.resource_management.service_resource.AddServiceResourceActivity">
  9. <include
  10. layout="@layout/layout_title"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content" />
  13. <ScrollView
  14. android:layout_width="match_parent"
  15. android:layout_height="0dp"
  16. android:layout_marginTop="@dimen/common_padding"
  17. android:layout_weight="1"
  18. android:scrollbars="none">
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:layout_marginStart="@dimen/common_padding_heavy"
  23. android:layout_marginTop="@dimen/common_padding"
  24. android:layout_marginEnd="@dimen/common_padding_heavy"
  25. android:orientation="vertical">
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_marginTop="@dimen/common_padding"
  30. android:orientation="horizontal">
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_gravity="center"
  35. android:text="@string/supplier_type"
  36. android:textSize="@dimen/text_size_medium" />
  37. <TextView
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_marginStart="@dimen/common_padding"
  41. android:layout_weight="1"
  42. android:background="@color/white"
  43. android:gravity="end"
  44. android:hint="@string/please_select"
  45. android:singleLine="true"
  46. android:textColorHint="@color/hint_text_color"
  47. android:textSize="@dimen/text_size_medium" />
  48. </LinearLayout>
  49. <View
  50. android:layout_width="match_parent"
  51. android:layout_height="@dimen/line"
  52. android:layout_marginTop="@dimen/common_padding_huge"
  53. android:layout_marginBottom="@dimen/common_padding"
  54. android:background="@color/line_color" />
  55. <LinearLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_marginTop="@dimen/common_padding"
  59. android:orientation="horizontal">
  60. <TextView
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_gravity="center"
  64. android:text="@string/city"
  65. android:textSize="@dimen/text_size_medium" />
  66. <TextView
  67. android:layout_width="0dp"
  68. android:layout_height="wrap_content"
  69. android:layout_marginStart="@dimen/common_padding"
  70. android:layout_weight="1"
  71. android:background="@color/white"
  72. android:gravity="end"
  73. android:hint="@string/please_input"
  74. android:singleLine="true"
  75. android:textColorHint="@color/hint_text_color"
  76. android:textSize="@dimen/text_size_medium" />
  77. </LinearLayout>
  78. <View
  79. android:layout_width="match_parent"
  80. android:layout_height="@dimen/line"
  81. android:layout_marginTop="@dimen/common_padding_huge"
  82. android:layout_marginBottom="@dimen/common_padding"
  83. android:background="@color/line_color" />
  84. <LinearLayout
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:layout_marginTop="@dimen/common_padding"
  88. android:orientation="horizontal">
  89. <TextView
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_gravity="center"
  93. android:text="@string/supplier_name"
  94. android:textSize="@dimen/text_size_medium" />
  95. <EditText
  96. android:id="@+id/supplier_name"
  97. android:layout_width="0dp"
  98. android:layout_height="wrap_content"
  99. android:layout_marginStart="@dimen/common_padding"
  100. android:layout_weight="1"
  101. android:background="@color/white"
  102. android:gravity="end"
  103. android:hint="@string/please_input"
  104. android:importantForAutofill="no"
  105. android:inputType="text"
  106. android:singleLine="true"
  107. android:textColorHint="@color/hint_text_color"
  108. android:textSize="@dimen/text_size_medium" />
  109. </LinearLayout>
  110. <View
  111. android:layout_width="match_parent"
  112. android:layout_height="@dimen/line"
  113. android:layout_marginTop="@dimen/common_padding_huge"
  114. android:layout_marginBottom="@dimen/common_padding"
  115. android:background="@color/line_color" />
  116. <LinearLayout
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content"
  119. android:layout_marginTop="@dimen/common_padding"
  120. android:orientation="horizontal">
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_gravity="center"
  125. android:text="@string/contacts"
  126. android:textSize="@dimen/text_size_medium" />
  127. <EditText
  128. android:id="@+id/contacts_name"
  129. android:layout_width="0dp"
  130. android:layout_height="wrap_content"
  131. android:layout_marginStart="@dimen/common_padding"
  132. android:layout_weight="1"
  133. android:background="@color/white"
  134. android:gravity="end"
  135. android:hint="@string/please_input"
  136. android:importantForAutofill="no"
  137. android:inputType="text"
  138. android:singleLine="true"
  139. android:textColorHint="@color/hint_text_color"
  140. android:textSize="@dimen/text_size_medium" />
  141. </LinearLayout>
  142. <View
  143. android:layout_width="match_parent"
  144. android:layout_height="@dimen/line"
  145. android:layout_marginTop="@dimen/common_padding_huge"
  146. android:layout_marginBottom="@dimen/common_padding"
  147. android:background="@color/line_color" />
  148. <LinearLayout
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:layout_marginTop="@dimen/common_padding_small"
  152. android:orientation="horizontal">
  153. <TextView
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:layout_marginTop="@dimen/common_padding_small"
  157. android:text="@string/gender"
  158. android:textSize="@dimen/text_size_medium" />
  159. <RadioGroup
  160. android:id="@+id/gender"
  161. android:layout_width="0dp"
  162. android:layout_height="wrap_content"
  163. android:layout_marginStart="@dimen/common_padding"
  164. android:layout_weight="1"
  165. android:gravity="end"
  166. android:orientation="horizontal">
  167. <RadioButton
  168. android:id="@+id/male"
  169. android:layout_width="wrap_content"
  170. android:layout_height="wrap_content"
  171. android:background="@drawable/style_radio_button"
  172. android:buttonTint="@color/title_background_color"
  173. android:checked="true"
  174. android:text="@string/male" />
  175. <RadioButton
  176. android:id="@+id/female"
  177. android:layout_width="wrap_content"
  178. android:layout_height="wrap_content"
  179. android:layout_marginStart="@dimen/common_padding"
  180. android:background="@drawable/style_radio_button"
  181. android:buttonTint="@color/title_background_color"
  182. android:text="@string/female" />
  183. </RadioGroup>
  184. </LinearLayout>
  185. <View
  186. android:layout_width="match_parent"
  187. android:layout_height="@dimen/line"
  188. android:layout_marginTop="@dimen/common_padding_huge"
  189. android:layout_marginBottom="@dimen/common_padding"
  190. android:background="@color/line_color" />
  191. <LinearLayout
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:layout_marginTop="@dimen/common_padding"
  195. android:orientation="horizontal">
  196. <TextView
  197. android:layout_width="wrap_content"
  198. android:layout_height="wrap_content"
  199. android:layout_gravity="center"
  200. android:text="@string/phone"
  201. android:textSize="@dimen/text_size_medium" />
  202. <EditText
  203. android:id="@+id/supplier_phone"
  204. android:layout_width="0dp"
  205. android:layout_height="wrap_content"
  206. android:layout_marginStart="@dimen/common_padding"
  207. android:layout_weight="1"
  208. android:background="@color/white"
  209. android:gravity="end"
  210. android:hint="@string/please_input"
  211. android:importantForAutofill="no"
  212. android:inputType="phone"
  213. android:singleLine="true"
  214. android:textColorHint="@color/hint_text_color"
  215. android:textSize="@dimen/text_size_medium" />
  216. </LinearLayout>
  217. <View
  218. android:layout_width="match_parent"
  219. android:layout_height="@dimen/line"
  220. android:layout_marginTop="@dimen/common_padding_huge"
  221. android:layout_marginBottom="@dimen/common_padding"
  222. android:background="@color/line_color" />
  223. <LinearLayout
  224. android:layout_width="match_parent"
  225. android:layout_height="wrap_content"
  226. android:layout_marginTop="@dimen/common_padding"
  227. android:orientation="horizontal">
  228. <TextView
  229. android:layout_width="wrap_content"
  230. android:layout_height="wrap_content"
  231. android:layout_gravity="center"
  232. android:text="@string/email"
  233. android:textSize="@dimen/text_size_medium" />
  234. <EditText
  235. android:id="@+id/supplier_email"
  236. android:layout_width="0dp"
  237. android:layout_height="wrap_content"
  238. android:layout_marginStart="@dimen/common_padding"
  239. android:layout_weight="1"
  240. android:background="@color/white"
  241. android:gravity="end"
  242. android:hint="@string/please_input"
  243. android:importantForAutofill="no"
  244. android:inputType="textEmailAddress"
  245. android:singleLine="true"
  246. android:textColorHint="@color/hint_text_color"
  247. android:textSize="@dimen/text_size_medium" />
  248. </LinearLayout>
  249. <View
  250. android:layout_width="match_parent"
  251. android:layout_height="@dimen/line"
  252. android:layout_marginTop="@dimen/common_padding_huge"
  253. android:layout_marginBottom="@dimen/common_padding"
  254. android:background="@color/line_color" />
  255. <LinearLayout
  256. android:layout_width="match_parent"
  257. android:layout_height="wrap_content"
  258. android:layout_marginTop="@dimen/common_padding"
  259. android:orientation="horizontal">
  260. <TextView
  261. android:layout_width="wrap_content"
  262. android:layout_height="wrap_content"
  263. android:layout_gravity="center"
  264. android:text="@string/department_name"
  265. android:textSize="@dimen/text_size_medium" />
  266. <EditText
  267. android:layout_width="0dp"
  268. android:layout_height="wrap_content"
  269. android:layout_marginStart="@dimen/common_padding"
  270. android:layout_weight="1"
  271. android:background="@color/white"
  272. android:gravity="end"
  273. android:hint="@string/please_input"
  274. android:importantForAutofill="no"
  275. android:inputType="text"
  276. android:singleLine="true"
  277. android:textColorHint="@color/hint_text_color"
  278. android:textSize="@dimen/text_size_medium" />
  279. </LinearLayout>
  280. <View
  281. android:layout_width="match_parent"
  282. android:layout_height="@dimen/line"
  283. android:layout_marginTop="@dimen/common_padding_huge"
  284. android:layout_marginBottom="@dimen/common_padding"
  285. android:background="@color/line_color" />
  286. <LinearLayout
  287. android:layout_width="match_parent"
  288. android:layout_height="wrap_content"
  289. android:layout_marginTop="@dimen/common_padding"
  290. android:orientation="horizontal">
  291. <TextView
  292. android:layout_width="wrap_content"
  293. android:layout_height="wrap_content"
  294. android:layout_gravity="center"
  295. android:text="@string/department_name_abbr"
  296. android:textSize="@dimen/text_size_medium" />
  297. <EditText
  298. android:layout_width="0dp"
  299. android:layout_height="wrap_content"
  300. android:layout_marginStart="@dimen/common_padding"
  301. android:layout_weight="1"
  302. android:background="@color/white"
  303. android:gravity="end"
  304. android:hint="@string/please_input"
  305. android:importantForAutofill="no"
  306. android:inputType="text"
  307. android:singleLine="true"
  308. android:textColorHint="@color/hint_text_color"
  309. android:textSize="@dimen/text_size_medium" />
  310. </LinearLayout>
  311. <View
  312. android:layout_width="match_parent"
  313. android:layout_height="@dimen/line"
  314. android:layout_marginTop="@dimen/common_padding_huge"
  315. android:layout_marginBottom="@dimen/common_padding"
  316. android:background="@color/line_color" />
  317. <LinearLayout
  318. android:layout_width="match_parent"
  319. android:layout_height="wrap_content"
  320. android:layout_marginTop="@dimen/common_padding"
  321. android:orientation="horizontal">
  322. <TextView
  323. android:layout_width="wrap_content"
  324. android:layout_height="wrap_content"
  325. android:layout_gravity="center"
  326. android:text="@string/job_name"
  327. android:textSize="@dimen/text_size_medium" />
  328. <EditText
  329. android:layout_width="0dp"
  330. android:layout_height="wrap_content"
  331. android:layout_marginStart="@dimen/common_padding"
  332. android:layout_weight="1"
  333. android:background="@color/white"
  334. android:gravity="end"
  335. android:hint="@string/please_input"
  336. android:importantForAutofill="no"
  337. android:inputType="text"
  338. android:singleLine="true"
  339. android:textColorHint="@color/hint_text_color"
  340. android:textSize="@dimen/text_size_medium" />
  341. </LinearLayout>
  342. <View
  343. android:layout_width="match_parent"
  344. android:layout_height="@dimen/line"
  345. android:layout_marginTop="@dimen/common_padding_huge"
  346. android:layout_marginBottom="@dimen/common_padding"
  347. android:background="@color/line_color" />
  348. <LinearLayout
  349. android:layout_width="match_parent"
  350. android:layout_height="wrap_content"
  351. android:layout_marginTop="@dimen/common_padding"
  352. android:orientation="horizontal">
  353. <TextView
  354. android:layout_width="wrap_content"
  355. android:layout_height="wrap_content"
  356. android:layout_gravity="center"
  357. android:text="@string/fax_number"
  358. android:textSize="@dimen/text_size_medium" />
  359. <EditText
  360. android:layout_width="0dp"
  361. android:layout_height="wrap_content"
  362. android:layout_marginStart="@dimen/common_padding"
  363. android:layout_weight="1"
  364. android:background="@color/white"
  365. android:gravity="end"
  366. android:hint="@string/please_input"
  367. android:importantForAutofill="no"
  368. android:inputType="text"
  369. android:singleLine="true"
  370. android:textColorHint="@color/hint_text_color"
  371. android:textSize="@dimen/text_size_medium" />
  372. </LinearLayout>
  373. <View
  374. android:layout_width="match_parent"
  375. android:layout_height="@dimen/line"
  376. android:layout_marginTop="@dimen/common_padding_huge"
  377. android:layout_marginBottom="@dimen/common_padding"
  378. android:background="@color/line_color" />
  379. <LinearLayout
  380. android:layout_width="match_parent"
  381. android:layout_height="wrap_content"
  382. android:layout_marginTop="@dimen/common_padding"
  383. android:orientation="horizontal">
  384. <TextView
  385. android:layout_width="wrap_content"
  386. android:layout_height="wrap_content"
  387. android:layout_gravity="center"
  388. android:text="@string/wechat"
  389. android:textSize="@dimen/text_size_medium" />
  390. <EditText
  391. android:id="@+id/wechat"
  392. android:layout_width="0dp"
  393. android:layout_height="wrap_content"
  394. android:layout_marginStart="@dimen/common_padding"
  395. android:layout_weight="1"
  396. android:background="@color/white"
  397. android:gravity="end"
  398. android:hint="@string/please_input"
  399. android:importantForAutofill="no"
  400. android:inputType="text"
  401. android:singleLine="true"
  402. android:textColorHint="@color/hint_text_color"
  403. android:textSize="@dimen/text_size_medium" />
  404. </LinearLayout>
  405. <View
  406. android:layout_width="match_parent"
  407. android:layout_height="@dimen/line"
  408. android:layout_marginTop="@dimen/common_padding_huge"
  409. android:layout_marginBottom="@dimen/common_padding"
  410. android:background="@color/line_color" />
  411. <LinearLayout
  412. android:layout_width="match_parent"
  413. android:layout_height="wrap_content"
  414. android:layout_marginTop="@dimen/common_padding"
  415. android:orientation="vertical">
  416. <TextView
  417. android:layout_width="wrap_content"
  418. android:layout_height="wrap_content"
  419. android:layout_marginBottom="@dimen/common_padding"
  420. android:text="@string/department_location"
  421. android:textSize="@dimen/text_size_medium" />
  422. <com.pan_american.android.util.ScrollEditText
  423. android:layout_width="match_parent"
  424. android:layout_height="100dp"
  425. android:background="@color/white"
  426. android:gravity="end"
  427. android:hint="@string/please_input"
  428. android:importantForAutofill="no"
  429. android:inputType="text"
  430. android:singleLine="true"
  431. android:textColorHint="@color/hint_text_color"
  432. android:textSize="@dimen/text_size_medium" />
  433. </LinearLayout>
  434. <View
  435. android:layout_width="match_parent"
  436. android:layout_height="@dimen/line"
  437. android:layout_marginTop="@dimen/common_padding_huge"
  438. android:layout_marginBottom="@dimen/common_padding"
  439. android:background="@color/line_color" />
  440. <LinearLayout
  441. android:layout_width="match_parent"
  442. android:layout_height="wrap_content"
  443. android:layout_marginTop="@dimen/common_padding"
  444. android:layout_marginBottom="@dimen/common_padding"
  445. android:orientation="vertical">
  446. <TextView
  447. android:layout_width="wrap_content"
  448. android:layout_height="wrap_content"
  449. android:layout_marginBottom="@dimen/common_padding"
  450. android:text="@string/other_info"
  451. android:textSize="@dimen/text_size_medium" />
  452. <com.pan_american.android.util.ScrollEditText
  453. android:id="@+id/notes"
  454. android:layout_width="match_parent"
  455. android:layout_height="120dp"
  456. android:background="@color/white"
  457. android:hint="@string/other_info"
  458. android:textColorHint="@color/hint_text_color"
  459. android:textSize="@dimen/text_size_medium" />
  460. </LinearLayout>
  461. <LinearLayout
  462. android:layout_width="match_parent"
  463. android:layout_height="wrap_content"
  464. android:layout_marginTop="@dimen/common_padding"
  465. android:orientation="horizontal">
  466. <TextView
  467. android:id="@+id/commit"
  468. android:layout_width="match_parent"
  469. android:layout_height="@dimen/button_height"
  470. android:layout_marginBottom="50dp"
  471. android:background="@drawable/shape_corner_solid_blue"
  472. android:gravity="center"
  473. android:text="@string/submit"
  474. android:textColor="@color/white"
  475. android:textSize="@dimen/text_size_large"
  476. android:textStyle="bold" />
  477. </LinearLayout>
  478. </LinearLayout>
  479. </ScrollView>
  480. </LinearLayout>