You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_coffee_scale.xml 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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="match_parent"
  5. android:orientation="vertical">
  6. <ScrollView
  7. android:layout_width="match_parent"
  8. android:layout_height="0dp"
  9. android:layout_weight="1">
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:orientation="vertical">
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_margin="5dp"
  18. android:orientation="horizontal">
  19. <Button
  20. android:id="@+id/btn_clear"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="清空" />
  24. <Button
  25. android:id="@+id/btnPause"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:text="暂停" />
  29. </LinearLayout>
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_margin="5dp"
  34. android:orientation="horizontal">
  35. <Button
  36. android:id="@+id/btn_zero"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="去皮功能(归零功能)" />
  40. </LinearLayout>
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_margin="5dp"
  45. android:orientation="horizontal">
  46. <Button
  47. android:id="@+id/btn_set_weight_unit"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="APP下发重量单位" />
  51. </LinearLayout>
  52. <RadioGroup
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal">
  56. <RadioButton
  57. android:id="@+id/rb_kg"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:checked="true"
  61. android:text="kg" />
  62. <RadioButton
  63. android:id="@+id/rb_jin"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="斤" />
  67. <RadioButton
  68. android:id="@+id/rb_lb_oz"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:text="lb:oz" />
  72. <RadioButton
  73. android:id="@+id/rb_oz"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="oz" />
  77. <RadioButton
  78. android:id="@+id/rb_st_lb"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:text="st:lb" />
  82. <RadioButton
  83. android:id="@+id/rb_g"
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:text="g" />
  87. <RadioButton
  88. android:id="@+id/rb_lb"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:text="lb" />
  92. </RadioGroup>
  93. <LinearLayout
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_margin="5dp"
  97. android:orientation="horizontal">
  98. <Button
  99. android:id="@+id/btn_set_temp_unit"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:text="APP下发温度单位" />
  103. </LinearLayout>
  104. <RadioGroup
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:orientation="horizontal">
  108. <RadioButton
  109. android:id="@+id/rb_c"
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:checked="true"
  113. android:text="℃" />
  114. <RadioButton
  115. android:id="@+id/rb_f"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:text="℉" />
  119. </RadioGroup>
  120. <LinearLayout
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:layout_margin="5dp"
  124. android:orientation="horizontal">
  125. <Button
  126. android:id="@+id/btn_set_auto_shutdown"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:text="APP下发自动关机" />
  130. <EditText
  131. android:id="@+id/et_auto_shutdown"
  132. android:layout_width="0dp"
  133. android:layout_height="wrap_content"
  134. android:layout_weight="1"
  135. android:inputType="number"
  136. android:text="60" />
  137. <TextView
  138. android:layout_width="0dp"
  139. android:layout_height="wrap_content"
  140. android:layout_weight="3"
  141. android:text="(秒)" />
  142. </LinearLayout>
  143. <LinearLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:layout_margin="5dp"
  147. android:orientation="horizontal">
  148. <Button
  149. android:id="@+id/btn_set_timing"
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:text="计时功能控制" />
  153. <EditText
  154. android:id="@+id/et_timing"
  155. android:layout_width="0dp"
  156. android:layout_height="wrap_content"
  157. android:layout_weight="1"
  158. android:inputType="number"
  159. android:text="30" />
  160. <TextView
  161. android:layout_width="0dp"
  162. android:layout_height="wrap_content"
  163. android:layout_weight="3"
  164. android:text="(秒)" />
  165. </LinearLayout>
  166. <RadioGroup
  167. android:layout_width="match_parent"
  168. android:layout_height="wrap_content"
  169. android:orientation="horizontal">
  170. <RadioButton
  171. android:id="@+id/rb_positive_timing"
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:checked="true"
  175. android:text="正计时" />
  176. <RadioButton
  177. android:id="@+id/rb_negative_timing"
  178. android:layout_width="wrap_content"
  179. android:layout_height="wrap_content"
  180. android:text="倒计时" />
  181. </RadioGroup>
  182. <RadioGroup
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:orientation="horizontal">
  186. <RadioButton
  187. android:id="@+id/rb_timing_start"
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content"
  190. android:checked="true"
  191. android:text="计时" />
  192. <RadioButton
  193. android:id="@+id/rb_timing_pause"
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:text="暂停" />
  197. <RadioButton
  198. android:id="@+id/rb_timing_reset"
  199. android:layout_width="wrap_content"
  200. android:layout_height="wrap_content"
  201. android:text="重置" />
  202. </RadioGroup>
  203. <LinearLayout
  204. android:layout_width="match_parent"
  205. android:layout_height="wrap_content"
  206. android:layout_margin="5dp"
  207. android:orientation="horizontal">
  208. <Button
  209. android:id="@+id/btn_callback_timing"
  210. android:layout_width="wrap_content"
  211. android:layout_height="wrap_content"
  212. android:text="APP回复计时功能" />
  213. </LinearLayout>
  214. <RadioGroup
  215. android:layout_width="match_parent"
  216. android:layout_height="wrap_content"
  217. android:orientation="horizontal">
  218. <RadioButton
  219. android:id="@+id/rb_callback_timing_success"
  220. android:layout_width="wrap_content"
  221. android:layout_height="wrap_content"
  222. android:checked="true"
  223. android:text="成功" />
  224. <RadioButton
  225. android:id="@+id/rb_callback_timing_fail"
  226. android:layout_width="wrap_content"
  227. android:layout_height="wrap_content"
  228. android:text="失败" />
  229. <RadioButton
  230. android:id="@+id/rb_callback_timing_not_support"
  231. android:layout_width="wrap_content"
  232. android:layout_height="wrap_content"
  233. android:text="不支持" />
  234. </RadioGroup>
  235. <LinearLayout
  236. android:layout_width="match_parent"
  237. android:layout_height="wrap_content"
  238. android:layout_margin="5dp"
  239. android:orientation="horizontal">
  240. <Button
  241. android:id="@+id/btn_set_alert"
  242. android:layout_width="wrap_content"
  243. android:layout_height="wrap_content"
  244. android:text="报警设置指令" />
  245. <EditText
  246. android:id="@+id/et_alert"
  247. android:layout_width="0dp"
  248. android:layout_height="wrap_content"
  249. android:layout_weight="1"
  250. android:inputType="number"
  251. android:text="5" />
  252. <TextView
  253. android:layout_width="0dp"
  254. android:layout_height="wrap_content"
  255. android:layout_weight="3"
  256. android:text="(秒)" />
  257. </LinearLayout>
  258. <RadioGroup
  259. android:layout_width="match_parent"
  260. android:layout_height="wrap_content"
  261. android:orientation="horizontal">
  262. <RadioButton
  263. android:id="@+id/rb_alert_close"
  264. android:layout_width="wrap_content"
  265. android:layout_height="wrap_content"
  266. android:checked="true"
  267. android:text="关闭(默认)" />
  268. <RadioButton
  269. android:id="@+id/rb_alert_open"
  270. android:layout_width="wrap_content"
  271. android:layout_height="wrap_content"
  272. android:text="打开" />
  273. </RadioGroup>
  274. <LinearLayout
  275. android:layout_width="match_parent"
  276. android:layout_height="wrap_content"
  277. android:layout_margin="5dp"
  278. android:orientation="horizontal">
  279. <Button
  280. android:id="@+id/btn_callback_alert"
  281. android:layout_width="wrap_content"
  282. android:layout_height="wrap_content"
  283. android:text="APP回复报警设置" />
  284. </LinearLayout>
  285. <RadioGroup
  286. android:layout_width="match_parent"
  287. android:layout_height="wrap_content"
  288. android:orientation="horizontal">
  289. <RadioButton
  290. android:id="@+id/rb_callback_alert_success"
  291. android:layout_width="wrap_content"
  292. android:layout_height="wrap_content"
  293. android:checked="true"
  294. android:text="成功" />
  295. <RadioButton
  296. android:id="@+id/rb_callback_alert_fail"
  297. android:layout_width="wrap_content"
  298. android:layout_height="wrap_content"
  299. android:text="失败" />
  300. <RadioButton
  301. android:id="@+id/rb_callback_alert_not_support"
  302. android:layout_width="wrap_content"
  303. android:layout_height="wrap_content"
  304. android:text="不支持" />
  305. </RadioGroup>
  306. <LinearLayout
  307. android:layout_width="match_parent"
  308. android:layout_height="wrap_content"
  309. android:layout_margin="5dp"
  310. android:orientation="vertical">
  311. <Button
  312. android:id="@+id/btn_stop_alert"
  313. android:layout_width="wrap_content"
  314. android:layout_height="wrap_content"
  315. android:text="停止报警指令" />
  316. <Button
  317. android:id="@+id/btn_callback_stop_alert"
  318. android:layout_width="wrap_content"
  319. android:layout_height="wrap_content"
  320. android:text="APP回复停止报警" />
  321. </LinearLayout>
  322. <RadioGroup
  323. android:layout_width="match_parent"
  324. android:layout_height="wrap_content"
  325. android:orientation="horizontal">
  326. <RadioButton
  327. android:id="@+id/rb_callback_stop_alert_success"
  328. android:layout_width="wrap_content"
  329. android:layout_height="wrap_content"
  330. android:checked="true"
  331. android:text="成功" />
  332. <RadioButton
  333. android:id="@+id/rb_callback_stop_alert_fail"
  334. android:layout_width="wrap_content"
  335. android:layout_height="wrap_content"
  336. android:text="失败" />
  337. <RadioButton
  338. android:id="@+id/rb_callback_stop_alert_not_support"
  339. android:layout_width="wrap_content"
  340. android:layout_height="wrap_content"
  341. android:text="不支持" />
  342. </RadioGroup>
  343. <LinearLayout
  344. android:layout_width="match_parent"
  345. android:layout_height="wrap_content"
  346. android:layout_margin="5dp"
  347. android:orientation="vertical">
  348. <Button
  349. android:id="@+id/btn_brew_mode"
  350. android:layout_width="wrap_content"
  351. android:layout_height="wrap_content"
  352. android:text="APP设置冲煮模式" />
  353. </LinearLayout>
  354. <RadioGroup
  355. android:layout_width="match_parent"
  356. android:layout_height="wrap_content"
  357. android:orientation="horizontal">
  358. <RadioButton
  359. android:id="@+id/rb_brew_mode_enter"
  360. android:layout_width="wrap_content"
  361. android:layout_height="wrap_content"
  362. android:checked="true"
  363. android:text="进入冲煮模式" />
  364. <RadioButton
  365. android:id="@+id/rb_brew_mode_exit"
  366. android:layout_width="wrap_content"
  367. android:layout_height="wrap_content"
  368. android:text="退出冲煮模式" />
  369. </RadioGroup>
  370. </LinearLayout>
  371. </ScrollView>
  372. <View
  373. android:layout_width="match_parent"
  374. android:layout_height="1dp"
  375. android:background="?android:attr/listDivider" />
  376. <ListView
  377. android:id="@+id/list_view"
  378. android:layout_width="match_parent"
  379. android:layout_height="0dp"
  380. android:layout_weight="1" />
  381. </LinearLayout>