item_comprehensive_cont.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical">
  6. <RelativeLayout style="@style/defectRelView">
  7. <TextView
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:text="隐患项"
  11. android:textColor="@color/black" />
  12. <TextView
  13. android:id="@+id/tvNext"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_alignParentRight="true"
  17. android:textColor="@color/purple_fa"/>
  18. </RelativeLayout>
  19. <LinearLayout
  20. android:id="@+id/linOne"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:orientation="vertical"
  24. android:paddingLeft="10dp"
  25. android:visibility="gone">
  26. <View
  27. android:layout_width="match_parent"
  28. android:layout_height="0.2dp"
  29. android:background="@color/purple_a2a2a2a2" />
  30. <RelativeLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="35dp"
  33. android:gravity="center_vertical">
  34. <TextView
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="隐患等级"
  38. android:textColor="@color/black" />
  39. <TextView
  40. android:id="@+id/tvHazardLevel"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_alignParentRight="true"
  44. android:textColor="@color/black" />
  45. </RelativeLayout>
  46. <View
  47. android:layout_width="match_parent"
  48. android:layout_height="0.2dp"
  49. android:background="@color/purple_a2a2a2a2" />
  50. <TextView
  51. android:layout_width="match_parent"
  52. android:layout_height="35dp"
  53. android:gravity="center_vertical"
  54. android:text="检查项目"
  55. android:textColor="@color/black" />
  56. <TextView
  57. android:id="@+id/tvHazardCheckProStr"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:background="@drawable/ic_bgm_yin_huan" />
  61. <TextView
  62. android:layout_width="match_parent"
  63. android:layout_height="35dp"
  64. android:gravity="center_vertical"
  65. android:text="检查要点"
  66. android:textColor="@color/black" />
  67. <TextView
  68. android:id="@+id/tvHazardCheckPoint"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:background="@drawable/ic_bgm_yin_huan" />
  72. <TextView
  73. android:layout_width="match_parent"
  74. android:layout_height="35dp"
  75. android:gravity="center_vertical"
  76. android:text="隐患描述"
  77. android:textColor="@color/black" />
  78. <TextView
  79. android:id="@+id/tvHazardDescribe"
  80. android:layout_width="match_parent"
  81. android:layout_height="wrap_content" />
  82. <TextView
  83. android:layout_width="match_parent"
  84. android:layout_height="35dp"
  85. android:gravity="center_vertical"
  86. android:text="隐患照片"
  87. android:textColor="@color/black" />
  88. <androidx.recyclerview.widget.RecyclerView
  89. android:id="@+id/popView"
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content" />
  92. </LinearLayout>
  93. <RelativeLayout
  94. android:id="@+id/relAway"
  95. android:layout_width="match_parent"
  96. android:layout_height="30dp">
  97. <TextView
  98. android:id="@+id/tv_away"
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:layout_centerHorizontal="true"
  102. android:layout_centerVertical="true"
  103. android:gravity="center"
  104. android:text="展开"
  105. android:textColor="#A2A2A2" />
  106. <ImageView
  107. android:id="@+id/imgFre"
  108. android:layout_width="20dp"
  109. android:layout_height="20dp"
  110. android:layout_centerVertical="true"
  111. android:layout_toRightOf="@+id/tv_away"
  112. android:background="@mipmap/icon_xia" />
  113. </RelativeLayout>
  114. <RelativeLayout
  115. android:id="@+id/relAwayFla"
  116. android:layout_width="match_parent"
  117. android:layout_height="30dp"
  118. android:visibility="gone">
  119. <TextView
  120. android:id="@+id/tv_away_two"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_centerHorizontal="true"
  124. android:layout_centerVertical="true"
  125. android:gravity="center"
  126. android:text="收起"
  127. android:textColor="#A2A2A2" />
  128. <ImageView
  129. android:layout_width="20dp"
  130. android:layout_height="20dp"
  131. android:layout_centerVertical="true"
  132. android:layout_toRightOf="@+id/tv_away_two"
  133. android:background="@mipmap/icon_shang" />
  134. </RelativeLayout>
  135. </LinearLayout>