activity_config.xml 13 KB

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