Contains python control script, Android app code, schematics, and an installer script to automate installation on the Pi.
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.

56 lines
2.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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. tools:context=".MainActivity">
  8. <TextView
  9. android:id="@+id/textView2"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:text="@string/Text_under_button"
  13. app:layout_constraintBottom_toBottomOf="parent"
  14. app:layout_constraintHorizontal_bias="0.498"
  15. app:layout_constraintLeft_toLeftOf="parent"
  16. app:layout_constraintRight_toRightOf="parent"
  17. app:layout_constraintTop_toTopOf="parent"
  18. app:layout_constraintVertical_bias="0.304" />
  19. <Button
  20. android:id="@+id/button2"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:onClick="openGarage"
  24. android:text="@string/Button_text"
  25. app:layout_constraintBottom_toTopOf="@+id/textView2"
  26. app:layout_constraintEnd_toEndOf="parent"
  27. app:layout_constraintStart_toStartOf="parent"
  28. app:layout_constraintTop_toTopOf="parent" />
  29. <Button
  30. android:id="@+id/button4"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:onClick="checkSensor"
  34. android:text="@string/Sensor_button_text"
  35. app:layout_constraintBottom_toBottomOf="parent"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. app:layout_constraintHorizontal_bias="0.498"
  38. app:layout_constraintStart_toStartOf="parent"
  39. app:layout_constraintTop_toBottomOf="@+id/textView2"
  40. app:layout_constraintVertical_bias="0.187" />
  41. <TextView
  42. android:id="@+id/textView"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:text="@string/sensor_text"
  46. app:layout_constraintBottom_toBottomOf="parent"
  47. app:layout_constraintEnd_toEndOf="parent"
  48. app:layout_constraintHorizontal_bias="0.498"
  49. app:layout_constraintStart_toStartOf="parent"
  50. app:layout_constraintTop_toBottomOf="@+id/button4"
  51. app:layout_constraintVertical_bias="0.2" />
  52. </androidx.constraintlayout.widget.ConstraintLayout>