activity_config.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. <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/localfile"
  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="@string/localfile"
  55. android:textSize="18dp"
  56. android:textAllCaps="false"
  57. app:layout_constraintEnd_toEndOf="parent"
  58. app:layout_constraintTop_toTopOf="parent" />
  59. <Button
  60. android:id="@+id/udiskfile"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:layout_margin="5dp"
  64. android:layout_weight="65"
  65. android:text="@string/udiskfile"
  66. android:textSize="18dp"
  67. android:textAllCaps="false"
  68. app:layout_constraintEnd_toEndOf="parent"
  69. app:layout_constraintTop_toTopOf="parent" />
  70. </LinearLayout>
  71. <LinearLayout
  72. android:layout_width="match_parent"
  73. android:layout_height="48dp"
  74. android:background="#FFFFFF">
  75. <TextView
  76. android:id="@+id/tvsample"
  77. android:layout_width="match_parent"
  78. android:layout_height="fill_parent"
  79. android:layout_weight="1.0"
  80. android:gravity="center"
  81. android:text="@string/sample"
  82. android:textColor="#000000" />
  83. <TextView
  84. android:id="@+id/tvmoduleswitch"
  85. android:layout_width="match_parent"
  86. android:layout_height="fill_parent"
  87. android:layout_weight="1.0"
  88. android:gravity="center"
  89. android:text="@string/moduleswitch"
  90. android:textColor="#000000" />
  91. <TextView
  92. android:id="@+id/tvnormal"
  93. android:layout_width="match_parent"
  94. android:layout_height="fill_parent"
  95. android:layout_weight="1.0"
  96. android:gravity="center"
  97. android:text="@string/normalsetting"
  98. android:textColor="#000000" />
  99. <TextView
  100. android:id="@+id/tvchannel"
  101. android:layout_width="match_parent"
  102. android:layout_height="fill_parent"
  103. android:layout_weight="1.0"
  104. android:gravity="center"
  105. android:text="@string/channelsetting"
  106. android:textColor="#000000" />
  107. <TextView
  108. android:id="@+id/tvpen"
  109. android:layout_width="match_parent"
  110. android:layout_height="fill_parent"
  111. android:layout_weight="1.0"
  112. android:gravity="center"
  113. android:text="@string/pensetting"
  114. android:textColor="#000000" />
  115. <TextView
  116. android:id="@+id/tvplamrestrain"
  117. android:layout_width="match_parent"
  118. android:layout_height="fill_parent"
  119. android:layout_weight="1.0"
  120. android:gravity="center"
  121. android:text="@string/hvsetting"
  122. android:textColor="#000000" />
  123. <TextView
  124. android:id="@+id/tvkey"
  125. android:layout_width="match_parent"
  126. android:layout_height="fill_parent"
  127. android:layout_weight="1.0"
  128. android:gravity="center"
  129. android:text="@string/keysetting"
  130. android:textColor="#000000" />
  131. <TextView
  132. android:id="@+id/tvhopping"
  133. android:layout_width="match_parent"
  134. android:layout_height="fill_parent"
  135. android:layout_weight="1.0"
  136. android:gravity="center"
  137. android:text="@string/hoppingsetting"
  138. android:textColor="#000000" />
  139. <TextView
  140. android:id="@+id/tvcfgram"
  141. android:layout_width="match_parent"
  142. android:layout_height="fill_parent"
  143. android:layout_weight="1.0"
  144. android:gravity="center"
  145. android:text="Cfg Ram"
  146. android:textColor="#000000" />
  147. </LinearLayout>
  148. <ImageView
  149. android:id="@+id/img_cursor"
  150. android:layout_width="fill_parent"
  151. android:layout_height="wrap_content"
  152. android:scaleType="matrix"
  153. android:src="@mipmap/line" />
  154. <android.support.v4.view.ViewPager
  155. android:id="@+id/vpagercfg"
  156. android:layout_width="match_parent"
  157. android:layout_height="match_parent"
  158. android:layout_gravity="center"
  159. android:layout_weight="1"
  160. android:flipInterval="30"
  161. android:persistentDrawingCache="animation" />
  162. <LinearLayout
  163. android:id="@+id/buttonLinearLayout"
  164. android:layout_width="match_parent"
  165. android:layout_height="150dp"
  166. android:layout_marginTop="1dp"
  167. android:background="@android:color/white"
  168. android:baselineAligned="false"
  169. android:orientation="vertical"
  170. tools:context=".Config">
  171. <LinearLayout
  172. android:id="@+id/LinearLayout2"
  173. android:layout_width="match_parent"
  174. android:layout_height="wrap_content"
  175. android:orientation="vertical"
  176. tools:context=".Config">
  177. <TextView
  178. android:id="@+id/show"
  179. android:layout_width="match_parent"
  180. android:layout_height="wrap_content"
  181. android:layout_marginStart="8dp"
  182. android:layout_marginTop="8dp"
  183. android:layout_marginEnd="8dp"
  184. android:layout_marginBottom="8dp"
  185. android:ems="10"
  186. android:inputType="textMultiLine"
  187. android:text=""
  188. android:textColor="@color/back_red" />
  189. <LinearLayout xmlns:tools="http://schemas.android.com/tools"
  190. android:id="@+id/SaveCfgLinearLayout"
  191. android:layout_width="match_parent"
  192. android:layout_height="wrap_content"
  193. android:orientation="horizontal"
  194. tools:context=".Config">
  195. <EditText
  196. android:id="@+id/editname"
  197. android:layout_width="match_parent"
  198. android:layout_height="match_parent"
  199. android:layout_marginBottom="0dp"
  200. android:layout_weight="1"
  201. android:hint="@string/nameandformat"
  202. android:textSize="16dp"
  203. tools:layout_editor_absoluteX="0dp"
  204. tools:layout_editor_absoluteY="355dp" />
  205. <Button
  206. android:id="@+id/savecfg"
  207. android:layout_width="match_parent"
  208. android:layout_height="wrap_content"
  209. android:layout_marginStart="0dp"
  210. android:layout_marginTop="0dp"
  211. android:layout_marginEnd="0dp"
  212. android:layout_marginBottom="0dp"
  213. android:layout_weight="2"
  214. android:text="@string/savefile"
  215. android:textAllCaps="false"
  216. android:textSize="22dp" />
  217. </LinearLayout>
  218. </LinearLayout>
  219. <LinearLayout xmlns:tools="http://schemas.android.com/tools"
  220. android:id="@+id/LinearLayout3"
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:orientation="horizontal"
  224. tools:context=".Config">
  225. <TextView
  226. android:id="@+id/venderid"
  227. android:layout_width="match_parent"
  228. android:layout_height="wrap_content"
  229. android:layout_marginStart="0dp"
  230. android:layout_marginTop="8dp"
  231. android:layout_marginEnd="0dp"
  232. android:layout_marginBottom="8dp"
  233. android:layout_weight="1"
  234. android:ems="10"
  235. android:gravity="center"
  236. android:inputType="textMultiLine"
  237. android:text="VenderID"
  238. android:textColor="@color/back_red"
  239. android:textSize="18dp" />
  240. <Button
  241. android:id="@+id/readcfg"
  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/read"
  250. android:textAllCaps="false"
  251. android:textSize="22dp" />
  252. <Button
  253. android:id="@+id/sendcfg"
  254. android:layout_width="match_parent"
  255. android:layout_height="wrap_content"
  256. android:layout_marginStart="0dp"
  257. android:layout_marginTop="8dp"
  258. android:layout_marginEnd="0dp"
  259. android:layout_marginBottom="8dp"
  260. android:layout_weight="1"
  261. android:text="@string/send"
  262. android:textAllCaps="false"
  263. android:textSize="22dp" />
  264. </LinearLayout>
  265. </LinearLayout>
  266. </LinearLayout>
  267. </android.support.constraint.ConstraintLayout>