|
|
|
@ -0,0 +1,57 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
tools:context=".MainActivity"> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/textView2" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="@string/Text_under_button" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintHorizontal_bias="0.498" |
|
|
|
app:layout_constraintLeft_toLeftOf="parent" |
|
|
|
app:layout_constraintRight_toRightOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintVertical_bias="0.304" /> |
|
|
|
|
|
|
|
<Button |
|
|
|
android:id="@+id/button2" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:onClick="openGarage" |
|
|
|
android:text="@string/Button_text" |
|
|
|
app:layout_constraintBottom_toTopOf="@+id/textView2" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
<Button |
|
|
|
android:id="@+id/button4" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:onClick="checkSensor" |
|
|
|
android:text="@string/Sensor_button_text" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintHorizontal_bias="0.498" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toBottomOf="@+id/textView2" |
|
|
|
app:layout_constraintVertical_bias="0.187" /> |
|
|
|
|
|
|
|
<TextView |
|
|
|
android:id="@+id/textView" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="@string/sensor_text" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintHorizontal_bias="0.498" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toBottomOf="@+id/button4" |
|
|
|
app:layout_constraintVertical_bias="0.2" /> |
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |