activity_index.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/background_color_first"
  7. android:focusable="true"
  8. android:focusableInTouchMode="true"
  9. tools:ignore="MissingDefaultResource">
  10. <com.scwang.smartrefresh.layout.SmartRefreshLayout
  11. android:visibility="gone"
  12. android:id="@+id/SmartRefreshLayout_id"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:layout_below="@id/include_menuactionbar"
  16. android:layout_centerInParent="true">
  17. <android.support.v4.widget.NestedScrollView
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent">
  20. </android.support.v4.widget.NestedScrollView>
  21. <com.scwang.smartrefresh.layout.footer.ClassicsFooter
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. app:srlAccentColor="@android:color/darker_gray" />
  25. <com.scwang.smartrefresh.layout.header.ClassicsHeader
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. app:srlAccentColor="@android:color/darker_gray" />
  29. </com.scwang.smartrefresh.layout.SmartRefreshLayout>
  30. <LinearLayout
  31. android:visibility="gone"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@id/include_menuactionbar"
  35. android:layout_centerInParent="true"
  36. android:orientation="vertical">
  37. <LinearLayout
  38. android:visibility="gone"
  39. android:layout_width="match_parent"
  40. android:layout_height="20dp"
  41. android:layout_marginTop="10dp"
  42. android:paddingLeft="20dp"
  43. android:paddingRight="20dp">
  44. <TextView
  45. style="@style/captiontext"
  46. android:layout_width="wrap_content"
  47. android:text="工单数:" />
  48. <TextView
  49. android:id="@+id/index_unfinish_number"
  50. style="@style/valuetext"
  51. android:layout_width="0dp"
  52. android:layout_weight="1" />
  53. <TextView
  54. android:layout_marginLeft="@dimen/textsize_20"
  55. style="@style/captiontext"
  56. android:text="报废数: " />
  57. <TextView
  58. android:id="@+id/index_scrap_number"
  59. style="@style/valuetext"
  60. android:layout_width="0dp"
  61. android:layout_weight="1" />
  62. <View
  63. android:layout_width="20dp"
  64. android:layout_height="wrap_content"/>
  65. </LinearLayout>
  66. <LinearLayout
  67. android:visibility="gone"
  68. android:layout_width="match_parent"
  69. android:layout_height="20dp"
  70. android:layout_marginTop="10dp"
  71. android:paddingLeft="20dp"
  72. android:paddingRight="20dp">
  73. <TextView
  74. style="@style/captiontext"
  75. android:layout_width="wrap_content"
  76. android:text="报工数:" />
  77. <TextView
  78. android:id="@+id/index_qty"
  79. style="@style/valuetext"
  80. android:layout_width="0dp"
  81. android:layout_weight="1" />
  82. </LinearLayout>
  83. <TextView
  84. android:visibility="gone"
  85. android:id="@+id/tv_metrimal_name"
  86. android:layout_width="match_parent"
  87. android:layout_height="match_parent"
  88. android:padding="15dp"
  89. android:layout_marginLeft="5dp"
  90. tools:text="K002雾化棒半成品_金桔柠檬0mg"/>
  91. <com.uas.esop.view.MyGridView
  92. android:id="@+id/grid_menu"
  93. style="@style/MenuGridViewStyle"
  94. android:numColumns="3" />
  95. <View
  96. android:visibility="gone"
  97. android:layout_gravity="center"
  98. android:layout_width="match_parent"
  99. android:layout_height="100dp">
  100. </View>
  101. <Button
  102. android:visibility="gone"
  103. android:id="@+id/btn_getbanner"
  104. android:text="获取Image"
  105. android:layout_marginTop="@dimen/dp_10"
  106. android:layout_marginLeft="@dimen/textsize_20"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:background="@drawable/bg_button">
  110. </Button>
  111. </LinearLayout>
  112. <ScrollView
  113. android:layout_below="@id/include_menuactionbar"
  114. android:layout_centerInParent="true"
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent">
  117. <RelativeLayout
  118. android:id="@+id/rela_dimss"
  119. android:layout_width="match_parent"
  120. android:layout_height="match_parent">
  121. <LinearLayout
  122. android:id="@+id/lineone"
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. android:orientation="vertical">
  126. <RelativeLayout
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content">
  129. <LinearLayout
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:gravity="center_vertical">
  133. <LinearLayout
  134. android:layout_width="0dp"
  135. android:layout_height="wrap_content"
  136. android:layout_weight="1"
  137. android:orientation="vertical"
  138. android:layout_marginLeft="12dp"
  139. android:padding="8dp">
  140. <LinearLayout
  141. android:layout_gravity="center"
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:gravity="center_vertical"
  145. android:orientation="horizontal">
  146. <ImageView
  147. android:layout_width="30dp"
  148. android:layout_height="30dp"
  149. android:src="@mipmap/infoimage">
  150. </ImageView>
  151. <TextView
  152. android:visibility="gone"
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"
  155. android:text="账号:"
  156. android:textColor="#333333"
  157. android:textSize="@dimen/textsize_20" />
  158. <TextView
  159. android:id="@+id/em_name_tv"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:textSize="@dimen/textsize_20"
  163. tools:text="吴雨潇" />
  164. <TextView
  165. android:visibility="gone"
  166. android:id="@+id/em_code_tv"
  167. android:layout_width="wrap_content"
  168. android:layout_height="wrap_content"
  169. android:layout_marginLeft="10dp"
  170. android:textColor="#333333"
  171. android:textSize="@dimen/textsize_20" />
  172. </LinearLayout>
  173. </LinearLayout>
  174. </LinearLayout>
  175. <com.uas.esop.view.SwitchView
  176. android:id="@+id/sound_monitor_Vibration_sv"
  177. android:layout_width="40dp"
  178. android:layout_height="25dp"
  179. android:layout_marginLeft="@dimen/textsize_20"
  180. android:layout_centerVertical="true"/>
  181. </RelativeLayout>
  182. </LinearLayout>
  183. <LinearLayout
  184. android:id="@+id/linetwo"
  185. android:orientation="horizontal"
  186. android:layout_width="match_parent"
  187. android:layout_height="wrap_content"
  188. android:layout_below="@id/lineone"
  189. android:layout_centerInParent="true">
  190. <LinearLayout
  191. android:layout_marginLeft="@dimen/textsize_20"
  192. android:layout_width="0dp"
  193. android:layout_height="wrap_content"
  194. android:layout_weight="1"
  195. android:orientation="horizontal">
  196. <LinearLayout
  197. android:layout_width="match_parent"
  198. android:layout_height="wrap_content"
  199. android:layout_marginTop="4dp"
  200. android:gravity="center_vertical">
  201. <LinearLayout
  202. android:layout_marginLeft="@dimen/dp_10"
  203. android:orientation="vertical"
  204. android:layout_width="0dp"
  205. android:layout_weight="1"
  206. android:layout_height="wrap_content">
  207. <com.uas.esop.view.ClearableEditText
  208. android:id="@+id/index_position_resource"
  209. style="@style/EditTextLineStyle"
  210. android:layout_width="match_parent"
  211. android:hint="请输入岗位资源"
  212. android:imeOptions="actionSend" />
  213. </LinearLayout>
  214. <TextView
  215. android:visibility="gone"
  216. android:id="@+id/scname_tv"
  217. style="@style/valuetext"
  218. android:singleLine="true"
  219. android:ellipsize="end"
  220. android:layout_width="wrap_content"
  221. android:paddingLeft="@dimen/textsize_20" />
  222. </LinearLayout>
  223. </LinearLayout>
  224. <ImageView
  225. android:layout_gravity="center"
  226. android:id="@+id/index_edit"
  227. android:layout_width="20dp"
  228. android:layout_height="24dp"
  229. android:layout_marginLeft="@dimen/dp_10"
  230. android:src="@mipmap/magnifyingglass"
  231. android:layout_marginRight="@dimen/textsize_20"/>
  232. </LinearLayout>
  233. <LinearLayout
  234. android:id="@+id/linethree"
  235. android:layout_marginTop="@dimen/dp_10"
  236. android:orientation="horizontal"
  237. android:layout_width="match_parent"
  238. android:layout_height="wrap_content"
  239. android:layout_below="@id/linetwo"
  240. android:layout_centerInParent="true"
  241. android:paddingLeft="20dp">
  242. <LinearLayout
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:layout_marginTop="4dp"
  246. android:orientation="horizontal"
  247. android:layout_weight="1">
  248. <LinearLayout
  249. android:layout_marginLeft="@dimen/dp_10"
  250. android:orientation="vertical"
  251. android:layout_width="0dp"
  252. android:layout_weight="1"
  253. android:layout_height="wrap_content">
  254. <com.uas.esop.view.ClearableEditText
  255. android:id="@+id/index_cur_doc"
  256. style="@style/EditTextLineStyle"
  257. android:layout_width="match_parent"
  258. android:hint="请输入工单号"
  259. android:imeOptions="actionSend" />
  260. </LinearLayout>
  261. </LinearLayout>
  262. <ImageView
  263. android:layout_gravity="center"
  264. android:id="@+id/index_cur_doc_imag"
  265. android:layout_width="20dp"
  266. android:layout_height="24dp"
  267. android:layout_marginRight="@dimen/textsize_20"
  268. android:layout_marginLeft="@dimen/dp_10"
  269. android:src="@mipmap/magnifyingglass" />
  270. <LinearLayout
  271. android:visibility="gone"
  272. android:layout_width="0dp"
  273. android:layout_height="wrap_content"
  274. android:layout_marginTop="4dp">
  275. <TextView
  276. android:visibility="gone"
  277. style="@style/captiontext"
  278. android:layout_width="wrap_content"
  279. android:text="工序编号:" />
  280. <TextView
  281. android:visibility="gone"
  282. android:id="@+id/tv_pihao"
  283. style="@style/valuetext" />
  284. </LinearLayout>
  285. </LinearLayout>
  286. <LinearLayout
  287. android:id="@+id/linefour"
  288. android:orientation="horizontal"
  289. android:layout_width="match_parent"
  290. android:layout_height="wrap_content"
  291. android:layout_below="@id/linethree"
  292. android:layout_centerInParent="true"
  293. android:paddingLeft="20dp">
  294. <LinearLayout
  295. android:layout_width="match_parent"
  296. android:layout_height="wrap_content"
  297. android:layout_marginTop="@dimen/dp_10"
  298. android:orientation="horizontal"
  299. android:layout_weight="1">
  300. <LinearLayout
  301. android:layout_marginLeft="@dimen/dp_10"
  302. android:orientation="vertical"
  303. android:layout_width="0dp"
  304. android:layout_weight="1"
  305. android:layout_height="wrap_content">
  306. <com.uas.esop.view.ClearableEditText
  307. android:id="@+id/index_prodcode"
  308. style="@style/EditTextLineStyle"
  309. android:layout_width="match_parent"
  310. android:hint="请输入产品编号"
  311. android:imeOptions="actionSend" />
  312. </LinearLayout>
  313. </LinearLayout>
  314. <ImageView
  315. android:visibility="gone"
  316. android:layout_gravity="center"
  317. android:id="@+id/index_prodcode_imag"
  318. android:layout_width="20dp"
  319. android:layout_height="24dp"
  320. android:layout_marginRight="@dimen/dp_10"
  321. android:src="@mipmap/magnifyingglass" />
  322. <View
  323. android:layout_gravity="center"
  324. android:layout_width="20dp"
  325. android:layout_height="24dp"
  326. android:layout_marginRight="@dimen/textsize_20"
  327. android:layout_marginLeft="@dimen/dp_10"/>
  328. </LinearLayout>
  329. <TextView
  330. android:id="@+id/btn_get"
  331. android:text="播放SOP"
  332. android:layout_marginLeft="20dp"
  333. android:layout_marginRight="20dp"
  334. android:layout_width="match_parent"
  335. android:layout_height="50dp"
  336. android:layout_below="@id/linethree"
  337. android:gravity="center"
  338. android:layout_centerInParent="true"
  339. android:layout_marginTop="100dp"
  340. android:background="@drawable/bg_button">
  341. </TextView>
  342. <TextView
  343. android:visibility="gone"
  344. android:id="@+id/btn_sengMessage"
  345. android:text="tcp发送消息"
  346. android:layout_marginLeft="20dp"
  347. android:layout_marginRight="20dp"
  348. android:layout_width="match_parent"
  349. android:layout_height="50dp"
  350. android:layout_below="@id/btn_get"
  351. android:gravity="center"
  352. android:layout_centerInParent="true"
  353. android:layout_marginTop="@dimen/textsize_20"
  354. android:background="@drawable/bg_button">
  355. </TextView>
  356. <TextView
  357. android:visibility="gone"
  358. android:id="@+id/tcp_text"
  359. android:text="tcp服务端发送"
  360. android:layout_marginLeft="20dp"
  361. android:layout_marginRight="20dp"
  362. android:layout_width="match_parent"
  363. android:layout_height="wrap_content"
  364. android:layout_below="@id/btn_sengMessage"
  365. android:gravity="center"
  366. android:layout_centerInParent="true"
  367. android:layout_marginTop="100dp"
  368. android:layout_marginBottom="@dimen/textsize_20">
  369. </TextView>
  370. <android.support.v7.widget.RecyclerView
  371. android:id="@+id/rv_data"
  372. android:visibility="gone"
  373. android:background="@color/white"
  374. android:layout_width="match_parent"
  375. android:layout_height="wrap_content"
  376. android:layout_below="@id/linetwo"
  377. android:layout_centerInParent="true">
  378. </android.support.v7.widget.RecyclerView>
  379. <android.support.v7.widget.RecyclerView
  380. android:id="@+id/rv_datawork"
  381. android:visibility="gone"
  382. android:background="@color/white"
  383. android:layout_width="match_parent"
  384. android:layout_height="wrap_content"
  385. android:layout_below="@id/linethree"
  386. android:layout_centerInParent="true">
  387. </android.support.v7.widget.RecyclerView>
  388. </RelativeLayout>
  389. </ScrollView>
  390. <include
  391. android:id="@+id/include_menuactionbar"
  392. layout="@layout/index_actionbar" />
  393. </RelativeLayout>