The final version for lede-gui (the phone app for device registration)
[iot2.git] / others / lede-gui / src / main / res / layout / drivers_add.xml
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
3     xmlns:app="http://schemas.android.com/apk/res-auto"\r
4     xmlns:tools="http://schemas.android.com/tools"\r
5     android:layout_width="match_parent"\r
6     android:layout_height="match_parent"\r
7     android:background="@drawable/blueberry"\r
8     android:descendantFocusability="blocksDescendants">\r
9 \r
10     <android.support.design.widget.CoordinatorLayout\r
11         android:id="@+id/doneDriver"\r
12         android:layout_width="0dp"\r
13         android:layout_height="wrap_content"\r
14         android:visibility="visible"\r
15         app:layout_constraintBottom_toBottomOf="parent"\r
16         app:layout_constraintEnd_toEndOf="parent"\r
17         app:layout_constraintHorizontal_bias="0.0"\r
18         app:layout_constraintStart_toStartOf="parent">\r
19 \r
20         <LinearLayout\r
21             android:layout_width="match_parent"\r
22             android:layout_height="wrap_content"\r
23             android:orientation="vertical" />\r
24     </android.support.design.widget.CoordinatorLayout>\r
25 \r
26     <Spinner\r
27         android:id="@+id/selectedRelation"\r
28         android:layout_width="0dp"\r
29         android:layout_height="50dp"\r
30         android:layout_marginTop="16dp"\r
31         android:background="@drawable/wifibackground"\r
32         android:focusable="false"\r
33         app:layout_constraintEnd_toEndOf="parent"\r
34         app:layout_constraintHorizontal_bias="0.0"\r
35         app:layout_constraintStart_toStartOf="parent"\r
36         app:layout_constraintTop_toBottomOf="@+id/setsOrRelations" />\r
37 \r
38     <Spinner\r
39         android:id="@+id/relationLeftSpinner"\r
40         android:layout_width="0dp"\r
41         android:layout_height="50dp"\r
42         android:layout_marginTop="16dp"\r
43         android:background="@drawable/wifibackground"\r
44         android:focusable="false"\r
45         app:layout_constraintEnd_toStartOf="@+id/guideline2"\r
46         app:layout_constraintStart_toStartOf="parent"\r
47         app:layout_constraintTop_toBottomOf="@+id/selectedRelation" />\r
48 \r
49     <Spinner\r
50         android:id="@+id/relationRightSpinner"\r
51         android:layout_width="0dp"\r
52         android:layout_height="50dp"\r
53         android:layout_marginTop="16dp"\r
54         android:background="@drawable/wifibackground"\r
55         android:focusable="false"\r
56         app:layout_constraintEnd_toEndOf="parent"\r
57         app:layout_constraintStart_toEndOf="@+id/guideline2"\r
58         app:layout_constraintTop_toBottomOf="@+id/selectedRelation" />\r
59 \r
60     <Button\r
61         android:id="@+id/addRelationButton"\r
62         android:layout_width="wrap_content"\r
63         android:layout_height="wrap_content"\r
64         android:layout_marginTop="16dp"\r
65         android:focusable="false"\r
66         android:text="Add Device Address"\r
67         app:layout_constraintEnd_toEndOf="parent"\r
68         app:layout_constraintStart_toStartOf="parent"\r
69         app:layout_constraintTop_toBottomOf="@+id/relationLeftSpinner" />\r
70 \r
71     <android.support.constraint.Guideline\r
72         android:id="@+id/guideline2"\r
73         android:layout_width="wrap_content"\r
74         android:layout_height="wrap_content"\r
75         android:orientation="vertical"\r
76         app:layout_constraintGuide_begin="192dp"\r
77         app:layout_constraintTop_toTopOf="parent" />\r
78 \r
79     <Button\r
80         android:id="@+id/addRelationDoneButton"\r
81         android:layout_width="wrap_content"\r
82         android:layout_height="wrap_content"\r
83         android:layout_marginBottom="8dp"\r
84         android:focusable="false"\r
85         android:text="done"\r
86         app:layout_constraintBottom_toBottomOf="parent"\r
87         app:layout_constraintEnd_toEndOf="parent"\r
88         app:layout_constraintHorizontal_bias="0.5"\r
89         app:layout_constraintStart_toStartOf="parent" />\r
90 \r
91     <ListView\r
92         android:id="@+id/selectedRelationsList"\r
93         android:layout_width="0dp"\r
94         android:layout_height="245dp"\r
95         android:layout_marginEnd="16dp"\r
96         android:layout_marginStart="16dp"\r
97         android:background="@drawable/bluename"\r
98         android:choiceMode="multipleChoice"\r
99         app:layout_constraintEnd_toEndOf="parent"\r
100         app:layout_constraintHorizontal_bias="0.5"\r
101         app:layout_constraintStart_toStartOf="parent"\r
102         app:layout_constraintTop_toBottomOf="@+id/addRelationButton" />\r
103 \r
104     <Button\r
105         android:id="@+id/addRelationDeleteButton"\r
106         android:layout_width="wrap_content"\r
107         android:layout_height="wrap_content"\r
108         android:layout_marginTop="16dp"\r
109         android:focusable="false"\r
110         android:text="Delete Selected"\r
111         app:layout_constraintEnd_toEndOf="parent"\r
112         app:layout_constraintHorizontal_bias="0.5"\r
113         app:layout_constraintStart_toStartOf="parent"\r
114         app:layout_constraintTop_toBottomOf="@+id/selectedRelationsList" />\r
115 \r
116     <TextView\r
117         android:id="@+id/DriversTitle"\r
118         android:layout_width="wrap_content"\r
119         android:layout_height="wrap_content"\r
120         android:layout_marginTop="8dp"\r
121         android:background="@color/white"\r
122         android:text="Drivers"\r
123         android:textSize="18sp"\r
124         app:layout_constraintEnd_toEndOf="parent"\r
125         app:layout_constraintHorizontal_bias="0.5"\r
126         app:layout_constraintStart_toStartOf="parent"\r
127         app:layout_constraintTop_toTopOf="parent" />\r
128 \r
129     <Spinner\r
130         android:id="@+id/setsOrRelations"\r
131         android:layout_width="0dp"\r
132         android:layout_height="@dimen/Button_height"\r
133         android:layout_marginTop="8dp"\r
134         android:background="@drawable/wifibackground"\r
135         app:layout_constraintEnd_toEndOf="parent"\r
136         app:layout_constraintHorizontal_bias="0.5"\r
137         app:layout_constraintStart_toStartOf="parent"\r
138         app:layout_constraintTop_toBottomOf="@+id/DriversTitle" />\r
139 \r
140 </android.support.constraint.ConstraintLayout>