activity_firmware_update.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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=".FirmwareUpdate">
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <LinearLayout
  13. xmlns:android="http://schemas.android.com/apk/res/android"
  14. xmlns:tools="http://schemas.android.com/tools"
  15. android:id="@+id/LinearLayout"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:layout_marginStart="8dp"
  19. android:layout_marginTop="8dp"
  20. android:layout_marginEnd="8dp"
  21. android:layout_marginBottom="8dp"
  22. android:orientation="vertical"
  23. app:layout_constraintBottom_toBottomOf="parent"
  24. app:layout_constraintEnd_toEndOf="parent"
  25. app:layout_constraintHorizontal_bias="1.0"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent"
  28. tools:context=".FirmwareUpdate">
  29. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  30. xmlns:tools="http://schemas.android.com/tools"
  31. android:id="@+id/LinearLayout1"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. android:layout_marginStart="8dp"
  35. android:layout_marginTop="8dp"
  36. android:layout_marginEnd="8dp"
  37. android:layout_marginBottom="8dp"
  38. android:orientation="horizontal"
  39. tools:context=".FirmwareUpdate">
  40. <TextView
  41. android:id="@+id/show"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:layout_marginTop="5dp"
  45. android:layout_marginBottom="5dp"
  46. android:layout_weight="1"
  47. android:ems="10"
  48. android:gravity="center"
  49. android:inputType="textPersonName"
  50. android:text="PID_VID"
  51. android:textSize="25dp"
  52. android:textColor="@color/text_white"/>
  53. <Button
  54. android:id="@+id/version"
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:layout_marginStart="0dp"
  58. android:layout_marginTop="5dp"
  59. android:layout_marginEnd="5dp"
  60. android:layout_marginBottom="5dp"
  61. android:layout_weight="2"
  62. android:text="@string/readversion"
  63. android:textAllCaps="false"
  64. android:textSize="16dp"
  65. app:layout_constraintEnd_toEndOf="parent"
  66. app:layout_constraintTop_toTopOf="parent" />
  67. </LinearLayout>
  68. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  69. xmlns:tools="http://schemas.android.com/tools"
  70. android:id="@+id/LinearLayout2"
  71. android:layout_width="match_parent"
  72. android:layout_height="match_parent"
  73. android:layout_marginStart="8dp"
  74. android:layout_marginTop="0dp"
  75. android:layout_marginEnd="8dp"
  76. android:layout_marginBottom="8dp"
  77. android:orientation="horizontal"
  78. app:layout_constraintBottom_toBottomOf="parent"
  79. app:layout_constraintEnd_toEndOf="parent"
  80. app:layout_constraintHorizontal_bias="0.724"
  81. app:layout_constraintStart_toStartOf="parent"
  82. app:layout_constraintTop_toTopOf="parent"
  83. app:layout_constraintVertical_bias="0.0"
  84. tools:context=".FirmwareUpdate">
  85. <demo.com.jay.buttondemo.DelEditText
  86. android:id="@+id/editsearch"
  87. android:layout_width="match_parent"
  88. android:layout_height="match_parent"
  89. android:layout_margin="5dp"
  90. android:layout_weight="20"
  91. android:background="@drawable/bg_frame_search"
  92. android:hint="@string/choosefile"
  93. android:maxLength="100"
  94. android:padding="5dp"
  95. android:singleLine="true" />
  96. <Button
  97. android:id="@+id/searchbutton"
  98. android:layout_width="match_parent"
  99. android:layout_height="match_parent"
  100. android:layout_marginStart="5dp"
  101. android:layout_marginTop="0dp"
  102. android:layout_marginEnd="5dp"
  103. android:layout_weight="70"
  104. android:text="…"
  105. android:textSize="25dp"
  106. app:layout_constraintBottom_toBottomOf="parent"
  107. app:layout_constraintEnd_toEndOf="parent"
  108. app:layout_constraintStart_toStartOf="parent"
  109. app:layout_constraintTop_toTopOf="parent" />
  110. </LinearLayout>
  111. <LinearLayout
  112. xmlns:android="http://schemas.android.com/apk/res/android"
  113. xmlns:tools="http://schemas.android.com/tools"
  114. android:id="@+id/LinearLayout3"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:layout_marginStart="8dp"
  118. android:layout_marginTop="0dp"
  119. android:layout_marginEnd="8dp"
  120. android:layout_marginBottom="8dp"
  121. android:orientation="vertical"
  122. app:layout_constraintBottom_toBottomOf="parent"
  123. app:layout_constraintEnd_toEndOf="parent"
  124. app:layout_constraintHorizontal_bias="0.724"
  125. app:layout_constraintStart_toStartOf="parent"
  126. app:layout_constraintTop_toTopOf="parent"
  127. app:layout_constraintVertical_bias="0.0"
  128. tools:context=".FirmwareUpdate">
  129. <Button
  130. android:id="@+id/btnUpdate"
  131. android:layout_width="match_parent"
  132. android:layout_height="match_parent"
  133. android:layout_marginStart="8dp"
  134. android:layout_marginTop="8dp"
  135. android:layout_marginEnd="8dp"
  136. android:layout_marginBottom="0dp"
  137. android:text="@string/update"
  138. android:textAllCaps="false"
  139. android:textSize="25dp"
  140. app:layout_constraintBottom_toBottomOf="parent"
  141. app:layout_constraintEnd_toEndOf="parent"
  142. app:layout_constraintStart_toStartOf="parent"
  143. app:layout_constraintTop_toTopOf="parent"
  144. app:layout_constraintVertical_bias="0.428" />
  145. <Button
  146. android:id="@+id/btnAutoUpdate"
  147. android:layout_width="match_parent"
  148. android:layout_height="match_parent"
  149. android:layout_marginStart="8dp"
  150. android:layout_marginTop="0dp"
  151. android:layout_marginEnd="8dp"
  152. android:layout_marginBottom="8dp"
  153. android:text="@string/autoupdate"
  154. android:textAllCaps="false"
  155. android:textSize="25dp"
  156. app:layout_constraintBottom_toBottomOf="parent"
  157. app:layout_constraintEnd_toEndOf="parent"
  158. app:layout_constraintStart_toStartOf="parent"
  159. app:layout_constraintTop_toTopOf="parent"
  160. app:layout_constraintVertical_bias="0.428" />
  161. <LinearLayout
  162. xmlns:tools="http://schemas.android.com/tools"
  163. android:id="@+id/TextViewLinearLayout"
  164. android:layout_width="match_parent"
  165. android:layout_height="match_parent"
  166. android:layout_marginStart="8dp"
  167. android:layout_marginTop="0dp"
  168. android:layout_marginEnd="8dp"
  169. android:layout_marginBottom="8dp"
  170. android:orientation="vertical"
  171. app:layout_constraintBottom_toBottomOf="parent"
  172. app:layout_constraintEnd_toEndOf="parent"
  173. app:layout_constraintHorizontal_bias="0.724"
  174. app:layout_constraintStart_toStartOf="parent"
  175. app:layout_constraintTop_toTopOf="parent"
  176. app:layout_constraintVertical_bias="0.0"
  177. tools:context=".FirmwareUpdate">
  178. <EditText
  179. android:id="@+id/error"
  180. android:layout_width="match_parent"
  181. android:layout_height="240dp"
  182. android:layout_marginStart="0dp"
  183. android:layout_marginTop="0dp"
  184. android:background="@drawable/bg_frame_search"
  185. android:text=""
  186. android:textSize="20dp" />
  187. <TextView
  188. android:id="@+id/updataresult"
  189. android:layout_width="match_parent"
  190. android:layout_height="match_parent"
  191. android:layout_marginTop="5dp"
  192. android:text=""
  193. android:textSize="25dp"
  194. android:textColor="@color/back_red"/>
  195. </LinearLayout>
  196. </LinearLayout>
  197. </LinearLayout>
  198. </ScrollView>
  199. </android.support.constraint.ConstraintLayout>