fragment_product_check.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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:orientation="vertical"
  7. android:padding="16dp">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:background="@drawable/bg_line_edittext">
  12. <com.uas.pda_smart_sa.view.ClearableEditText
  13. android:id="@+id/product_check_boxcode_et"
  14. style="@style/EditTextStyle"
  15. android:layout_weight="1"
  16. android:background="@null"
  17. android:focusable="true"
  18. android:focusableInTouchMode="true"
  19. android:hint="请采集箱号"
  20. android:imeOptions="actionSend"
  21. android:textColor="@color/black" />
  22. <ImageView
  23. android:id="@+id/product_check_scan_iv"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_gravity="center"
  27. android:layout_marginRight="10dp"
  28. android:clickable="false"
  29. android:src="@drawable/ic_edittext_scan" />
  30. </LinearLayout>
  31. <LinearLayout
  32. android:id="@+id/product_check_operator_ll"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:orientation="vertical"
  36. android:visibility="gone">
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="0dp"
  40. android:layout_weight="1"
  41. android:orientation="vertical">
  42. <android.support.v7.widget.RecyclerView
  43. android:id="@+id/product_check_result_rv"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:layout_marginTop="16dp" />
  47. <LinearLayout
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:padding="4dp">
  51. <TextView
  52. style="@style/CaptionText"
  53. android:text="实际抽样数:" />
  54. <com.uas.pda_smart_sa.view.ClearableEditText
  55. android:id="@+id/product_check_realnum_et"
  56. style="@style/EditTextLineStyle"
  57. android:inputType="number"
  58. android:minHeight="32dp"
  59. tools:text="value" />
  60. </LinearLayout>
  61. <LinearLayout
  62. android:id="@+id/product_check_spotcheck_ll"
  63. android:layout_width="match_parent"
  64. android:layout_height="match_parent"
  65. android:orientation="vertical"
  66. android:visibility="gone">
  67. <TextView
  68. style="@style/CaptionText"
  69. android:layout_marginTop="8dp"
  70. android:padding="4dp"
  71. android:text="抽检项目"
  72. android:textColor="@color/black" />
  73. <LinearLayout
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:layout_marginTop="10dp">
  77. <TextView
  78. android:layout_width="0dp"
  79. android:layout_height="wrap_content"
  80. android:layout_weight="1"
  81. android:background="@drawable/shape_table_head_left"
  82. android:gravity="center"
  83. android:maxLines="1"
  84. android:padding="4dp"
  85. android:singleLine="true"
  86. android:text="抽检项目"
  87. android:textColor="@color/black" />
  88. <TextView
  89. android:layout_width="0dp"
  90. android:layout_height="wrap_content"
  91. android:layout_weight="1"
  92. android:background="@drawable/shape_table_head_left"
  93. android:gravity="center"
  94. android:maxLines="1"
  95. android:padding="4dp"
  96. android:singleLine="true"
  97. android:text="抽检数"
  98. android:textColor="@color/black" />
  99. <TextView
  100. android:layout_width="0dp"
  101. android:layout_height="wrap_content"
  102. android:layout_weight="1"
  103. android:background="@drawable/shape_table_head_right"
  104. android:gravity="center"
  105. android:maxLines="1"
  106. android:padding="4dp"
  107. android:singleLine="true"
  108. android:text="不合格数"
  109. android:textColor="@color/black" />
  110. </LinearLayout>
  111. <android.support.v7.widget.RecyclerView
  112. android:id="@+id/product_check_spotcheck_rv"
  113. android:layout_width="match_parent"
  114. android:layout_height="match_parent" />
  115. </LinearLayout>
  116. </LinearLayout>
  117. <LinearLayout
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:orientation="horizontal"
  121. android:padding="10dp">
  122. <TextView
  123. android:id="@+id/product_check_qualified_tv"
  124. android:layout_width="0dp"
  125. android:layout_height="wrap_content"
  126. android:layout_weight="1"
  127. android:background="@drawable/selector_confirm_bg"
  128. android:gravity="center"
  129. android:padding="10dp"
  130. android:text="合格"
  131. android:textColor="@color/white" />
  132. <TextView
  133. android:id="@+id/product_check_unqualified_tv"
  134. android:layout_width="0dp"
  135. android:layout_height="wrap_content"
  136. android:layout_marginLeft="24dp"
  137. android:layout_weight="1"
  138. android:background="@drawable/selector_cancel_bg"
  139. android:gravity="center"
  140. android:padding="10dp"
  141. android:text="不合格"
  142. android:textColor="@color/selector_cancel_text_color" />
  143. </LinearLayout>
  144. </LinearLayout>
  145. </LinearLayout>