private Sensor accelerometerSensor; | private Sensor accelerometerSensor; | ||||
private TextView accelerometerStatusMessage; | private TextView accelerometerStatusMessage; | ||||
private TextView accelerometerDataTV; | private TextView accelerometerDataTV; | ||||
private TextView accelerometerWarningTV; | |||||
private TextView tvAccelerometerdeviceListRecyclerView; | |||||
private TextView tvAccelerometeralarmHistoryListRecyclerView; | |||||
private Button backToMainActivityButton; | private Button backToMainActivityButton; | ||||
private AccelerometerViewModel mAccelerometerViewModel; | private AccelerometerViewModel mAccelerometerViewModel; | ||||
private Permission permission = new Permission(); | private Permission permission = new Permission(); | ||||
accelerometerStatusMessage = (TextView) findViewById(R.id.tvAccelerometerStatusmessage); | accelerometerStatusMessage = (TextView) findViewById(R.id.tvAccelerometerStatusmessage); | ||||
accelerometerDataTV = (TextView) findViewById(R.id.tvAccelerometerData); | accelerometerDataTV = (TextView) findViewById(R.id.tvAccelerometerData); | ||||
accelerometerWarningTV = (TextView) findViewById(R.id.tvAccelerometerWarning); | |||||
tvAccelerometerdeviceListRecyclerView = (TextView) findViewById(R.id.tvAccelerometerdeviceListRecyclerView); | |||||
tvAccelerometeralarmHistoryListRecyclerView = (TextView) findViewById(R.id.tvAccelerometeralarmHistoryListRecyclerView); | |||||
backToMainActivityButton = (Button) findViewById(R.id.accelerometerBackToMainActivity); | backToMainActivityButton = (Button) findViewById(R.id.accelerometerBackToMainActivity); | ||||
RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); | RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); |
public class AudiodetectionActivity extends AppCompatActivity { | public class AudiodetectionActivity extends AppCompatActivity { | ||||
private TextView microfonStatusMessage; | private TextView microfonStatusMessage; | ||||
private TextView tvAAudiodetectionAlarmHistoryListRecyclerView; | |||||
private TextView tvAudiodetectionDeviceListRecyclerView; | |||||
private Button backToMainActivityButton; | private Button backToMainActivityButton; | ||||
private Permission permission = new Permission(); | private Permission permission = new Permission(); | ||||
private MicrofonViewModel mMicrofonViewModel; | private MicrofonViewModel mMicrofonViewModel; | ||||
setContentView(R.layout.activity_audiodetection); | setContentView(R.layout.activity_audiodetection); | ||||
microfonStatusMessage = (TextView) findViewById(R.id.tvAudiodetectionStatusmessage); | microfonStatusMessage = (TextView) findViewById(R.id.tvAudiodetectionStatusmessage); | ||||
tvAAudiodetectionAlarmHistoryListRecyclerView = (TextView) findViewById(R.id.tvAudiodetectionAlarmHistoryListRecyclerView); | |||||
tvAudiodetectionDeviceListRecyclerView = (TextView) findViewById(R.id.tvAudiodetectionDeviceListRecyclerView); | |||||
backToMainActivityButton = (Button) findViewById(R.id.audiodetectorBackToMainActivity); | backToMainActivityButton = (Button) findViewById(R.id.audiodetectorBackToMainActivity); | ||||
RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); | RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); |
private SensorManager accelerometerManager; | private SensorManager accelerometerManager; | ||||
private Sensor accelerometerSensor; | private Sensor accelerometerSensor; | ||||
private TextView audiodetectionAndAccelerometerStatusMessage; | private TextView audiodetectionAndAccelerometerStatusMessage; | ||||
private TextView tvAudiodetectionAndAccelerometerDeviceListRecyclerView; | |||||
private TextView tvAudiodetectionAndAccelerometerAlarmHistoryListRecyclerView; | |||||
private AudiodetectionAndAccelerometerViewModel mAudiodetectionAndAccelerometerViewModel; | private AudiodetectionAndAccelerometerViewModel mAudiodetectionAndAccelerometerViewModel; | ||||
private Button backToMainActivity; | private Button backToMainActivity; | ||||
setContentView(R.layout.activity_audiodetection_and_accelerometer); | setContentView(R.layout.activity_audiodetection_and_accelerometer); | ||||
audiodetectionAndAccelerometerStatusMessage = (TextView) findViewById(R.id.tvAudiodetectionAndAccelerometerStatusmessage); | audiodetectionAndAccelerometerStatusMessage = (TextView) findViewById(R.id.tvAudiodetectionAndAccelerometerStatusmessage); | ||||
tvAudiodetectionAndAccelerometerDeviceListRecyclerView = (TextView) findViewById(R.id.tvAudiodetectionAndAccelerometerDeviceListRecyclerView); | |||||
tvAudiodetectionAndAccelerometerAlarmHistoryListRecyclerView = (TextView) findViewById(R.id.tvAudiodetectionAndAccelerometerAlarmHistoryListRecyclerView); | |||||
backToMainActivity = (Button) findViewById(R.id.audiodetectionAndAccelerometerBackToMainActivity); | backToMainActivity = (Button) findViewById(R.id.audiodetectionAndAccelerometerBackToMainActivity); | ||||
RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); | RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); |
private Button accelerometerButton; | private Button accelerometerButton; | ||||
private Button audiodetectionAndAccelerometerButton; | private Button audiodetectionAndAccelerometerButton; | ||||
private Button videodetectionAndAccelerometerButton; | private Button videodetectionAndAccelerometerButton; | ||||
private TextView tvMainActivityDeviceListRecyclerView; | |||||
private TextView tvMainActivityAlarmHistoryListRecyclerView; | |||||
private SurfaceView surfaceView; | |||||
private MainActivityViewModel mMainActivityViewModel; | private MainActivityViewModel mMainActivityViewModel; | ||||
private Permission permission = new Permission(); | private Permission permission = new Permission(); | ||||
activity = MainActivity.this; | activity = MainActivity.this; | ||||
context = MainActivity.this; | context = MainActivity.this; | ||||
surfaceView = (SurfaceView) findViewById(R.id.surfaceViewMainActivity); | |||||
tvMainActivityDeviceListRecyclerView = (TextView) findViewById(R.id.tvMainActivityDeviceListRecyclerView); | |||||
tvMainActivityAlarmHistoryListRecyclerView = (TextView) findViewById(R.id.tvMainActivityAlarmHistoryListRecyclerView); | |||||
audiodetectionButton = (Button) findViewById(R.id.audiodetectionButton); | audiodetectionButton = (Button) findViewById(R.id.audiodetectionButton); | ||||
videodetectionButton = (Button) findViewById(R.id.videodetectionButton); | videodetectionButton = (Button) findViewById(R.id.videodetectionButton); | ||||
accelerometerButton = (Button) findViewById(R.id.accelerometerButton); | accelerometerButton = (Button) findViewById(R.id.accelerometerButton); |
public class VideodetectionActivity extends AppCompatActivity { | public class VideodetectionActivity extends AppCompatActivity { | ||||
private Button backToMainActivity; | private Button backToMainActivity; | ||||
private SurfaceView surfaceView; | |||||
private TextView tvVideodetectionDeviceListRecyclerView; | |||||
private TextView tvVideodetectionAlarmHistoryListRecyclerView; | |||||
private VideodetectionViewModel mVideoDetectionViewModel; | private VideodetectionViewModel mVideoDetectionViewModel; | ||||
private Permission permission = new Permission(); | private Permission permission = new Permission(); | ||||
super.onCreate(savedInstanceState); | super.onCreate(savedInstanceState); | ||||
setContentView(R.layout.activity_videodetection); | setContentView(R.layout.activity_videodetection); | ||||
surfaceView = (SurfaceView) findViewById(R.id.surfaceViewVideodetection); | |||||
tvVideodetectionDeviceListRecyclerView = (TextView) findViewById(R.id.tvVideodetectionDeviceListRecyclerView); | |||||
tvVideodetectionAlarmHistoryListRecyclerView = (TextView) findViewById(R.id.tvVideodetectionAlarmHistoryListRecyclerView); | |||||
backToMainActivity = (Button) findViewById(R.id.videodetectorBackToMainActivity); | backToMainActivity = (Button) findViewById(R.id.videodetectorBackToMainActivity); | ||||
RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); | RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); |
private Sensor accelerometerSensor; | private Sensor accelerometerSensor; | ||||
private TextView videodetectionAndAccelerometerStatusMessage; | private TextView videodetectionAndAccelerometerStatusMessage; | ||||
private TextView videodetectionAndAccelerometerDataTV; | private TextView videodetectionAndAccelerometerDataTV; | ||||
private TextView videodetectionAndAccelerometerWarningTV; | |||||
private TextView tvVideodetectionAndAccelerometerDeviceListRecyclerView; | |||||
private TextView tvVideodetectionAndAccelerometerAlarmHistoryListRecyclerView; | |||||
private Button backToMainActivity; | private Button backToMainActivity; | ||||
private VideodetectionAndAccelerometerViewModel mVideodetectionAndAccelerometerViewModel; | private VideodetectionAndAccelerometerViewModel mVideodetectionAndAccelerometerViewModel; | ||||
private Permission permission = new Permission(); | private Permission permission = new Permission(); | ||||
videodetectionAndAccelerometerStatusMessage = (TextView) findViewById(R.id.tvvideodetectionAndAccelerometerStatusmessage); | videodetectionAndAccelerometerStatusMessage = (TextView) findViewById(R.id.tvvideodetectionAndAccelerometerStatusmessage); | ||||
videodetectionAndAccelerometerDataTV = (TextView) findViewById(R.id.tvvideodetectionAndAccelerometerData); | videodetectionAndAccelerometerDataTV = (TextView) findViewById(R.id.tvvideodetectionAndAccelerometerData); | ||||
videodetectionAndAccelerometerWarningTV = (TextView) findViewById(R.id.tvvideodetectionAndAccelerometerWarning); | |||||
tvVideodetectionAndAccelerometerDeviceListRecyclerView = (TextView) findViewById(R.id.tvVideodetectionAndAccelerometerDeviceListRecyclerView); | |||||
tvVideodetectionAndAccelerometerAlarmHistoryListRecyclerView = (TextView) findViewById(R.id.tvVideodetectionAndAccelerometerAlarmHistoryListRecyclerView); | |||||
backToMainActivity = (Button) findViewById(R.id.videodetectionAndAccelerometerBackToMainActivity); | backToMainActivity = (Button) findViewById(R.id.videodetectionAndAccelerometerBackToMainActivity); | ||||
RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); | RecyclerView recyclerView = findViewById(R.id.deviceListRecyclerView); |
android:padding="10dp" | android:padding="10dp" | ||||
tools:context=".AccelerometerActivity"> | tools:context=".AccelerometerActivity"> | ||||
<SurfaceView | |||||
android:id="@+id/surfaceViewAccelerometer" | |||||
android:layout_width="1dp" | |||||
android:layout_height="1dp" | |||||
android:visibility="visible"> | |||||
</SurfaceView> | |||||
<TextView | <TextView | ||||
android:id="@+id/tvAccelerometerStatusmessage" | android:id="@+id/tvAccelerometerStatusmessage" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:text=""> | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Accelerometer Activity"> | |||||
</TextView> | </TextView> | ||||
<TextView | <TextView | ||||
android:text=""> | android:text=""> | ||||
</TextView> | </TextView> | ||||
<TextView | |||||
android:id="@+id/tvAccelerometerWarning" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:text=""> | |||||
</TextView> | |||||
<Button | <Button | ||||
android:id="@+id/accelerometerBackToMainActivity" | android:id="@+id/accelerometerBackToMainActivity" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<TextView | |||||
android:id="@+id/tvAccelerometerdeviceListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Registered Devices"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/deviceListRecyclerView" | android:id="@+id/deviceListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_weight="1"> | android:layout_weight="1"> | ||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<TextView | |||||
android:id="@+id/tvAccelerometeralarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Alarm History List"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/alarmHistoryListRecyclerView" | android:id="@+id/alarmHistoryListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" |
android:padding="10dp" | android:padding="10dp" | ||||
tools:context=".AudiodetectionActivity"> | tools:context=".AudiodetectionActivity"> | ||||
<SurfaceView | |||||
android:id="@+id/surfaceViewAudio" | |||||
android:layout_width="1dp" | |||||
android:layout_height="1dp" | |||||
android:visibility="visible"> | |||||
</SurfaceView> | |||||
<TextView | <TextView | ||||
android:id="@+id/tvAudiodetectionStatusmessage" | android:id="@+id/tvAudiodetectionStatusmessage" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Audiodetection Activity"> | |||||
</TextView> | |||||
<TextView | |||||
android:id="@+id/tvAudiodetectionData" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:text=""> | android:text=""> | ||||
</TextView> | </TextView> | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<TextView | |||||
android:id="@+id/tvAudiodetectionDeviceListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Registered Devices"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/deviceListRecyclerView" | android:id="@+id/deviceListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_weight="1"> | android:layout_weight="1"> | ||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<TextView | |||||
android:id="@+id/tvAudiodetectionAlarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Alarm History List"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/alarmHistoryListRecyclerView" | android:id="@+id/alarmHistoryListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" |
android:padding="10dp" | android:padding="10dp" | ||||
tools:context=".AudiodetectionAndAccelerometerActivity"> | tools:context=".AudiodetectionAndAccelerometerActivity"> | ||||
<SurfaceView | |||||
android:id="@+id/surfaceViewAudiodetectionAndAccelerometer" | |||||
android:layout_width="1dp" | |||||
android:layout_height="1dp" | |||||
android:visibility="visible"> | |||||
</SurfaceView> | |||||
<TextView | <TextView | ||||
android:id="@+id/tvAudiodetectionAndAccelerometerStatusmessage" | android:id="@+id/tvAudiodetectionAndAccelerometerStatusmessage" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:text="Audiodetection + Accelerometer Activity"> | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Audiodetection+Accelerometer Activity"> | |||||
</TextView> | </TextView> | ||||
<Button | <Button | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<TextView | |||||
android:id="@+id/tvAudiodetectionAndAccelerometerDeviceListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Registered Devices"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/deviceListRecyclerView" | android:id="@+id/deviceListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_weight="1"> | android:layout_weight="1"> | ||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<TextView | |||||
android:id="@+id/tvAudiodetectionAndAccelerometerAlarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Alarm History List"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/alarmHistoryListRecyclerView" | android:id="@+id/alarmHistoryListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" |
android:padding="5dp" | android:padding="5dp" | ||||
tools:context=".MainActivity"> | tools:context=".MainActivity"> | ||||
<TextView | |||||
android:id="@+id/tvMainActivityDeviceListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Registered Devices"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/alarmHistoryListRecyclerView" | |||||
android:id="@+id/deviceListRecyclerView" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:layout_weight="3" | android:layout_weight="3" | ||||
tools:listitem="@layout/alarm_history_item"> | |||||
tools:listitem="@layout/device_item"> | |||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<TextView | |||||
android:id="@+id/tvMainActivityAlarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Alarm History List"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/deviceListRecyclerView" | |||||
android:id="@+id/alarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:layout_weight="3" | android:layout_weight="3" | ||||
tools:listitem="@layout/device_item"> | |||||
tools:listitem="@layout/alarm_history_item"> | |||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<SurfaceView | |||||
android:id="@+id/surfaceViewMainActivity" | |||||
android:layout_width="1dp" | |||||
android:layout_height="1dp"> | |||||
</SurfaceView> | |||||
<LinearLayout | <LinearLayout | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" |
android:padding="10dp" | android:padding="10dp" | ||||
tools:context=".VideodetectionActivity"> | tools:context=".VideodetectionActivity"> | ||||
<SurfaceView | |||||
android:id="@+id/surfaceViewVideodetection" | |||||
android:layout_width="1dp" | |||||
android:layout_height="1dp" | |||||
android:visibility="visible"> | |||||
</SurfaceView> | |||||
<TextView | <TextView | ||||
android:id="@+id/tvVideodetectionStatusmessage" | android:id="@+id/tvVideodetectionStatusmessage" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Videodetection Activity"> | android:text="Videodetection Activity"> | ||||
</TextView> | </TextView> | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<TextView | |||||
android:id="@+id/tvVideodetectionDeviceListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Registered Devices"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/deviceListRecyclerView" | android:id="@+id/deviceListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_weight="1"> | android:layout_weight="1"> | ||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<TextView | |||||
android:id="@+id/tvVideodetectionAlarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Alarm History List"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/alarmHistoryListRecyclerView" | android:id="@+id/alarmHistoryListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" |
android:padding="10dp" | android:padding="10dp" | ||||
tools:context=".VideodetectionAndAccelerometerActivity"> | tools:context=".VideodetectionAndAccelerometerActivity"> | ||||
<SurfaceView | |||||
android:id="@+id/surfaceViewVideodetectionAndAccelerometer" | |||||
android:layout_width="1dp" | |||||
android:layout_height="1dp" | |||||
android:visibility="visible"> | |||||
</SurfaceView> | |||||
<TextView | <TextView | ||||
android:id="@+id/tvvideodetectionAndAccelerometerStatusmessage" | android:id="@+id/tvvideodetectionAndAccelerometerStatusmessage" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:text=""> | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Videodetection+Accelerometer Activity"> | |||||
</TextView> | </TextView> | ||||
<TextView | <TextView | ||||
android:text=""> | android:text=""> | ||||
</TextView> | </TextView> | ||||
<TextView | |||||
android:id="@+id/tvvideodetectionAndAccelerometerWarning" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:text=""> | |||||
</TextView> | |||||
<Button | <Button | ||||
android:id="@+id/videodetectionAndAccelerometerBackToMainActivity" | android:id="@+id/videodetectionAndAccelerometerBackToMainActivity" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<TextView | |||||
android:id="@+id/tvVideodetectionAndAccelerometerDeviceListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Registered Devices"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/deviceListRecyclerView" | android:id="@+id/deviceListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_weight="1"> | android:layout_weight="1"> | ||||
</androidx.recyclerview.widget.RecyclerView> | </androidx.recyclerview.widget.RecyclerView> | ||||
<TextView | |||||
android:id="@+id/tvVideodetectionAndAccelerometerAlarmHistoryListRecyclerView" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:textAppearance="@style/TextAppearance.AppCompat.Large" | |||||
android:text="Alarm History List"> | |||||
</TextView> | |||||
<androidx.recyclerview.widget.RecyclerView | <androidx.recyclerview.widget.RecyclerView | ||||
android:id="@+id/alarmHistoryListRecyclerView" | android:id="@+id/alarmHistoryListRecyclerView" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" |