Advertisement
ricky_yulianto

file.xml

Dec 17th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.18 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@android:color/white"
  6. android:focusable="false"
  7. android:focusableInTouchMode="true"
  8. android:fitsSystemWindows="true"
  9. xmlns:app="http://schemas.android.com/apk/res-auto"
  10. android:orientation="vertical">
  11.  
  12.  
  13. <include
  14. layout="@layout/header_layout_correctivedetail"/>
  15.  
  16.  
  17.  
  18. <FrameLayout
  19. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent">
  22.  
  23. <include
  24. layout="@layout/error"/>
  25. <include
  26. layout="@layout/loading"/>
  27.  
  28.  
  29.  
  30. <FrameLayout
  31. android:id="@+id/container_content"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent">
  34.  
  35. <android.support.v4.widget.NestedScrollView
  36. android:id="@+id/nested_scroll"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent">
  39.  
  40.  
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:orientation="vertical">
  45.  
  46.  
  47. <LinearLayout
  48. android:padding="16dp"
  49. android:background="@color/colorPrimary"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:orientation="horizontal">
  53.  
  54. <LinearLayout
  55. android:layout_weight="1"
  56. android:layout_width="0dp"
  57. android:layout_height="wrap_content"
  58. android:orientation="vertical">
  59.  
  60. <LinearLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_marginLeft="0dp"
  64. android:orientation="horizontal"
  65. android:padding="0dp">
  66.  
  67. <TextView
  68. android:layout_width="100dp"
  69. android:layout_height="wrap_content"
  70. android:text="Task ID"
  71. android:textColor="@color/white"
  72. android:textSize="14sp" />
  73.  
  74. <TextView
  75. android:id="@+id/tv_task_id"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_weight="1"
  79. android:text="123456789"
  80. android:textColor="@android:color/white"
  81. android:textSize="13sp"
  82. android:textStyle="bold" />
  83. </LinearLayout>
  84. <LinearLayout
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:layout_marginLeft="0dp"
  88. android:orientation="horizontal"
  89. android:padding="0dp">
  90.  
  91. <TextView
  92. android:layout_width="100dp"
  93. android:layout_height="wrap_content"
  94. android:text="Type"
  95. android:textColor="@color/white"
  96. android:textSize="14sp" />
  97.  
  98. <TextView
  99. android:id="@+id/tv_type"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_weight="1"
  103. android:text="Overbed Table Vanity"
  104. android:textColor="@android:color/white"
  105. android:textSize="13sp"
  106. android:textStyle="bold" />
  107. </LinearLayout>
  108.  
  109. <LinearLayout
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:layout_marginLeft="0dp"
  113. android:orientation="horizontal"
  114. android:padding="0dp">
  115.  
  116. <TextView
  117. android:layout_width="100dp"
  118. android:layout_height="wrap_content"
  119. android:text="Hospital"
  120. android:textColor="@color/white"
  121. android:textSize="14sp" />
  122.  
  123. <TextView
  124. android:id="@+id/tv_location"
  125. android:layout_marginTop="0dp"
  126. android:textSize="13sp"
  127. android:textStyle="bold"
  128. android:textColor="@color/white60"
  129. android:text="Siloam Jakarta"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content" />
  132. </LinearLayout>
  133.  
  134. <LinearLayout
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:layout_marginLeft="0dp"
  138. android:orientation="horizontal"
  139. android:padding="0dp">
  140.  
  141. <TextView
  142. android:layout_width="100dp"
  143. android:layout_height="wrap_content"
  144. android:text="Department"
  145. android:textColor="@color/white"
  146. android:textSize="14sp" />
  147.  
  148. <TextView
  149. android:id="@+id/tv_department"
  150. android:layout_marginTop="0dp"
  151. android:textSize="13sp"
  152. android:textStyle="bold"
  153. android:textColor="@color/white60"
  154. android:text="Department IT"
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content" />
  157. </LinearLayout>
  158.  
  159. <LinearLayout
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:layout_marginLeft="0dp"
  163. android:orientation="horizontal"
  164. android:padding="0dp">
  165.  
  166. <TextView
  167. android:layout_width="100dp"
  168. android:layout_height="wrap_content"
  169. android:text="Room"
  170. android:textColor="@color/white"
  171. android:textSize="14sp" />
  172.  
  173. <TextView
  174. android:id="@+id/tv_room"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:layout_weight="1"
  178. android:text="ICU 2nd Floor"
  179. android:textColor="@android:color/white"
  180. android:textSize="13sp"
  181. android:textStyle="bold" />
  182. </LinearLayout>
  183. </LinearLayout>
  184.  
  185.  
  186.  
  187. </LinearLayout>
  188.  
  189.  
  190. <LinearLayout
  191. android:padding="16dp"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:orientation="vertical">
  195.  
  196. <TextView
  197. android:textSize="14sp"
  198. android:textColor="@android:color/black"
  199. android:text="Issue"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content" />
  202. <TextView
  203. android:id="@+id/tv_issue"
  204. android:layout_marginTop="2dp"
  205. android:textSize="12sp"
  206. android:textColor="@color/black60"
  207. android:text="@string/lorem"
  208. android:layout_width="wrap_content"
  209. android:layout_height="wrap_content" />
  210.  
  211.  
  212. </LinearLayout>
  213.  
  214. <android.support.v7.widget.RecyclerView
  215. android:visibility="gone"
  216. android:id="@+id/recycler_view"
  217. android:layout_width="match_parent"
  218. android:layout_height="wrap_content"/>
  219.  
  220. <View
  221. android:layout_marginTop="16dp"
  222. android:layout_width="match_parent"
  223. android:layout_height="1dp"
  224. android:background="#CCCCCC"/>
  225.  
  226.  
  227. <LinearLayout
  228. android:padding="16dp"
  229. android:layout_width="match_parent"
  230. android:layout_height="wrap_content"
  231. android:orientation="vertical">
  232.  
  233. <TextView
  234. android:textSize="14sp"
  235. android:textColor="@android:color/black"
  236. android:text="Solution"
  237. android:layout_width="wrap_content"
  238. android:layout_height="wrap_content" />
  239. <TextView
  240. android:id="@+id/tv_solution"
  241. android:layout_marginTop="2dp"
  242. android:textSize="12sp"
  243. android:textColor="@color/black60"
  244. android:text="@string/lorem"
  245. android:layout_width="wrap_content"
  246. android:layout_height="wrap_content" />
  247. </LinearLayout>
  248.  
  249.  
  250. <LinearLayout
  251. android:id="@+id/container_downtime"
  252. android:layout_width="match_parent"
  253. android:layout_height="wrap_content"
  254. android:orientation="vertical">
  255. <View
  256. android:layout_width="match_parent"
  257. android:layout_height="1dp"
  258. android:background="#CCCCCC"/>
  259. <LinearLayout
  260. android:padding="16dp"
  261. android:layout_width="match_parent"
  262. android:layout_height="wrap_content"
  263. android:orientation="vertical">
  264.  
  265. <TextView
  266. android:textSize="14sp"
  267. android:textColor="@android:color/black"
  268. android:text="Asset Status"
  269. android:layout_width="wrap_content"
  270. android:layout_height="wrap_content" />
  271. <TextView
  272. android:id="@+id/tv_downtime"
  273. android:layout_marginTop="2dp"
  274. android:textSize="12sp"
  275. android:textColor="@color/black60"
  276. android:text="Total Down"
  277. android:layout_width="wrap_content"
  278. android:layout_height="wrap_content" />
  279. </LinearLayout>
  280. </LinearLayout>
  281.  
  282. <View
  283. android:layout_width="match_parent"
  284. android:layout_height="6dp"
  285. android:background="#CCCCCC"/>
  286.  
  287.  
  288. <LinearLayout
  289. android:id="@+id/container_assigned"
  290. android:padding="16dp"
  291. android:orientation="vertical"
  292. android:layout_width="match_parent"
  293. android:layout_height="wrap_content">
  294.  
  295. <TextView
  296. android:id="@+id/tv_title_assigned"
  297. android:textSize="14sp"
  298. android:textColor="@android:color/black"
  299. android:text="Reporter"
  300. android:layout_width="wrap_content"
  301. android:layout_height="wrap_content" />
  302.  
  303. <LinearLayout
  304. android:gravity="center_vertical"
  305. android:layout_width="match_parent"
  306. android:layout_height="wrap_content"
  307. android:orientation="horizontal">
  308. <com.makeramen.roundedimageview.RoundedImageView
  309. android:id="@+id/img_assigned"
  310. android:layout_width="40dp"
  311. android:layout_height="40dp"
  312. android:scaleType="centerCrop"
  313. android:src="@drawable/bg_left"
  314. app:riv_oval="true"/>
  315. <LinearLayout
  316. android:layout_weight="1"
  317. android:padding="10dp"
  318. android:layout_width="0dp"
  319. android:layout_height="wrap_content"
  320. android:orientation="vertical">
  321.  
  322. <TextView
  323. android:id="@+id/tv_assigned_name"
  324. android:textSize="14sp"
  325. android:textColor="@android:color/black"
  326. android:text="David Gilmour"
  327. android:layout_width="wrap_content"
  328. android:layout_height="wrap_content" />
  329.  
  330. <TextView
  331. android:id="@+id/tv_assigned_id"
  332. android:textSize="12sp"
  333. android:textColor="@color/half_black"
  334. android:text="28912381823718"
  335. android:layout_width="wrap_content"
  336. android:layout_height="wrap_content" />
  337. </LinearLayout>
  338.  
  339. <Button
  340. android:id="@+id/btn_call"
  341. android:textAllCaps="false"
  342. android:textColor="@android:color/white"
  343. android:background="@color/cyan"
  344. android:text="Call"
  345. android:textSize="12sp"
  346. android:layout_width="60dp"
  347. android:layout_height="35dp" />
  348.  
  349. </LinearLayout>
  350.  
  351. </LinearLayout>
  352.  
  353. <LinearLayout
  354. android:id="@+id/container_unassigned"
  355. android:orientation="vertical"
  356. android:layout_width="match_parent"
  357. android:layout_height="wrap_content">
  358.  
  359. <TextView
  360. android:padding="16dp"
  361. android:gravity="center"
  362. android:textSize="12sp"
  363. android:textColor="@color/red"
  364. android:layout_width="match_parent"
  365. android:layout_height="wrap_content"
  366. android:text="Waiting Technician Assigned"/>
  367.  
  368. </LinearLayout>
  369.  
  370.  
  371. <View
  372. android:layout_width="match_parent"
  373. android:layout_height="6dp"
  374. android:background="#CCCCCC"/>
  375.  
  376. <LinearLayout
  377. android:padding="0dp"
  378. android:layout_marginTop="10dp"
  379. android:layout_width="match_parent"
  380. android:layout_height="wrap_content"
  381. android:orientation="vertical">
  382.  
  383. <TextView
  384. android:textSize="13sp"
  385. android:paddingLeft="15dp"
  386. android:textColor="@android:color/black"
  387. android:text="Status"
  388. android:layout_width="wrap_content"
  389. android:layout_height="wrap_content" />
  390. <LinearLayout
  391. android:layout_width="match_parent"
  392. android:layout_height="wrap_content"
  393. android:gravity="bottom"
  394. android:orientation="horizontal">
  395.  
  396. <LinearLayout
  397. android:layout_width="0dp"
  398. android:layout_height="wrap_content"
  399. android:layout_weight="1"
  400. android:layout_marginBottom="20dp"
  401. android:gravity="center_vertical"
  402. android:orientation="horizontal">
  403.  
  404. <TextView
  405. android:id="@+id/tv_status_date"
  406. android:layout_width="wrap_content"
  407. android:layout_height="wrap_content"
  408. android:paddingLeft="15dp"
  409. android:text="Last update : Today, 16:00"
  410. android:textColor="@color/half_black"
  411. android:textSize="12sp" />
  412.  
  413. </LinearLayout>
  414.  
  415.  
  416. <TextView
  417. android:id="@+id/tv_status"
  418. android:layout_marginBottom="10dp"
  419. android:layout_width="wrap_content"
  420. android:layout_height="27dp"
  421. android:background="@drawable/bg_date"
  422. android:paddingStart="6dp"
  423. android:paddingTop="10dp"
  424. android:paddingEnd="6dp"
  425. android:paddingBottom="0dp"
  426. android:textStyle="bold"
  427. android:text="Done"
  428. android:textSize="12sp"
  429. android:textColor="@color/cyan_600"/>
  430.  
  431. </LinearLayout>
  432.  
  433. </LinearLayout>
  434.  
  435.  
  436. <View
  437. android:layout_width="match_parent"
  438. android:layout_height="1dp"
  439. android:background="#CCCCCC"/>
  440.  
  441. <Button
  442. android:id="@+id/btn_set_uptime"
  443. android:layout_marginStart="56dp"
  444. android:layout_marginEnd="56dp"
  445. android:layout_marginTop="10dp"
  446. android:textColor="@android:color/white"
  447. android:background="@drawable/btn_cyan"
  448. android:textAllCaps="false"
  449. android:textSize="14sp"
  450. android:text="Asset Condition"
  451. android:layout_width="match_parent"
  452. android:layout_height="40dp" />
  453.  
  454. <Button
  455. android:layout_marginTop="16dp"
  456. android:id="@+id/btn_status"
  457. android:layout_marginStart="56dp"
  458. android:layout_marginEnd="56dp"
  459. android:layout_marginBottom="10dp"
  460. android:textColor="@android:color/white"
  461. android:background="@drawable/btn_cyan"
  462. android:textAllCaps="false"
  463. android:textSize="14sp"
  464. android:text="Complete"
  465. android:layout_width="match_parent"
  466. android:layout_height="40dp" />
  467.  
  468. <View
  469. android:layout_width="match_parent"
  470. android:layout_height="1dp"
  471. android:background="#CCCCCC"/>
  472.  
  473. <!--<TextView-->
  474. <!--android:id="@+id/btn_timeline"-->
  475. <!--android:padding="16dp"-->
  476. <!--android:drawableEnd="@drawable/dropdownblack"-->
  477. <!--android:textSize="14sp"-->
  478. <!--android:textColor="@android:color/black"-->
  479. <!--android:text="Timeline"-->
  480. <!--android:layout_width="match_parent"-->
  481. <!--android:layout_height="wrap_content" />-->
  482.  
  483. <View
  484. android:layout_width="match_parent"
  485. android:layout_height="1dp"
  486. android:background="#CCCCCC"/>
  487.  
  488. <LinearLayout
  489. android:id="@+id/container_post_timeline"
  490. android:gravity="center_vertical"
  491. android:orientation="horizontal"
  492. android:background="@color/grey_200"
  493. android:layout_width="match_parent"
  494. android:layout_height="wrap_content">
  495.  
  496. <!--<ImageView-->
  497. <!--android:id="@+id/btn_camera"-->
  498. <!--android:padding="16dp"-->
  499. <!--android:src="@drawable/camera104"-->
  500. <!--android:layout_width="wrap_content"-->
  501. <!--android:layout_height="wrap_content" />-->
  502. <LinearLayout
  503. android:layout_width="match_parent"
  504. android:layout_height="wrap_content"
  505. android:layout_marginBottom="10dp"
  506. android:layout_marginTop="10dp"
  507. android:background="@color/grey_200">
  508. <LinearLayout
  509. android:layout_width="330dp"
  510. android:layout_marginStart="15dp"
  511. android:layout_height="wrap_content"
  512. android:layout_marginTop="10dp"
  513. android:background="@android:color/white"
  514. android:gravity="center_vertical"
  515. android:orientation="horizontal">
  516.  
  517. <EditText
  518. android:id="@+id/ed_timeline"
  519. android:inputType="text"
  520. android:imeOptions="actionDone"
  521. android:layout_weight="1"
  522. android:textSize="14sp"
  523. android:paddingLeft="10dp"
  524. android:background="@android:color/transparent"
  525. android:textColor="@android:color/black"
  526. android:hint="Type message..."
  527. android:layout_width="0dp"
  528. android:layout_height="match_parent" />
  529. <ImageView
  530. android:id="@+id/btn_camera"
  531. android:padding="7dp"
  532. android:src="@drawable/ic_camera_alt_black_24dp"
  533. android:layout_width="wrap_content"
  534. android:layout_height="wrap_content" />
  535. <Button
  536. android:id="@+id/btn_post"
  537. android:layout_marginStart="9dp"
  538. android:paddingStart="10dp"
  539. android:layout_marginEnd="0dp"
  540. android:textColor="@android:color/white"
  541. android:drawableStart="@drawable/ic_send_white"
  542. android:background="@drawable/btn_send_cyan"
  543. android:layout_width="45dp"
  544. android:layout_height="match_parent" />
  545. </LinearLayout>
  546. </LinearLayout>
  547.  
  548.  
  549.  
  550. </LinearLayout>
  551. <android.support.v7.widget.RecyclerView
  552. android:background="@color/grey_200"
  553. android:paddingTop="5dp"
  554. android:id="@+id/recycler_view_timeline"
  555. android:layout_width="match_parent"
  556. android:layout_height="match_parent"/>
  557.  
  558.  
  559. </LinearLayout>
  560.  
  561. </android.support.v4.widget.NestedScrollView>
  562. </FrameLayout>
  563.  
  564. </FrameLayout>
  565.  
  566. <!--tampilan image urgency-->
  567.  
  568. <LinearLayout
  569. android:layout_width="wrap_content"
  570. android:layout_height="wrap_content"
  571. android:layout_alignParentEnd="true"
  572. android:layout_alignParentBottom="true"
  573. android:layout_marginEnd="18dp"
  574. android:layout_marginBottom="0dp"
  575. android:gravity="center"
  576. android:orientation="vertical"
  577. android:paddingTop="20dp"
  578. app:layout_anchor="@+id/rv_viewpager"
  579. app:layout_anchorGravity="bottom|right|end">
  580.  
  581. <ImageView
  582. android:id="@+id/img_urgency"
  583. android:layout_width="wrap_content"
  584. android:layout_height="wrap_content"
  585. android:src="@drawable/urg"
  586. app:layout_anchor="@+id/rv_viewpager"
  587. app:layout_anchorGravity="bottom|end" />
  588.  
  589. <TextView
  590. android:id="@+id/tv_urgency"
  591. android:layout_width="wrap_content"
  592. android:layout_height="wrap_content"
  593. android:text="Urgency"
  594. android:textColor="@color/white60"
  595. android:textSize="12sp" />
  596. </LinearLayout>
  597.  
  598.  
  599. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement