Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

activity_tpms_connect.xml 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:focusable="true"
  6. android:focusableInTouchMode="true"
  7. android:orientation="vertical"
  8. >
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="0dp"
  12. android:layout_weight="1"
  13. >
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="vertical"
  18. >
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:padding="10dp">
  23. <EditText
  24. android:id="@+id/et_type"
  25. android:layout_width="200dp"
  26. android:layout_height="wrap_content"
  27. android:hint="透传数据"
  28. android:text="4"
  29. />
  30. <Button
  31. android:id="@+id/btn1"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="发送"
  35. />
  36. <Button
  37. android:id="@+id/clear"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:text="清空"
  41. />
  42. </LinearLayout>
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:padding="10dp">
  47. <EditText
  48. android:id="@+id/et_unit_weight"
  49. android:layout_width="100dp"
  50. android:layout_height="wrap_content"
  51. android:digits="0123456789"
  52. android:hint="weight"
  53. android:maxLength="1"
  54. android:text="0"
  55. />
  56. <EditText
  57. android:id="@+id/et_unit_height"
  58. android:layout_width="100dp"
  59. android:layout_height="wrap_content"
  60. android:digits="0123456789"
  61. android:hint="height"
  62. android:maxLength="1"
  63. android:text="0"
  64. />
  65. <Button
  66. android:id="@+id/btn_set_unit"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="set_unit"
  70. />
  71. </LinearLayout>
  72. <LinearLayout
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:padding="10dp">
  76. <Button
  77. android:id="@+id/btn_get_did"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:text="get_did"
  81. />
  82. <Button
  83. android:id="@+id/btnVersion"
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:text="version"
  87. />
  88. <Button
  89. android:id="@+id/btnBattery"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:text="Battery"
  93. />
  94. </LinearLayout>
  95. </LinearLayout>
  96. </ScrollView>
  97. <ListView
  98. android:id="@+id/listview"
  99. android:layout_width="match_parent"
  100. android:layout_height="0dp"
  101. android:layout_weight="2"
  102. android:padding="10dp"
  103. android:stackFromBottom="true"
  104. android:transcriptMode="alwaysScroll"
  105. >
  106. </ListView>
  107. </LinearLayout>