The final version for lede-gui (the phone app for device registration)
[iot2.git] / others / lede-gui / src / main / res / layout / lifxtest.xml
diff --git a/others/lede-gui/src/main/res/layout/lifxtest.xml b/others/lede-gui/src/main/res/layout/lifxtest.xml
new file mode 100644 (file)
index 0000000..1cf17f6
--- /dev/null
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+    xmlns:app="http://schemas.android.com/apk/res-auto"\r
+    xmlns:tools="http://schemas.android.com/tools"\r
+    android:layout_width="match_parent"\r
+    android:layout_height="match_parent"\r
+    android:background="@drawable/blueberry"\r
+    android:descendantFocusability="blocksDescendants">\r
+\r
+    <Spinner\r
+        android:id="@+id/selectedRelation"\r
+        android:layout_width="0dp"\r
+        android:layout_height="50dp"\r
+        android:layout_marginTop="16dp"\r
+        android:background="@drawable/wifibackground"\r
+        android:focusable="false"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintHorizontal_bias="0.0"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toBottomOf="@+id/setsOrRelations" />\r
+\r
+    <Spinner\r
+        android:id="@+id/relationLeftSpinner"\r
+        android:layout_width="0dp"\r
+        android:layout_height="50dp"\r
+        android:layout_marginTop="16dp"\r
+        android:background="@drawable/wifibackground"\r
+        android:focusable="false"\r
+        app:layout_constraintEnd_toStartOf="@+id/guideline2"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toBottomOf="@+id/selectedRelation" />\r
+\r
+    <Spinner\r
+        android:id="@+id/relationRightSpinnerLifx"\r
+        android:layout_width="0dp"\r
+        android:layout_height="50dp"\r
+        android:layout_marginTop="16dp"\r
+        android:background="@drawable/wifibackground"\r
+        android:focusable="false"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintStart_toEndOf="@+id/guideline2"\r
+        app:layout_constraintTop_toBottomOf="@+id/selectedRelation" />\r
+\r
+    <Button\r
+        android:id="@+id/addRelationButton"\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:layout_marginTop="16dp"\r
+        android:focusable="false"\r
+        android:text="Add"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toBottomOf="@+id/relationLeftSpinner" />\r
+\r
+    <android.support.constraint.Guideline\r
+        android:id="@+id/guideline2"\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:orientation="vertical"\r
+        app:layout_constraintGuide_begin="192dp"\r
+        app:layout_constraintTop_toTopOf="parent" />\r
+\r
+    <Button\r
+        android:id="@+id/addRelationDoneButton"\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:layout_marginBottom="8dp"\r
+        android:focusable="false"\r
+        android:text="done"\r
+        app:layout_constraintBottom_toBottomOf="parent"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintHorizontal_bias="0.5"\r
+        app:layout_constraintStart_toStartOf="parent" />\r
+\r
+    <ListView\r
+        android:id="@+id/selectedRelationsList"\r
+        android:layout_width="0dp"\r
+        android:layout_height="245dp"\r
+        android:layout_marginEnd="16dp"\r
+        android:layout_marginStart="16dp"\r
+        android:background="@drawable/bluename"\r
+        android:choiceMode="multipleChoice"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintHorizontal_bias="0.5"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toBottomOf="@+id/addRelationButton" />\r
+\r
+    <Button\r
+        android:id="@+id/addRelationDeleteButton"\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:layout_marginTop="16dp"\r
+        android:focusable="false"\r
+        android:text="Delete Selected"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintHorizontal_bias="0.5"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toBottomOf="@+id/selectedRelationsList" />\r
+\r
+    <TextView\r
+        android:id="@+id/DriversTitle"\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:layout_marginTop="8dp"\r
+        android:background="@color/white"\r
+        android:text="LifxTest"\r
+        android:textSize="18sp"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintHorizontal_bias="0.5"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toTopOf="parent" />\r
+\r
+    <Spinner\r
+        android:id="@+id/setsOrRelations"\r
+        android:layout_width="0dp"\r
+        android:layout_height="@dimen/Button_height"\r
+        android:layout_marginTop="8dp"\r
+        android:background="@drawable/wifibackground"\r
+        app:layout_constraintEnd_toEndOf="parent"\r
+        app:layout_constraintHorizontal_bias="0.5"\r
+        app:layout_constraintStart_toStartOf="parent"\r
+        app:layout_constraintTop_toBottomOf="@+id/DriversTitle" />\r
+\r
+</android.support.constraint.ConstraintLayout>
\ No newline at end of file