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 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. android:padding="5dp"
  9. tools:context=".MainActivity">
  10. <TextView
  11. android:id="@+id/tvMainActivityDeviceListRecyclerView"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  15. android:text="Registered Devices">
  16. </TextView>
  17. <androidx.recyclerview.widget.RecyclerView
  18. android:id="@+id/deviceListRecyclerView"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:layout_weight="3"
  22. tools:listitem="@layout/device_item">
  23. </androidx.recyclerview.widget.RecyclerView>
  24. <TextView
  25. android:id="@+id/tvMainActivityAlarmHistoryListRecyclerView"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  29. android:text="Alarm History List">
  30. </TextView>
  31. <androidx.recyclerview.widget.RecyclerView
  32. android:id="@+id/alarmHistoryListRecyclerView"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:layout_weight="3"
  36. tools:listitem="@layout/alarm_history_item">
  37. </androidx.recyclerview.widget.RecyclerView>
  38. <SurfaceView
  39. android:id="@+id/surfaceViewMainActivity"
  40. android:layout_width="1dp"
  41. android:layout_height="1dp">
  42. </SurfaceView>
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:orientation="vertical"
  47. android:layout_weight="3">
  48. <LinearLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent"
  51. android:orientation="horizontal"
  52. android:layout_weight="1">
  53. <Button
  54. android:id="@+id/audiodetectionButton"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginEnd="2dp"
  58. android:layout_gravity="center_vertical"
  59. android:layout_weight="1"
  60. android:text="Audiodetection">
  61. </Button>
  62. <Button
  63. android:id="@+id/videodetectionButton"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_marginStart="2dp"
  67. android:layout_gravity="center_vertical"
  68. android:layout_weight="1"
  69. android:text="Videodetection">
  70. </Button>
  71. </LinearLayout>
  72. <LinearLayout
  73. android:layout_width="match_parent"
  74. android:layout_height="match_parent"
  75. android:orientation="horizontal"
  76. android:layout_weight="1">
  77. <Button
  78. android:id="@+id/accelerometerButton"
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:layout_gravity="center_vertical"
  82. android:layout_weight="1"
  83. android:text="Accelerometer">
  84. </Button>
  85. </LinearLayout>
  86. <LinearLayout
  87. android:layout_width="match_parent"
  88. android:layout_height="match_parent"
  89. android:orientation="horizontal"
  90. android:layout_weight="1">
  91. <Button
  92. android:id="@+id/audiodetectionAndAccelerometerButton"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_marginEnd="2dp"
  96. android:layout_gravity="center_vertical"
  97. android:layout_weight="1"
  98. android:text="Audiodetection + Accelerometer">
  99. </Button>
  100. <Button
  101. android:id="@+id/videodetectionAndAccelerometerButton"
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_marginStart="2dp"
  105. android:layout_gravity="center_vertical"
  106. android:layout_weight="1"
  107. android:text="Videodetection + Accelerometer">
  108. </Button>
  109. </LinearLayout>
  110. </LinearLayout>
  111. </LinearLayout>