activity_config.xml 13 KB

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