Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

activity_temp_humidity.xml 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:orientation="horizontal">
  11. <Button
  12. android:id="@+id/btn_slow"
  13. android:text="慢数据"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"/>
  16. <Button
  17. android:id="@+id/btn_fat"
  18. android:text="快数据"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"/>
  21. <Button
  22. android:id="@+id/btn_history"
  23. android:text="获取历史"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"/>
  26. <EditText
  27. android:id="@+id/et_history"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"/>
  30. </LinearLayout>
  31. <LinearLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:orientation="horizontal">
  35. <Button
  36. android:id="@+id/btn_show_history"
  37. android:text="记录"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"/>
  40. <Button
  41. android:id="@+id/btn_hear"
  42. android:text="心跳"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"/>
  45. <Button
  46. android:id="@+id/btn_clear"
  47. android:text="清屏"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"/>
  50. <TextView
  51. android:id="@+id/tv_result"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"/>
  54. </LinearLayout>
  55. <ListView
  56. android:id="@+id/listView"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"/>
  59. <ListView
  60. android:visibility="gone"
  61. android:id="@+id/list_view_history"
  62. android:layout_width="match_parent"
  63. android:layout_height="match_parent"/>
  64. </LinearLayout>