activity_gt9_main.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="#778899"
  8. tools:context=".GT9MainActivity">
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <LinearLayout
  13. android:id="@+id/LinearLayout"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:layout_marginBottom="8dp"
  17. android:orientation="vertical"
  18. app:layout_constraintBottom_toBottomOf="parent"
  19. app:layout_constraintEnd_toEndOf="parent"
  20. app:layout_constraintHorizontal_bias="1.0"
  21. app:layout_constraintStart_toStartOf="parent"
  22. app:layout_constraintTop_toTopOf="parent"
  23. tools:context=".MainActivity">
  24. <ImageView
  25. android:id="@+id/imageView4"
  26. android:layout_width="match_parent"
  27. android:layout_height="138dp"
  28. android:layout_marginStart="8dp"
  29. android:layout_marginTop="0dp"
  30. android:layout_marginEnd="8dp"
  31. android:layout_marginBottom="0dp"
  32. app:layout_constraintBottom_toBottomOf="parent"
  33. app:layout_constraintEnd_toEndOf="parent"
  34. app:layout_constraintStart_toStartOf="parent"
  35. app:layout_constraintTop_toTopOf="parent"
  36. app:layout_constraintVertical_bias="0.018"
  37. app:srcCompat="@drawable/wingcool_20200107132922" />
  38. <TextView
  39. android:id="@+id/title"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. android:layout_marginStart="8dp"
  43. android:layout_marginTop="16dp"
  44. android:layout_marginEnd="8dp"
  45. android:layout_marginBottom="16dp"
  46. android:text="@string/companyname"
  47. android:textAlignment="center"
  48. android:textColor="#2F2F4F"
  49. android:textSize="50dp"
  50. android:textStyle="bold"
  51. app:layout_constraintBottom_toBottomOf="parent"
  52. app:layout_constraintEnd_toEndOf="parent"
  53. app:layout_constraintStart_toStartOf="parent"
  54. app:layout_constraintTop_toTopOf="parent" />
  55. <TextView
  56. android:id="@+id/show"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:layout_marginStart="8dp"
  60. android:layout_marginLeft="8dp"
  61. android:layout_marginEnd="8dp"
  62. android:layout_marginRight="8dp"
  63. android:layout_marginBottom="8dp"
  64. android:gravity="center"
  65. android:text="@string/connectdevice"
  66. android:textSize="30dp"
  67. android:textColor="#FFFFFF"
  68. android:textStyle="bold"/>
  69. <TextView
  70. android:id="@+id/ipaddressshow"
  71. android:layout_width="match_parent"
  72. android:layout_height="match_parent"
  73. android:layout_marginStart="8dp"
  74. android:layout_marginLeft="8dp"
  75. android:layout_marginEnd="8dp"
  76. android:layout_marginRight="8dp"
  77. android:layout_marginBottom="8dp"
  78. android:gravity="center"
  79. android:textSize="20dp"
  80. android:textColor="#FFFFFF"/>
  81. <LinearLayout
  82. android:id="@+id/RadioLinearLayout"
  83. android:layout_width="wrap_content"
  84. android:layout_height="match_parent"
  85. android:layout_marginStart="8dp"
  86. android:layout_marginTop="8dp"
  87. android:layout_marginEnd="8dp"
  88. android:layout_marginBottom="8dp"
  89. android:layout_centerHorizontal="true"
  90. android:layout_gravity="center_horizontal"
  91. android:orientation="horizontal">
  92. <RadioGroup
  93. android:id="@+id/radio"
  94. android:layout_width="wrap_content"
  95. android:layout_height="match_parent"
  96. android:layout_centerHorizontal="true"
  97. android:layout_gravity="center_horizontal"
  98. android:background="@drawable/bg_radiogroup_frame_line"
  99. android:orientation="horizontal">
  100. <RadioButton
  101. android:id="@+id/radio_zh"
  102. android:layout_width="wrap_content"
  103. android:layout_height="match_parent"
  104. android:checked="true"
  105. android:layout_marginLeft="16dp"
  106. android:text="@string/zh"
  107. android:textSize="20dp"/>
  108. <RadioButton
  109. android:id="@+id/radio_en"
  110. android:layout_width="wrap_content"
  111. android:layout_height="match_parent"
  112. android:layout_marginLeft="16dp"
  113. android:layout_marginRight="16dp"
  114. android:text="@string/en"
  115. android:textSize="20dp"/>
  116. </RadioGroup>
  117. <RadioGroup
  118. android:id="@+id/screenradio"
  119. android:layout_width="wrap_content"
  120. android:layout_height="match_parent"
  121. android:layout_marginLeft="32dp"
  122. android:layout_centerHorizontal="true"
  123. android:layout_gravity="center_horizontal"
  124. android:background="@drawable/bg_radiogroup_frame_line"
  125. android:orientation="horizontal">
  126. <RadioButton
  127. android:id="@+id/radio_landscape"
  128. android:layout_width="wrap_content"
  129. android:layout_height="match_parent"
  130. android:checked="true"
  131. android:layout_marginLeft="16dp"
  132. android:text="@string/landscape"
  133. android:textSize="20dp"/>
  134. <RadioButton
  135. android:id="@+id/radio_portrait"
  136. android:layout_width="wrap_content"
  137. android:layout_height="match_parent"
  138. android:layout_marginLeft="16dp"
  139. android:layout_marginRight="16dp"
  140. android:text="@string/portrait"
  141. android:textSize="20dp"/>
  142. </RadioGroup>
  143. </LinearLayout>
  144. <!--
  145. <Button
  146. android:id="@+id/bt_tcpstart"
  147. android:layout_width="wrap_content"
  148. android:layout_height="match_parent"
  149. android:layout_gravity="center"
  150. android:layout_marginTop="8dp"
  151. android:background="@drawable/bg_mainactivity_buttonframe_line"
  152. android:text="TCP启动"
  153. android:textAllCaps="false"
  154. android:textColor="#FFFFf0"
  155. android:textSize="30dp"
  156. app:layout_constraintBottom_toBottomOf="parent"
  157. app:layout_constraintEnd_toEndOf="parent"
  158. app:layout_constraintHorizontal_bias="0.535"
  159. app:layout_constraintStart_toStartOf="parent"
  160. app:layout_constraintTop_toTopOf="parent"
  161. app:layout_constraintVertical_bias="0.196" />
  162. -->
  163. <Button
  164. android:id="@+id/ConfigSetting"
  165. android:layout_width="wrap_content"
  166. android:layout_height="match_parent"
  167. android:layout_gravity="center"
  168. android:background="@drawable/bg_mainactivity_buttonframe_line"
  169. android:onClick="ConfigSetting"
  170. android:text="@string/configsetting"
  171. android:textColor="#FFFFf0"
  172. android:textAllCaps="false"
  173. android:textSize="30dp" />
  174. <Button
  175. android:id="@+id/UsbSetting"
  176. android:layout_width="wrap_content"
  177. android:layout_height="match_parent"
  178. android:layout_gravity="center"
  179. android:background="@drawable/bg_mainactivity_buttonframe_line"
  180. android:onClick="UsbSetting"
  181. android:text="@string/usbsetting"
  182. android:textColor="#FFFFf0"
  183. android:textAllCaps="false"
  184. android:textSize="30dp" />
  185. <Button
  186. android:id="@+id/FWUpdate"
  187. android:layout_width="wrap_content"
  188. android:layout_height="match_parent"
  189. android:layout_gravity="center"
  190. android:background="@drawable/bg_mainactivity_buttonframe_line"
  191. android:onClick="FirmwareUpdate"
  192. android:text="@string/firmwareupdata"
  193. android:textColor="#FFFFf0"
  194. android:textAllCaps="false"
  195. android:textSize="30dp" />
  196. <Button
  197. android:id="@+id/DataAnalysis"
  198. android:layout_width="wrap_content"
  199. android:layout_height="match_parent"
  200. android:layout_gravity="center"
  201. android:background="@drawable/bg_mainactivity_buttonframe_line"
  202. android:onClick="DataAnalysis"
  203. android:text="@string/dataanalysis"
  204. android:textColor="#FFFFf0"
  205. android:textAllCaps="false"
  206. android:textSize="30dp" />
  207. <Button
  208. android:id="@+id/NoiseAnalysis"
  209. android:layout_width="wrap_content"
  210. android:layout_height="match_parent"
  211. android:layout_gravity="center"
  212. android:background="@drawable/bg_mainactivity_buttonframe_line"
  213. android:onClick="NoiseAnalysis"
  214. android:text="@string/noiseanalysis"
  215. android:textColor="#FFFFf0"
  216. android:textAllCaps="false"
  217. android:textSize="30dp" />
  218. <Button
  219. android:id="@+id/DemoTools"
  220. android:layout_width="wrap_content"
  221. android:layout_height="match_parent"
  222. android:layout_gravity="center"
  223. android:background="@drawable/bg_mainactivity_buttonframe_line"
  224. android:onClick="DemoTools"
  225. android:text="@string/demotools"
  226. android:textColor="#FFFFf0"
  227. android:textAllCaps="false"
  228. android:textSize="30dp" />
  229. <Button
  230. android:id="@+id/IICOperation"
  231. android:layout_width="wrap_content"
  232. android:layout_height="match_parent"
  233. android:layout_gravity="center"
  234. android:background="@drawable/bg_mainactivity_buttonframe_line"
  235. android:onClick="IICOperation"
  236. android:text="@string/ramoperation"
  237. android:textColor="#FFFFf0"
  238. android:textAllCaps="false"
  239. android:textSize="30dp" />
  240. <Button
  241. android:id="@+id/ContactUs"
  242. android:layout_width="wrap_content"
  243. android:layout_height="match_parent"
  244. android:layout_gravity="center"
  245. android:background="@drawable/bg_mainactivity_buttonframe_line"
  246. android:onClick="ContactUs"
  247. android:text="@string/contactus"
  248. android:textColor="#FFFFf0"
  249. android:textAllCaps="false"
  250. android:textSize="30dp" />
  251. <Button
  252. android:id="@+id/Exit"
  253. android:layout_width="wrap_content"
  254. android:layout_height="match_parent"
  255. android:layout_gravity="center"
  256. android:layout_marginTop="0dp"
  257. android:layout_marginBottom="8dp"
  258. android:background="@drawable/bg_mainactivity_buttonframe_line"
  259. android:text="@string/exit"
  260. android:textColor="#FFFFf0"
  261. android:textAllCaps="false"
  262. android:textSize="30dp" />
  263. </LinearLayout>
  264. </ScrollView>
  265. </android.support.constraint.ConstraintLayout>