activity_config.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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=".Config">
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:fillViewport="true">
  13. <LinearLayout
  14. android:id="@+id/LinearLayout"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:layout_marginStart="8dp"
  18. android:layout_marginEnd="8dp"
  19. android:orientation="vertical"
  20. app:layout_constraintBottom_toBottomOf="parent"
  21. app:layout_constraintEnd_toEndOf="parent"
  22. app:layout_constraintHorizontal_bias="1.0"
  23. app:layout_constraintStart_toStartOf="parent"
  24. app:layout_constraintTop_toTopOf="parent"
  25. app:layout_constraintVertical_bias="0.0"
  26. tools:context=".Config">
  27. <LinearLayout
  28. xmlns:android="http://schemas.android.com/apk/res/android"
  29. xmlns:tools="http://schemas.android.com/tools"
  30. android:id="@+id/LinearLayout1"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:orientation="horizontal"
  34. app:layout_constraintBottom_toBottomOf="parent"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. app:layout_constraintHorizontal_bias="0.492"
  37. app:layout_constraintStart_toStartOf="parent"
  38. app:layout_constraintTop_toTopOf="parent"
  39. app:layout_constraintVertical_bias="0.012"
  40. tools:context=".Config">
  41. <demo.com.jay.buttondemo.DelEditText
  42. android:id="@+id/editsearch"
  43. android:layout_width="match_parent"
  44. android:layout_height="match_parent"
  45. android:layout_margin="5dp"
  46. android:layout_weight="18"
  47. android:background="@drawable/bg_frame_search"
  48. android:hint="@string/chooseconfig"
  49. android:maxLength="200"
  50. android:padding="5dp"
  51. android:singleLine="true" />
  52. <Button
  53. android:id="@+id/localfile"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. android:layout_margin="5dp"
  57. android:layout_weight="65"
  58. android:text="@string/localfile"
  59. android:textSize="18dp"
  60. android:textAllCaps="false"
  61. app:layout_constraintEnd_toEndOf="parent"
  62. app:layout_constraintTop_toTopOf="parent" />
  63. <Button
  64. android:id="@+id/udiskfile"
  65. android:layout_width="match_parent"
  66. android:layout_height="match_parent"
  67. android:layout_margin="5dp"
  68. android:layout_weight="65"
  69. android:text="@string/udiskfile"
  70. android:textSize="18dp"
  71. android:textAllCaps="false"
  72. app:layout_constraintEnd_toEndOf="parent"
  73. app:layout_constraintTop_toTopOf="parent" />
  74. </LinearLayout>
  75. <LinearLayout
  76. android:layout_width="match_parent"
  77. android:layout_height="48dp"
  78. android:background="#FFFFFF">
  79. <TextView
  80. android:id="@+id/tvsample"
  81. android:layout_width="match_parent"
  82. android:layout_height="fill_parent"
  83. android:layout_weight="1.0"
  84. android:gravity="center"
  85. android:text="@string/sample"
  86. android:textColor="#000000" />
  87. <TextView
  88. android:id="@+id/tvmoduleswitch"
  89. android:layout_width="match_parent"
  90. android:layout_height="fill_parent"
  91. android:layout_weight="1.0"
  92. android:gravity="center"
  93. android:text="@string/moduleswitch"
  94. android:textColor="#000000" />
  95. <TextView
  96. android:id="@+id/tvnormal"
  97. android:layout_width="match_parent"
  98. android:layout_height="fill_parent"
  99. android:layout_weight="1.0"
  100. android:gravity="center"
  101. android:text="@string/normalsetting"
  102. android:textColor="#000000" />
  103. <TextView
  104. android:id="@+id/tvchannel"
  105. android:layout_width="match_parent"
  106. android:layout_height="fill_parent"
  107. android:layout_weight="1.0"
  108. android:gravity="center"
  109. android:text="@string/channelsetting"
  110. android:textColor="#000000" />
  111. <TextView
  112. android:id="@+id/tvpen"
  113. android:layout_width="match_parent"
  114. android:layout_height="fill_parent"
  115. android:layout_weight="1.0"
  116. android:gravity="center"
  117. android:text="@string/pensetting"
  118. android:textColor="#000000" />
  119. <TextView
  120. android:id="@+id/tvplamrestrain"
  121. android:layout_width="match_parent"
  122. android:layout_height="fill_parent"
  123. android:layout_weight="1.0"
  124. android:gravity="center"
  125. android:text="@string/hvsetting"
  126. android:textColor="#000000" />
  127. <TextView
  128. android:id="@+id/tvkey"
  129. android:layout_width="match_parent"
  130. android:layout_height="fill_parent"
  131. android:layout_weight="1.0"
  132. android:gravity="center"
  133. android:text="@string/keysetting"
  134. android:textColor="#000000" />
  135. <TextView
  136. android:id="@+id/tvhopping"
  137. android:layout_width="match_parent"
  138. android:layout_height="fill_parent"
  139. android:layout_weight="1.0"
  140. android:gravity="center"
  141. android:text="@string/hoppingsetting"
  142. android:textColor="#000000" />
  143. <TextView
  144. android:id="@+id/tvcfgram"
  145. android:layout_width="match_parent"
  146. android:layout_height="fill_parent"
  147. android:layout_weight="1.0"
  148. android:gravity="center"
  149. android:text="Cfg Ram"
  150. android:textColor="#000000" />
  151. </LinearLayout>
  152. <ImageView
  153. android:id="@+id/img_cursor"
  154. android:layout_width="fill_parent"
  155. android:layout_height="wrap_content"
  156. android:scaleType="matrix"
  157. android:src="@mipmap/line" />
  158. <LinearLayout
  159. android:id="@+id/buttonLinearLayout"
  160. android:layout_width="match_parent"
  161. android:layout_height="match_parent"
  162. android:layout_marginTop="1dp"
  163. android:background="@android:color/white"
  164. android:baselineAligned="false"
  165. android:orientation="vertical"
  166. tools:context=".Config">
  167. <LinearLayout
  168. android:id="@+id/LinearLayout2"
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content"
  171. android:orientation="vertical"
  172. tools:context=".Config">
  173. <EditText
  174. android:id="@+id/configdata"
  175. android:layout_width="match_parent"
  176. android:layout_height="wrap_content"
  177. android:layout_marginStart="8dp"
  178. android:layout_marginTop="8dp"
  179. android:layout_marginEnd="8dp"
  180. android:layout_marginBottom="8dp"
  181. android:layout_weight="1"
  182. android:ems="10"
  183. android:inputType="textMultiLine"
  184. android:text=""
  185. android:textColor="@color/back_red" />
  186. <TextView
  187. android:id="@+id/show"
  188. android:layout_width="match_parent"
  189. android:layout_height="wrap_content"
  190. android:layout_marginStart="8dp"
  191. android:layout_marginTop="8dp"
  192. android:layout_marginEnd="8dp"
  193. android:layout_marginBottom="8dp"
  194. android:layout_weight="2"
  195. android:ems="10"
  196. android:inputType="textMultiLine"
  197. android:text=""
  198. android:textColor="@color/back_red" />
  199. <LinearLayout xmlns:tools="http://schemas.android.com/tools"
  200. android:id="@+id/SaveCfgLinearLayout"
  201. android:layout_width="match_parent"
  202. android:layout_height="wrap_content"
  203. android:orientation="horizontal"
  204. tools:context=".Config">
  205. <EditText
  206. android:id="@+id/editname"
  207. android:layout_width="match_parent"
  208. android:layout_height="match_parent"
  209. android:layout_marginBottom="0dp"
  210. android:layout_weight="1"
  211. android:hint="@string/nameandformat"
  212. android:textSize="16dp"
  213. tools:layout_editor_absoluteX="0dp"
  214. tools:layout_editor_absoluteY="355dp" />
  215. <Button
  216. android:id="@+id/savecfg"
  217. android:layout_width="match_parent"
  218. android:layout_height="wrap_content"
  219. android:layout_marginStart="0dp"
  220. android:layout_marginTop="0dp"
  221. android:layout_marginEnd="0dp"
  222. android:layout_marginBottom="0dp"
  223. android:layout_weight="2"
  224. android:text="@string/savefile"
  225. android:textAllCaps="false"
  226. android:textSize="22dp" />
  227. </LinearLayout>
  228. </LinearLayout>
  229. <LinearLayout xmlns:tools="http://schemas.android.com/tools"
  230. android:id="@+id/LinearLayout3"
  231. android:layout_width="match_parent"
  232. android:layout_height="wrap_content"
  233. android:orientation="horizontal"
  234. tools:context=".Config">
  235. <TextView
  236. android:id="@+id/venderid"
  237. android:layout_width="match_parent"
  238. android:layout_height="wrap_content"
  239. android:layout_marginStart="0dp"
  240. android:layout_marginTop="8dp"
  241. android:layout_marginEnd="0dp"
  242. android:layout_marginBottom="8dp"
  243. android:layout_weight="1"
  244. android:ems="10"
  245. android:gravity="center"
  246. android:inputType="textMultiLine"
  247. android:text="VenderID"
  248. android:textColor="@color/back_red"
  249. android:textSize="18dp" />
  250. <Button
  251. android:id="@+id/readcfg"
  252. android:layout_width="match_parent"
  253. android:layout_height="wrap_content"
  254. android:layout_marginStart="0dp"
  255. android:layout_marginTop="8dp"
  256. android:layout_marginEnd="0dp"
  257. android:layout_marginBottom="8dp"
  258. android:layout_weight="1"
  259. android:text="@string/read"
  260. android:textAllCaps="false"
  261. android:textSize="22dp" />
  262. <Button
  263. android:id="@+id/sendcfg"
  264. android:layout_width="match_parent"
  265. android:layout_height="wrap_content"
  266. android:layout_marginStart="0dp"
  267. android:layout_marginTop="8dp"
  268. android:layout_marginEnd="0dp"
  269. android:layout_marginBottom="8dp"
  270. android:layout_weight="1"
  271. android:text="@string/send"
  272. android:textAllCaps="false"
  273. android:textSize="22dp" />
  274. </LinearLayout>
  275. </LinearLayout>
  276. </LinearLayout>
  277. </ScrollView>
  278. </android.support.constraint.ConstraintLayout>