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_health_bracelet.xml 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical">
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="0dp"
  12. android:layout_weight="1"
  13. >
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="0dp"
  17. android:layout_weight="1"
  18. android:orientation="vertical"
  19. >
  20. <LinearLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:orientation="horizontal">
  24. <Button
  25. android:id="@+id/button_connect"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:text="连接"
  29. />
  30. <Button
  31. android:id="@+id/button_dis"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="断开"
  35. tools:layout_editor_absoluteX="281dp"
  36. tools:layout_editor_absoluteY="40dp"/>
  37. <Button
  38. android:id="@+id/button_clear"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:text="清空"
  42. tools:layout_editor_absoluteX="281dp"
  43. tools:layout_editor_absoluteY="120dp"/>
  44. <Button
  45. android:id="@+id/button_ota"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="OTA"
  49. tools:layout_editor_absoluteX="281dp"
  50. tools:layout_editor_absoluteY="120dp"/>
  51. </LinearLayout>
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal">
  56. <Button
  57. android:id="@+id/button_time"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:text="同步时间"
  61. />
  62. <Button
  63. android:id="@+id/button_status"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="获取状态"
  67. tools:layout_editor_absoluteX="281dp"
  68. tools:layout_editor_absoluteY="40dp"/>
  69. <Button
  70. android:id="@+id/button_info"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:text="获取参数"
  74. tools:layout_editor_absoluteX="281dp"
  75. tools:layout_editor_absoluteY="40dp"/>
  76. <Button
  77. android:id="@+id/button_log"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:text="读取记录"
  81. tools:layout_editor_absoluteX="16dp"
  82. tools:layout_editor_absoluteY="120dp"/>
  83. </LinearLayout>
  84. <LinearLayout
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content">
  87. <Button
  88. android:id="@+id/button_close"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:text="关机"
  92. tools:layout_editor_absoluteX="148dp"
  93. tools:layout_editor_absoluteY="120dp"/>
  94. <Button
  95. android:id="@+id/button_activation"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:text="激活设备"
  99. tools:layout_editor_absoluteX="148dp"
  100. tools:layout_editor_absoluteY="120dp"/>
  101. <Button
  102. android:id="@+id/button_close_activation"
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:text="清除激活状态"
  106. tools:layout_editor_absoluteX="148dp"
  107. tools:layout_editor_absoluteY="120dp"/>
  108. <Button
  109. android:id="@+id/button_bind"
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:text="绑定"
  113. tools:layout_editor_absoluteX="148dp"
  114. tools:layout_editor_absoluteY="120dp"/>
  115. </LinearLayout>
  116. <LinearLayout
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content">
  119. <Button
  120. android:id="@+id/button_reboot"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:text="重启"
  124. tools:layout_editor_absoluteX="148dp"
  125. tools:layout_editor_absoluteY="120dp"/>
  126. <Button
  127. android:id="@+id/button_version"
  128. android:layout_width="wrap_content"
  129. android:layout_height="wrap_content"
  130. android:text="版本号"
  131. tools:layout_editor_absoluteX="148dp"
  132. tools:layout_editor_absoluteY="120dp"/>
  133. <TextView
  134. android:id="@+id/tv_version"
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:text="bm"
  138. />
  139. </LinearLayout>
  140. <LinearLayout
  141. android:layout_width="match_parent"
  142. android:layout_height="wrap_content">
  143. <EditText
  144. android:id="@+id/et_set_user"
  145. android:layout_width="0dp"
  146. android:layout_height="match_parent"
  147. android:layout_weight="1"
  148. android:digits="0123456789"
  149. android:hint="userId"
  150. android:text="1"
  151. />
  152. <EditText
  153. android:id="@+id/et_set_user_status"
  154. android:layout_width="0dp"
  155. android:layout_height="match_parent"
  156. android:layout_weight="1"
  157. android:digits="0123456789"
  158. android:hint="status"
  159. android:maxLength="1"
  160. android:text="0"
  161. />
  162. <Button
  163. android:id="@+id/button_user"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:text="下发用户"
  167. tools:layout_editor_absoluteX="148dp"
  168. tools:layout_editor_absoluteY="41dp"/>
  169. </LinearLayout>
  170. <LinearLayout
  171. android:layout_width="match_parent"
  172. android:layout_height="40dp"
  173. android:gravity="center_vertical"
  174. android:orientation="horizontal"
  175. >
  176. <TextView
  177. android:layout_width="100dp"
  178. android:layout_height="wrap_content"
  179. android:text="靠近报警阀值:"
  180. />
  181. <com.pinwang.ailinkblesdk.view.SeekBarMin
  182. android:id="@+id/seekBar1"
  183. style="@style/Widget.AppCompat.SeekBar"
  184. android:layout_width="0dp"
  185. android:layout_height="wrap_content"
  186. android:layout_weight="1"
  187. />
  188. <TextView
  189. android:id="@+id/text1"
  190. android:layout_width="50dp"
  191. android:layout_height="wrap_content"
  192. android:text="阀值"
  193. />
  194. </LinearLayout>
  195. <LinearLayout
  196. android:layout_width="match_parent"
  197. android:layout_height="40dp"
  198. android:gravity="center_vertical"
  199. android:orientation="horizontal"
  200. >
  201. <TextView
  202. android:layout_width="100dp"
  203. android:layout_height="wrap_content"
  204. android:text="接收的阀值次数:"
  205. />
  206. <com.pinwang.ailinkblesdk.view.SeekBarMin
  207. android:id="@+id/seekBar2"
  208. style="@style/Widget.AppCompat.SeekBar"
  209. android:layout_width="0dp"
  210. android:layout_height="wrap_content"
  211. android:layout_weight="1"
  212. />
  213. <TextView
  214. android:id="@+id/text2"
  215. android:layout_width="50dp"
  216. android:layout_height="wrap_content"
  217. android:text="阀值"
  218. />
  219. </LinearLayout>
  220. <LinearLayout
  221. android:layout_width="match_parent"
  222. android:layout_height="40dp"
  223. android:gravity="center_vertical"
  224. android:orientation="horizontal"
  225. >
  226. <TextView
  227. android:layout_width="100dp"
  228. android:layout_height="wrap_content"
  229. android:text="脱离报警时间:"
  230. />
  231. <com.pinwang.ailinkblesdk.view.SeekBarMin
  232. android:id="@+id/seekBar3"
  233. style="@style/Widget.AppCompat.SeekBar"
  234. android:layout_width="0dp"
  235. android:layout_height="wrap_content"
  236. android:layout_weight="1"
  237. />
  238. <TextView
  239. android:id="@+id/text3"
  240. android:layout_width="50dp"
  241. android:layout_height="wrap_content"
  242. android:text="阀值"
  243. />
  244. </LinearLayout>
  245. <LinearLayout
  246. android:layout_width="match_parent"
  247. android:layout_height="40dp"
  248. android:gravity="center_vertical"
  249. android:orientation="horizontal"
  250. >
  251. <TextView
  252. android:layout_width="100dp"
  253. android:layout_height="wrap_content"
  254. android:text="脱离报警次数:"
  255. />
  256. <com.pinwang.ailinkblesdk.view.SeekBarMin
  257. android:id="@+id/seekBar4"
  258. style="@style/Widget.AppCompat.SeekBar"
  259. android:layout_width="0dp"
  260. android:layout_height="wrap_content"
  261. android:layout_weight="1"/>
  262. <TextView
  263. android:id="@+id/text4"
  264. android:layout_width="50dp"
  265. android:layout_height="wrap_content"
  266. android:text="阀值"
  267. />
  268. </LinearLayout>
  269. <LinearLayout
  270. android:layout_width="match_parent"
  271. android:layout_height="40dp"
  272. android:gravity="center_vertical"
  273. android:orientation="horizontal"
  274. >
  275. <TextView
  276. android:layout_width="100dp"
  277. android:layout_height="wrap_content"
  278. android:text="Gsensor灵敏度:"
  279. />
  280. <com.pinwang.ailinkblesdk.view.SeekBarMin
  281. android:id="@+id/seekBar5"
  282. style="@style/Widget.AppCompat.SeekBar"
  283. android:layout_width="0dp"
  284. android:layout_height="wrap_content"
  285. android:layout_weight="1"
  286. />
  287. <TextView
  288. android:id="@+id/text5"
  289. android:layout_width="50dp"
  290. android:layout_height="wrap_content"
  291. android:text="阀值"
  292. />
  293. </LinearLayout>
  294. <LinearLayout
  295. android:layout_width="match_parent"
  296. android:layout_height="40dp"
  297. android:gravity="center_vertical"
  298. android:orientation="horizontal"
  299. >
  300. <TextView
  301. android:layout_width="100dp"
  302. android:layout_height="wrap_content"
  303. android:text="Gsensor不动的脱机时间:"
  304. />
  305. <com.pinwang.ailinkblesdk.view.SeekBarMin
  306. android:id="@+id/seekBar6"
  307. style="@style/Widget.AppCompat.SeekBar"
  308. android:layout_width="0dp"
  309. android:layout_height="wrap_content"
  310. android:layout_weight="1"
  311. />
  312. <TextView
  313. android:id="@+id/text6"
  314. android:layout_width="50dp"
  315. android:layout_height="wrap_content"
  316. android:text="阀值"
  317. />
  318. </LinearLayout>
  319. <LinearLayout
  320. android:layout_width="match_parent"
  321. android:layout_height="40dp"
  322. android:gravity="center_vertical"
  323. android:orientation="horizontal"
  324. >
  325. <TextView
  326. android:layout_width="100dp"
  327. android:layout_height="wrap_content"
  328. android:text="马达震动时间:"
  329. />
  330. <com.pinwang.ailinkblesdk.view.SeekBarMin
  331. android:id="@+id/seekBar7"
  332. style="@style/Widget.AppCompat.SeekBar"
  333. android:layout_width="0dp"
  334. android:layout_height="wrap_content"
  335. android:layout_weight="1"
  336. />
  337. <TextView
  338. android:id="@+id/text7"
  339. android:layout_width="50dp"
  340. android:layout_height="wrap_content"
  341. android:text="阀值"
  342. />
  343. </LinearLayout>
  344. <LinearLayout
  345. android:layout_width="match_parent"
  346. android:layout_height="wrap_content"
  347. android:gravity="right"
  348. >
  349. <Button
  350. android:id="@+id/button_set"
  351. android:layout_width="wrap_content"
  352. android:layout_height="wrap_content"
  353. android:text="设置参数"
  354. tools:layout_editor_absoluteX="281dp"
  355. tools:layout_editor_absoluteY="120dp"/>
  356. </LinearLayout>
  357. </LinearLayout>
  358. </ScrollView>
  359. <ListView
  360. android:id="@+id/listview"
  361. android:layout_width="match_parent"
  362. android:layout_height="0dp"
  363. android:layout_marginTop="10dp"
  364. android:layout_weight="1"
  365. android:padding="10dp"
  366. android:stackFromBottom="true"
  367. android:transcriptMode="alwaysScroll"
  368. >
  369. </ListView>
  370. </LinearLayout>