You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_broadcast_scale.xml 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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:orientation="vertical">
  6. <ScrollView
  7. android:layout_width="match_parent"
  8. android:layout_height="0dp"
  9. android:layout_weight="0.5">
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:orientation="vertical">
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="horizontal"
  18. android:layout_marginStart="10dp"
  19. android:layout_marginTop="10dp"
  20. android:gravity="center_vertical"
  21. >
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:text="Mac:"
  26. />
  27. <TextView
  28. android:id="@+id/tv_broadcast_mac"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:text=""
  32. android:layout_marginStart="5dp"
  33. />
  34. </LinearLayout>
  35. <TextView
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_marginStart="10dp"
  39. android:layout_marginTop="10dp"
  40. android:text="Weight:" />
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:gravity="center_vertical"
  45. android:padding="10dp">
  46. <RadioGroup
  47. android:id="@+id/radio_weight"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:orientation="horizontal">
  51. <RadioButton
  52. android:id="@+id/radio_weight_kg"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:checked="true"
  56. android:text="kg" />
  57. <RadioButton
  58. android:id="@+id/radio_weight_jin"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:text="jin" />
  62. <RadioButton
  63. android:id="@+id/radio_weight_lb"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="lb:oz" />
  67. <RadioButton
  68. android:id="@+id/radio_weight_oz"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:text="oz" />
  72. <RadioButton
  73. android:id="@+id/radio_weight_st_lb"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="st:lb" />
  77. <RadioButton
  78. android:id="@+id/radio_weight_g"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:text="g" />
  82. <RadioButton
  83. android:id="@+id/radio_weight_lb_lb"
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:text="lb" />
  87. </RadioGroup>
  88. </LinearLayout>
  89. <LinearLayout
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:orientation="horizontal"
  93. android:layout_marginStart="10dp"
  94. android:layout_marginTop="10dp"
  95. android:gravity="center_vertical"
  96. >
  97. <TextView
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:text="Temp:"
  101. />
  102. <TextView
  103. android:id="@+id/tv_broadcast_temp"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:text="30℃"
  107. android:layout_marginStart="5dp"
  108. />
  109. </LinearLayout>
  110. <LinearLayout
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:padding="10dp">
  114. <Button
  115. android:id="@+id/clear"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:text="@string/clear"
  119. android:textAllCaps="false" />
  120. <Button
  121. android:id="@+id/open"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:text="开始"
  125. android:textAllCaps="false" />
  126. <Button
  127. android:id="@+id/stop"
  128. android:layout_width="wrap_content"
  129. android:layout_height="wrap_content"
  130. android:text="停止"
  131. android:textAllCaps="false" />
  132. </LinearLayout>
  133. </LinearLayout>
  134. </ScrollView>
  135. <ListView
  136. android:id="@+id/listview"
  137. android:layout_width="match_parent"
  138. android:layout_height="0dp"
  139. android:layout_weight="1"
  140. android:padding="10dp"
  141. android:stackFromBottom="true"
  142. android:transcriptMode="alwaysScroll">
  143. </ListView>
  144. </LinearLayout>