activity_main.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. tools:context=".MainActivity"
  8. android:orientation="vertical">
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:orientation="vertical">
  13. <TextView
  14. android:id="@+id/textView2"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:background="@color/colorPrimary"
  18. android:text="Repeater" />
  19. <ToggleButton
  20. android:id="@+id/button"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:text="Port Open" />
  24. </LinearLayout>
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="horizontal">
  29. <Button
  30. android:id="@+id/button2"
  31. android:layout_width="100dp"
  32. android:layout_height="100dp"
  33. android:layout_marginLeft="10dp"
  34. android:layout_marginBottom="10dp"
  35. android:text="Control" />
  36. <TextView
  37. android:id="@+id/textView3"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginLeft="30dp"
  41. android:layout_marginTop="20dp"
  42. android:text="Status"
  43. android:textSize="46sp" />
  44. </LinearLayout>
  45. <TextView
  46. android:id="@+id/textView4"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:background="@color/colorPrimary"
  50. android:text="Alarm Status" />
  51. <LinearLayout
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:orientation="horizontal">
  55. <TextView
  56. android:id="@+id/textView5"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:text="Lock"
  60. tools:ignore="HardcodedText" />
  61. <ImageView
  62. android:id="@+id/imageView2"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:layout_weight="1"
  66. app:srcCompat="@android:drawable/presence_invisible"
  67. android:contentDescription="TODO"
  68. tools:ignore="ContentDescription,HardcodedText" />
  69. <TextView
  70. android:id="@+id/textView6"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:text="PLL"
  74. tools:ignore="HardcodedText" />
  75. <ImageView
  76. android:id="@+id/imageView3"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:layout_weight="1"
  80. app:srcCompat="@android:drawable/presence_invisible"
  81. android:contentDescription="TODO"
  82. tools:ignore="ContentDescription,HardcodedText" />
  83. </LinearLayout>
  84. <LinearLayout
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:orientation="vertical">
  88. <ListView
  89. android:id="@+id/listview_info"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. />
  93. </LinearLayout>
  94. </LinearLayout>