activity_usbsetting.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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=".UsbSetting">
  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=".UsbSetting">
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="48dp"
  26. android:background="#FFFFFF">
  27. <TextView
  28. android:id="@+id/tvusbsetting"
  29. android:layout_width="match_parent"
  30. android:layout_height="fill_parent"
  31. android:layout_weight="1.0"
  32. android:gravity="center"
  33. android:text="Usb Setting"
  34. android:textColor="#000000" />
  35. </LinearLayout>
  36. <ImageView
  37. android:id="@+id/img_cursor"
  38. android:layout_width="fill_parent"
  39. android:layout_height="wrap_content"
  40. android:scaleType="matrix"
  41. android:src="@mipmap/line" />
  42. <android.support.v4.view.ViewPager
  43. android:id="@+id/vpagercfg"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:layout_gravity="center"
  47. android:layout_weight="1"
  48. android:flipInterval="30"
  49. android:persistentDrawingCache="animation" />
  50. <LinearLayout
  51. android:id="@+id/buttonLinearLayout"
  52. android:layout_width="match_parent"
  53. android:layout_height="150dp"
  54. android:layout_marginTop="1dp"
  55. android:background="@android:color/white"
  56. android:baselineAligned="false"
  57. android:orientation="vertical"
  58. tools:context=".UsbSetting">
  59. <LinearLayout
  60. android:id="@+id/LinearLayout2"
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:orientation="vertical"
  64. tools:context=".UsbSetting">
  65. <TextView
  66. android:id="@+id/show"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginStart="8dp"
  70. android:layout_marginTop="8dp"
  71. android:layout_marginEnd="8dp"
  72. android:layout_marginBottom="8dp"
  73. android:ems="10"
  74. android:inputType="textMultiLine"
  75. android:text=""
  76. android:textColor="@color/back_red" />
  77. <LinearLayout xmlns:tools="http://schemas.android.com/tools"
  78. android:id="@+id/SaveCfgLinearLayout"
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:orientation="horizontal"
  82. tools:context=".UsbSetting">
  83. </LinearLayout>
  84. </LinearLayout>
  85. <LinearLayout xmlns:tools="http://schemas.android.com/tools"
  86. android:id="@+id/LinearLayout3"
  87. android:layout_width="match_parent"
  88. android:layout_height="wrap_content"
  89. android:orientation="horizontal"
  90. tools:context=".UsbSetting">
  91. <TextView
  92. android:id="@+id/venderid"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_marginStart="0dp"
  96. android:layout_marginTop="8dp"
  97. android:layout_marginEnd="0dp"
  98. android:layout_marginBottom="8dp"
  99. android:layout_weight="1"
  100. android:ems="10"
  101. android:gravity="center"
  102. android:inputType="textMultiLine"
  103. android:text="VenderID"
  104. android:textColor="@color/back_red"
  105. android:textSize="18dp" />
  106. <Button
  107. android:id="@+id/readcfg"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:layout_marginStart="0dp"
  111. android:layout_marginTop="8dp"
  112. android:layout_marginEnd="0dp"
  113. android:layout_marginBottom="8dp"
  114. android:layout_weight="1"
  115. android:text="@string/read"
  116. android:textAllCaps="false"
  117. android:textSize="22dp" />
  118. <Button
  119. android:id="@+id/sendcfg"
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content"
  122. android:layout_marginStart="0dp"
  123. android:layout_marginTop="8dp"
  124. android:layout_marginEnd="0dp"
  125. android:layout_marginBottom="8dp"
  126. android:layout_weight="1"
  127. android:text="@string/send"
  128. android:textAllCaps="false"
  129. android:textSize="22dp" />
  130. </LinearLayout>
  131. </LinearLayout>
  132. </LinearLayout>
  133. </android.support.constraint.ConstraintLayout>