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_main.xml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. android:paddingLeft="@dimen/activity_horizontal_margin"
  8. android:paddingTop="@dimen/activity_vertical_margin"
  9. android:paddingRight="@dimen/activity_horizontal_margin"
  10. android:paddingBottom="@dimen/activity_vertical_margin">
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:gravity="center"
  15. android:orientation="horizontal">
  16. <Button
  17. android:id="@+id/btn_get_info"
  18. android:layout_width="0dp"
  19. android:layout_height="match_parent"
  20. android:layout_weight="1"
  21. android:text="扫描(获取胎压信息)" />
  22. <Button
  23. android:id="@+id/btn_clear_log"
  24. android:layout_width="0dp"
  25. android:layout_height="match_parent"
  26. android:layout_weight="1"
  27. android:text="清空Log" />
  28. <Button
  29. android:id="@+id/btn_stop_scan"
  30. android:layout_width="0dp"
  31. android:layout_height="match_parent"
  32. android:layout_weight="1"
  33. android:text="停止扫描" />
  34. </LinearLayout>
  35. <LinearLayout
  36. android:id="@+id/ll_set_id"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:background="@drawable/bg"
  40. android:gravity="center"
  41. android:orientation="vertical">
  42. <LinearLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:orientation="horizontal">
  46. <TextView
  47. android:id="@+id/tv_left_front"
  48. style="@style/TVTyreId" />
  49. <TextView
  50. android:id="@+id/tv_right_front"
  51. style="@style/TVTyreId" />
  52. </LinearLayout>
  53. <LinearLayout
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:orientation="horizontal">
  57. <TextView
  58. android:id="@+id/tv_left_rear"
  59. style="@style/TVTyreId" />
  60. <TextView
  61. android:id="@+id/tv_right_rear"
  62. style="@style/TVTyreId" />
  63. </LinearLayout>
  64. </LinearLayout>
  65. <ListView
  66. android:id="@+id/lv_show_log"
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent" />
  69. </LinearLayout>