activity_gt9_main.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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="@drawable/wingcool_backgroup_virtual"
  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="8dp"
  44. android:layout_marginEnd="8dp"
  45. android:layout_marginBottom="8dp"
  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_marginTop="8dp"
  62. android:layout_marginEnd="8dp"
  63. android:layout_marginRight="8dp"
  64. android:layout_marginBottom="8dp"
  65. android:ems="10"
  66. android:gravity="center"
  67. android:text="@string/connectdevice"
  68. android:textSize="30dp"
  69. android:textColor="#FFFFFF"
  70. app:layout_constraintBottom_toBottomOf="parent"
  71. app:layout_constraintEnd_toEndOf="parent"
  72. app:layout_constraintHorizontal_bias="0.503"
  73. app:layout_constraintStart_toStartOf="parent"
  74. app:layout_constraintTop_toTopOf="parent"
  75. app:layout_constraintVertical_bias="0.273" />
  76. <LinearLayout
  77. android:id="@+id/RadioLinearLayout"
  78. android:layout_width="wrap_content"
  79. android:layout_height="match_parent"
  80. android:layout_marginStart="8dp"
  81. android:layout_marginTop="8dp"
  82. android:layout_marginEnd="8dp"
  83. android:layout_marginBottom="8dp"
  84. android:layout_centerHorizontal="true"
  85. android:layout_gravity="center_horizontal"
  86. android:orientation="horizontal">
  87. <RadioGroup
  88. android:id="@+id/radio"
  89. android:layout_width="wrap_content"
  90. android:layout_height="match_parent"
  91. android:layout_centerHorizontal="true"
  92. android:layout_gravity="center_horizontal"
  93. android:background="@drawable/bg_radiogroup_frame_line"
  94. android:orientation="horizontal">
  95. <RadioButton
  96. android:id="@+id/radio_zh"
  97. android:layout_width="wrap_content"
  98. android:layout_height="match_parent"
  99. android:checked="true"
  100. android:layout_marginLeft="16dp"
  101. android:text="@string/zh"
  102. android:textSize="20dp"/>
  103. <RadioButton
  104. android:id="@+id/radio_en"
  105. android:layout_width="wrap_content"
  106. android:layout_height="match_parent"
  107. android:layout_marginLeft="16dp"
  108. android:layout_marginRight="16dp"
  109. android:text="@string/en"
  110. android:textSize="20dp"/>
  111. </RadioGroup>
  112. <RadioGroup
  113. android:id="@+id/screenradio"
  114. android:layout_width="wrap_content"
  115. android:layout_height="match_parent"
  116. android:layout_marginLeft="32dp"
  117. android:layout_centerHorizontal="true"
  118. android:layout_gravity="center_horizontal"
  119. android:background="@drawable/bg_radiogroup_frame_line"
  120. android:orientation="horizontal">
  121. <RadioButton
  122. android:id="@+id/radio_landscape"
  123. android:layout_width="wrap_content"
  124. android:layout_height="match_parent"
  125. android:checked="true"
  126. android:layout_marginLeft="16dp"
  127. android:text="@string/landscape"
  128. android:textSize="20dp"/>
  129. <RadioButton
  130. android:id="@+id/radio_portrait"
  131. android:layout_width="wrap_content"
  132. android:layout_height="match_parent"
  133. android:layout_marginLeft="16dp"
  134. android:layout_marginRight="16dp"
  135. android:text="@string/portrait"
  136. android:textSize="20dp"/>
  137. </RadioGroup>
  138. </LinearLayout>
  139. <Button
  140. android:id="@+id/readtext"
  141. android:layout_width="match_parent"
  142. android:layout_height="match_parent"
  143. android:layout_marginStart="8dp"
  144. android:layout_marginLeft="8dp"
  145. android:layout_marginTop="8dp"
  146. android:layout_marginEnd="8dp"
  147. android:layout_marginRight="8dp"
  148. android:layout_marginBottom="0dp"
  149. android:background="@drawable/bg_mainactivity_buttonframe_line"
  150. android:onClick="ConfigSetting"
  151. android:text="@string/configsetting"
  152. android:textColor="#FFFFf0"
  153. android:textAllCaps="false"
  154. android:textSize="30dp"
  155. app:layout_constraintBottom_toBottomOf="parent"
  156. app:layout_constraintEnd_toEndOf="parent"
  157. app:layout_constraintHorizontal_bias="0.535"
  158. app:layout_constraintStart_toStartOf="parent"
  159. app:layout_constraintTop_toTopOf="parent"
  160. app:layout_constraintVertical_bias="0.196" />
  161. <Button
  162. android:id="@+id/FWUpdate"
  163. android:layout_width="match_parent"
  164. android:layout_height="match_parent"
  165. android:layout_marginStart="8dp"
  166. android:layout_marginLeft="8dp"
  167. android:layout_marginTop="0dp"
  168. android:layout_marginEnd="8dp"
  169. android:layout_marginRight="8dp"
  170. android:layout_marginBottom="0dp"
  171. android:background="@drawable/bg_mainactivity_buttonframe_line"
  172. android:onClick="FirmwareUpdate"
  173. android:text="@string/firmwareupdata"
  174. android:textColor="#FFFFf0"
  175. android:textAllCaps="false"
  176. android:textSize="30dp"
  177. app:layout_constraintBottom_toBottomOf="parent"
  178. app:layout_constraintEnd_toEndOf="parent"
  179. app:layout_constraintHorizontal_bias="0.515"
  180. app:layout_constraintStart_toStartOf="parent"
  181. app:layout_constraintTop_toTopOf="parent"
  182. app:layout_constraintVertical_bias="0.376" />
  183. <Button
  184. android:id="@+id/DataAnalysis"
  185. android:layout_width="match_parent"
  186. android:layout_height="match_parent"
  187. android:layout_marginStart="8dp"
  188. android:layout_marginLeft="8dp"
  189. android:layout_marginTop="0dp"
  190. android:layout_marginEnd="8dp"
  191. android:layout_marginRight="8dp"
  192. android:layout_marginBottom="0dp"
  193. android:background="@drawable/bg_mainactivity_buttonframe_line"
  194. android:onClick="DataAnalysis"
  195. android:text="@string/dataanalysis"
  196. android:textColor="#FFFFf0"
  197. android:textAllCaps="false"
  198. android:textSize="30dp"
  199. app:layout_constraintBottom_toBottomOf="parent"
  200. app:layout_constraintEnd_toEndOf="parent"
  201. app:layout_constraintHorizontal_bias="0.515"
  202. app:layout_constraintStart_toStartOf="parent"
  203. app:layout_constraintTop_toTopOf="parent"
  204. app:layout_constraintVertical_bias="0.376" />
  205. <Button
  206. android:id="@+id/NoiseAnalysis"
  207. android:layout_width="match_parent"
  208. android:layout_height="match_parent"
  209. android:layout_marginStart="8dp"
  210. android:layout_marginLeft="8dp"
  211. android:layout_marginTop="0dp"
  212. android:layout_marginEnd="8dp"
  213. android:layout_marginRight="8dp"
  214. android:layout_marginBottom="0dp"
  215. android:background="@drawable/bg_mainactivity_buttonframe_line"
  216. android:onClick="NoiseAnalysis"
  217. android:text="@string/noiseanalysis"
  218. android:textColor="#FFFFf0"
  219. android:textAllCaps="false"
  220. android:textSize="30dp"
  221. app:layout_constraintBottom_toBottomOf="parent"
  222. app:layout_constraintEnd_toEndOf="parent"
  223. app:layout_constraintHorizontal_bias="0.515"
  224. app:layout_constraintStart_toStartOf="parent"
  225. app:layout_constraintTop_toTopOf="parent"
  226. app:layout_constraintVertical_bias="0.376" />
  227. <Button
  228. android:id="@+id/DemoTools"
  229. android:layout_width="match_parent"
  230. android:layout_height="match_parent"
  231. android:layout_marginStart="8dp"
  232. android:layout_marginLeft="8dp"
  233. android:layout_marginTop="0dp"
  234. android:layout_marginEnd="8dp"
  235. android:layout_marginRight="8dp"
  236. android:layout_marginBottom="0dp"
  237. android:background="@drawable/bg_mainactivity_buttonframe_line"
  238. android:onClick="DemoTools"
  239. android:text="@string/demotools"
  240. android:textColor="#FFFFf0"
  241. android:textAllCaps="false"
  242. android:textSize="30dp"
  243. app:layout_constraintBottom_toBottomOf="parent"
  244. app:layout_constraintEnd_toEndOf="parent"
  245. app:layout_constraintHorizontal_bias="0.515"
  246. app:layout_constraintStart_toStartOf="parent"
  247. app:layout_constraintTop_toTopOf="parent"
  248. app:layout_constraintVertical_bias="0.376" />
  249. <Button
  250. android:id="@+id/IICOperation"
  251. android:layout_width="match_parent"
  252. android:layout_height="match_parent"
  253. android:layout_marginStart="8dp"
  254. android:layout_marginLeft="8dp"
  255. android:layout_marginTop="0dp"
  256. android:layout_marginEnd="8dp"
  257. android:layout_marginRight="8dp"
  258. android:layout_marginBottom="0dp"
  259. android:background="@drawable/bg_mainactivity_buttonframe_line"
  260. android:onClick="IICOperation"
  261. android:text="@string/ramoperation"
  262. android:textColor="#FFFFf0"
  263. android:textAllCaps="false"
  264. android:textSize="30dp"
  265. app:layout_constraintBottom_toBottomOf="parent"
  266. app:layout_constraintEnd_toEndOf="parent"
  267. app:layout_constraintHorizontal_bias="0.515"
  268. app:layout_constraintStart_toStartOf="parent"
  269. app:layout_constraintTop_toTopOf="parent"
  270. app:layout_constraintVertical_bias="0.376" />
  271. <Button
  272. android:id="@+id/TestOperation"
  273. android:layout_width="match_parent"
  274. android:layout_height="match_parent"
  275. android:layout_marginStart="8dp"
  276. android:layout_marginLeft="8dp"
  277. android:layout_marginTop="0dp"
  278. android:layout_marginEnd="8dp"
  279. android:layout_marginRight="8dp"
  280. android:layout_marginBottom="0dp"
  281. android:background="@drawable/bg_mainactivity_buttonframe_line"
  282. android:onClick="TestOperation"
  283. android:text="@string/testoperation"
  284. android:textColor="#FFFFf0"
  285. android:textAllCaps="false"
  286. android:textSize="30dp"
  287. app:layout_constraintBottom_toBottomOf="parent"
  288. app:layout_constraintEnd_toEndOf="parent"
  289. app:layout_constraintHorizontal_bias="0.515"
  290. app:layout_constraintStart_toStartOf="parent"
  291. app:layout_constraintTop_toTopOf="parent"
  292. app:layout_constraintVertical_bias="0.376" />
  293. <Button
  294. android:id="@+id/ContactUs"
  295. android:layout_width="match_parent"
  296. android:layout_height="match_parent"
  297. android:layout_marginStart="8dp"
  298. android:layout_marginLeft="8dp"
  299. android:layout_marginTop="0dp"
  300. android:layout_marginEnd="8dp"
  301. android:layout_marginRight="8dp"
  302. android:layout_marginBottom="0dp"
  303. android:background="@drawable/bg_mainactivity_buttonframe_line"
  304. android:onClick="ContactUs"
  305. android:text="@string/contactus"
  306. android:textColor="#FFFFf0"
  307. android:textAllCaps="false"
  308. android:textSize="30dp"
  309. app:layout_constraintBottom_toBottomOf="parent"
  310. app:layout_constraintEnd_toEndOf="parent"
  311. app:layout_constraintHorizontal_bias="0.515"
  312. app:layout_constraintStart_toStartOf="parent"
  313. app:layout_constraintTop_toTopOf="parent"
  314. app:layout_constraintVertical_bias="0.376" />
  315. <Button
  316. android:id="@+id/Exit"
  317. android:layout_width="match_parent"
  318. android:layout_height="match_parent"
  319. android:layout_marginStart="8dp"
  320. android:layout_marginLeft="8dp"
  321. android:layout_marginTop="0dp"
  322. android:layout_marginEnd="8dp"
  323. android:layout_marginRight="8dp"
  324. android:layout_marginBottom="8dp"
  325. android:background="@drawable/bg_mainactivity_buttonframe_line"
  326. android:text="@string/exit"
  327. android:textColor="#FFFFf0"
  328. android:textAllCaps="false"
  329. android:textSize="30dp"
  330. app:layout_constraintBottom_toBottomOf="parent"
  331. app:layout_constraintEnd_toEndOf="parent"
  332. app:layout_constraintHorizontal_bias="0.515"
  333. app:layout_constraintStart_toStartOf="parent"
  334. app:layout_constraintTop_toTopOf="parent"
  335. app:layout_constraintVertical_bias="0.376" />
  336. </LinearLayout>
  337. </ScrollView>
  338. </android.support.constraint.ConstraintLayout>