activity_gyee.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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="8dp">
  8. <TextView
  9. android:id="@+id/data_text"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:text=""
  13. android:textColor="@android:color/holo_green_dark" />
  14. <ScrollView
  15. android:id="@+id/svLog"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:visibility="gone">
  19. <TextView
  20. android:id="@+id/tvSync"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:visibility="visible" />
  24. </ScrollView>
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="vertical"
  29. android:focusable="true"
  30. android:focusableInTouchMode="true">
  31. <LinearLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:orientation="horizontal">
  35. <EditText
  36. android:id="@+id/phone_number"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:ems="10"
  40. android:hint="请输入手机号码"
  41. android:inputType="number"
  42. android:visibility="gone"
  43. tools:layout_editor_absoluteX="72dp"
  44. tools:layout_editor_absoluteY="147dp" />
  45. </LinearLayout>
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:orientation="horizontal">
  50. <Button
  51. android:id="@+id/bind"
  52. android:layout_width="0dip"
  53. android:layout_height="wrap_content"
  54. android:layout_weight="1"
  55. android:text="@string/bind" />
  56. <Button
  57. android:id="@+id/unbind"
  58. android:layout_width="0dip"
  59. android:layout_height="wrap_content"
  60. android:layout_weight="1"
  61. android:enabled="false"
  62. android:text="@string/unbind" />
  63. </LinearLayout>
  64. <LinearLayout
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:orientation="horizontal">
  68. <Button
  69. android:id="@+id/scan"
  70. android:layout_width="0dip"
  71. android:layout_height="wrap_content"
  72. android:layout_weight="1"
  73. android:enabled="false"
  74. android:text="@string/scan" />
  75. <Button
  76. android:id="@+id/connect"
  77. android:layout_width="0dip"
  78. android:layout_height="wrap_content"
  79. android:layout_weight="1"
  80. android:enabled="false"
  81. android:text="@string/connect"
  82. android:visibility="gone" />
  83. <Button
  84. android:id="@+id/disconnect"
  85. android:layout_width="0dip"
  86. android:layout_height="wrap_content"
  87. android:layout_weight="1"
  88. android:enabled="false"
  89. android:text="@string/disconnect" />
  90. </LinearLayout>
  91. <ScrollView
  92. android:id="@+id/svDevice"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content">
  95. <LinearLayout
  96. android:id="@+id/llConnect"
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:orientation="vertical"
  100. android:visibility="gone">
  101. <LinearLayout
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:orientation="horizontal">
  105. <Button
  106. android:id="@+id/set_vir"
  107. android:layout_width="0dip"
  108. android:layout_height="wrap_content"
  109. android:layout_weight="1"
  110. android:text="@string/set_vir" />
  111. <Button
  112. android:id="@+id/getcursportdata"
  113. android:layout_width="0dip"
  114. android:layout_height="wrap_content"
  115. android:layout_weight="1"
  116. android:text="@string/sync_time" />
  117. </LinearLayout>
  118. <LinearLayout
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:orientation="horizontal">
  122. <Button
  123. android:id="@+id/read_fw"
  124. android:layout_width="0dip"
  125. android:layout_height="wrap_content"
  126. android:layout_weight="1"
  127. android:text="@string/read_deviceinfo" />
  128. <Button
  129. android:id="@+id/read_batery"
  130. android:layout_width="0dip"
  131. android:layout_height="wrap_content"
  132. android:layout_weight="1"
  133. android:text="@string/read_batery" />
  134. </LinearLayout>
  135. <LinearLayout
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content"
  138. android:orientation="horizontal">
  139. <Button
  140. android:id="@+id/bt_open_blood"
  141. android:layout_width="0dip"
  142. android:layout_height="wrap_content"
  143. android:layout_weight="1"
  144. android:text="开始测量" />
  145. <Button
  146. android:id="@+id/bt_close_blood"
  147. android:layout_width="0dip"
  148. android:layout_height="wrap_content"
  149. android:layout_weight="1"
  150. android:text="关闭测量" />
  151. </LinearLayout>
  152. </LinearLayout>
  153. </ScrollView>
  154. </LinearLayout>
  155. </LinearLayout>