main.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:background="@color/cover_background"
  6. android:orientation="vertical">
  7. <include layout="@layout/include_common_head" />
  8. <View
  9. android:layout_width="match_parent"
  10. android:layout_height="10dp" />
  11. <LinearLayout
  12. android:id="@+id/LinearLayoutRecDisp"
  13. android:layout_width="match_parent"
  14. android:layout_height="0dp"
  15. android:layout_marginLeft="16dp"
  16. android:layout_marginRight="16dp"
  17. android:layout_weight="1"
  18. android:orientation="horizontal">
  19. <EditText
  20. android:id="@+id/editTextRecDisp"
  21. android:layout_width="fill_parent"
  22. android:layout_height="match_parent"
  23. android:layout_weight="1"
  24. android:background="@drawable/corner_view"
  25. android:clickable="false"
  26. android:editable="false"
  27. android:gravity="top"
  28. android:longClickable="false"
  29. android:paddingRight="10dp"
  30. android:textSize="14sp" />
  31. <LinearLayout
  32. android:id="@+id/LinearLayoutRecTool"
  33. android:layout_width="wrap_content"
  34. android:layout_height="match_parent"
  35. android:orientation="vertical">
  36. <RadioGroup
  37. android:id="@+id/radioGroupOption"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content">
  40. <RadioButton
  41. android:id="@+id/radioButtonTxt"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:checked="true"
  45. android:text="@string/ascii" />
  46. <RadioButton
  47. android:id="@+id/radioButtonHex"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="@string/hex" />
  51. </RadioGroup>
  52. <Button
  53. android:id="@+id/ButtonClear"
  54. android:layout_width="fill_parent"
  55. android:layout_height="wrap_content"
  56. android:text="@string/clean" />
  57. <EditText
  58. android:id="@+id/editTextLines"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:clickable="false"
  62. android:editable="false"
  63. android:enabled="false"
  64. android:imeOptions="actionNone"
  65. android:inputType="number"
  66. android:longClickable="false"
  67. android:text="0">
  68. <requestFocus />
  69. </EditText>
  70. <CheckBox
  71. android:id="@+id/checkBoxAutoClear"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:checked="true"
  75. android:text="@string/auto" />
  76. </LinearLayout>
  77. </LinearLayout>
  78. <View
  79. android:layout_width="match_parent"
  80. android:layout_height="10dp" />
  81. <LinearLayout
  82. android:id="@+id/LinearLayoutCOMA"
  83. android:layout_width="fill_parent"
  84. android:layout_height="wrap_content"
  85. android:orientation="vertical"
  86. android:paddingLeft="16dp"
  87. android:paddingRight="16dp">
  88. <EditText
  89. android:id="@+id/editTextCOMA"
  90. android:layout_width="match_parent"
  91. android:layout_height="100dp"
  92. android:layout_marginTop="10dp"
  93. android:background="@drawable/corner_view"
  94. android:gravity="top"
  95. android:hint="@string/send_hint"
  96. android:imeOptions="actionDone"
  97. android:paddingLeft="10dp"
  98. android:paddingRight="10dp"
  99. android:singleLine="true" />
  100. <LinearLayout
  101. android:id="@+id/LinearLayoutTooLCOMA"
  102. android:layout_width="match_parent"
  103. android:layout_height="0dp"
  104. android:layout_weight="1"
  105. android:orientation="vertical">
  106. <View
  107. android:layout_width="match_parent"
  108. android:layout_height="10dp" />
  109. <View
  110. android:layout_width="match_parent"
  111. android:layout_height="1dp"
  112. android:background="@color/black" />
  113. <LinearLayout
  114. android:layout_width="match_parent"
  115. android:layout_height="50dp"
  116. android:layout_gravity="center_vertical"
  117. android:gravity="center_vertical"
  118. android:orientation="horizontal">
  119. <View
  120. android:layout_width="1dp"
  121. android:layout_height="match_parent"
  122. android:background="@color/black" />
  123. <LinearLayout
  124. android:layout_width="0dp"
  125. android:layout_height="match_parent"
  126. android:layout_weight="1"
  127. android:paddingLeft="5dp">
  128. <TextView
  129. android:layout_width="wrap_content"
  130. android:layout_height="match_parent"
  131. android:gravity="center"
  132. android:text="@string/dev_path" />
  133. <Spinner
  134. android:id="@+id/SpinnerCOMA"
  135. android:layout_width="0dp"
  136. android:layout_height="match_parent"
  137. android:layout_weight="1" />
  138. </LinearLayout>
  139. <View
  140. android:layout_width="1dp"
  141. android:layout_height="match_parent"
  142. android:background="@color/black" />
  143. <LinearLayout
  144. android:layout_width="0dp"
  145. android:layout_height="match_parent"
  146. android:layout_weight="1"
  147. android:gravity="center">
  148. <TextView
  149. android:layout_width="wrap_content"
  150. android:layout_height="match_parent"
  151. android:gravity="center"
  152. android:text="@string/baudrate" />
  153. <Spinner
  154. android:id="@+id/SpinnerBaudRateCOMA"
  155. android:layout_width="0dp"
  156. android:layout_height="match_parent"
  157. android:layout_weight="1" />
  158. </LinearLayout>
  159. <View
  160. android:layout_width="1dp"
  161. android:layout_height="match_parent"
  162. android:background="@color/black" />
  163. <LinearLayout
  164. android:layout_width="0dp"
  165. android:layout_height="match_parent"
  166. android:layout_weight="1">
  167. <TextView
  168. android:layout_width="wrap_content"
  169. android:layout_height="match_parent"
  170. android:gravity="center"
  171. android:text="@string/databits" />
  172. <Spinner
  173. android:id="@+id/Spinner_databits1"
  174. android:layout_width="0dp"
  175. android:layout_height="match_parent"
  176. android:layout_weight="1" />
  177. </LinearLayout>
  178. <View
  179. android:layout_width="1dp"
  180. android:layout_height="match_parent"
  181. android:background="@color/black" />
  182. <LinearLayout
  183. android:layout_width="0dp"
  184. android:layout_height="match_parent"
  185. android:layout_weight="1">
  186. <TextView
  187. android:layout_width="wrap_content"
  188. android:layout_height="match_parent"
  189. android:gravity="center"
  190. android:text="@string/stopbits" />
  191. <Spinner
  192. android:id="@+id/Spinner_stopbits1"
  193. android:layout_width="0dp"
  194. android:layout_height="match_parent"
  195. android:layout_gravity="center"
  196. android:layout_weight="1"
  197. android:gravity="center" />
  198. </LinearLayout>
  199. <View
  200. android:layout_width="1dp"
  201. android:layout_height="match_parent"
  202. android:background="@color/black" />
  203. <LinearLayout
  204. android:layout_width="0dp"
  205. android:layout_height="match_parent"
  206. android:layout_weight="1">
  207. <TextView
  208. android:layout_width="wrap_content"
  209. android:layout_height="match_parent"
  210. android:gravity="center"
  211. android:text="@string/parity" />
  212. <Spinner
  213. android:id="@+id/Spinner_parity1"
  214. android:layout_width="0dp"
  215. android:layout_height="match_parent"
  216. android:layout_gravity="center"
  217. android:layout_weight="1" />
  218. </LinearLayout>
  219. <View
  220. android:layout_width="1dp"
  221. android:layout_height="match_parent"
  222. android:background="@color/black" />
  223. <ToggleButton
  224. android:id="@+id/toggleButtonCOMA"
  225. android:layout_width="wrap_content"
  226. android:layout_height="wrap_content"
  227. android:text="ToggleButton" />
  228. <View
  229. android:layout_width="1dp"
  230. android:layout_height="match_parent"
  231. android:background="@color/black" />
  232. </LinearLayout>
  233. <View
  234. android:layout_width="match_parent"
  235. android:layout_height="1dp"
  236. android:background="@color/black" />
  237. <View
  238. android:layout_width="match_parent"
  239. android:layout_height="10dp" />
  240. <LinearLayout
  241. android:id="@+id/LinearLayoutOption2COMA"
  242. android:layout_width="match_parent"
  243. android:layout_height="wrap_content"
  244. android:gravity="center_vertical">
  245. <TextView
  246. android:layout_width="wrap_content"
  247. android:layout_height="match_parent"
  248. android:gravity="center"
  249. android:text="@string/auto_send_time" />
  250. <EditText
  251. android:id="@+id/editTextTimeCOMA"
  252. android:layout_width="80dp"
  253. android:layout_height="wrap_content"
  254. android:inputType="number"
  255. android:text="500" />
  256. <TextView
  257. android:id="@+id/textView1"
  258. android:layout_width="wrap_content"
  259. android:layout_height="wrap_content"
  260. android:text="ms" />
  261. <CheckBox
  262. android:id="@+id/checkBoxAutoCOMA"
  263. android:layout_width="wrap_content"
  264. android:layout_height="wrap_content"
  265. android:text="@string/auto_send" />
  266. <Button
  267. android:id="@+id/ButtonSendCOMA"
  268. android:layout_width="wrap_content"
  269. android:layout_height="wrap_content"
  270. android:paddingLeft="10dp"
  271. android:text="@string/send" />
  272. </LinearLayout>
  273. <View
  274. android:layout_width="match_parent"
  275. android:layout_height="1dp"
  276. android:background="@color/black" />
  277. </LinearLayout>
  278. </LinearLayout>
  279. <LinearLayout
  280. android:layout_width="match_parent"
  281. android:layout_height="0dp"
  282. android:layout_marginLeft="16dp"
  283. android:layout_marginRight="16dp"
  284. android:layout_weight="1"
  285. android:orientation="horizontal">
  286. <TextView
  287. android:id="@+id/app_info"
  288. android:layout_width="wrap_content"
  289. android:layout_height="wrap_content"
  290. android:text="@string/app_info" />
  291. </LinearLayout>
  292. </LinearLayout>