The final version for lede-gui (the phone app for device registration)
[iot2.git] / others / lede-gui / src / main / res / layout / speaker.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     <Spinner\r
11         android:id="@+id/selectedRelation"\r
12         android:layout_width="0dp"\r
13         android:layout_height="50dp"\r
14         android:layout_marginTop="16dp"\r
15         android:background="@drawable/wifibackground"\r
16         android:focusable="false"\r
17         app:layout_constraintEnd_toEndOf="parent"\r
18         app:layout_constraintHorizontal_bias="0.0"\r
19         app:layout_constraintStart_toStartOf="parent"\r
20         app:layout_constraintTop_toBottomOf="@+id/setsOrRelations" />\r
21 \r
22     <Spinner\r
23         android:id="@+id/relationLeftSpinner"\r
24         android:layout_width="0dp"\r
25         android:layout_height="50dp"\r
26         android:layout_marginTop="16dp"\r
27         android:background="@drawable/wifibackground"\r
28         android:focusable="false"\r
29         app:layout_constraintEnd_toStartOf="@+id/guideline2"\r
30         app:layout_constraintStart_toStartOf="parent"\r
31         app:layout_constraintTop_toBottomOf="@+id/selectedRelation" />\r
32 \r
33     <Spinner\r
34         android:id="@+id/relationRightSpinner"\r
35         android:layout_width="0dp"\r
36         android:layout_height="50dp"\r
37         android:layout_marginTop="16dp"\r
38         android:background="@drawable/wifibackground"\r
39         android:focusable="false"\r
40         app:layout_constraintEnd_toEndOf="parent"\r
41         app:layout_constraintStart_toEndOf="@+id/guideline2"\r
42         app:layout_constraintTop_toBottomOf="@+id/selectedRelation" />\r
43 \r
44     <Button\r
45         android:id="@+id/addRelationButton"\r
46         android:layout_width="wrap_content"\r
47         android:layout_height="wrap_content"\r
48         android:layout_marginTop="16dp"\r
49         android:focusable="false"\r
50         android:text="Add"\r
51         app:layout_constraintEnd_toEndOf="parent"\r
52         app:layout_constraintStart_toStartOf="parent"\r
53         app:layout_constraintTop_toBottomOf="@+id/relationLeftSpinner" />\r
54 \r
55     <android.support.constraint.Guideline\r
56         android:id="@+id/guideline2"\r
57         android:layout_width="wrap_content"\r
58         android:layout_height="wrap_content"\r
59         android:orientation="vertical"\r
60         app:layout_constraintGuide_begin="192dp"\r
61         app:layout_constraintTop_toTopOf="parent" />\r
62 \r
63     <Button\r
64         android:id="@+id/addRelationDoneButton"\r
65         android:layout_width="wrap_content"\r
66         android:layout_height="wrap_content"\r
67         android:layout_marginBottom="8dp"\r
68         android:focusable="false"\r
69         android:text="done"\r
70         app:layout_constraintBottom_toBottomOf="parent"\r
71         app:layout_constraintEnd_toEndOf="parent"\r
72         app:layout_constraintHorizontal_bias="0.5"\r
73         app:layout_constraintStart_toStartOf="parent" />\r
74 \r
75     <ListView\r
76         android:id="@+id/selectedRelationsList"\r
77         android:layout_width="0dp"\r
78         android:layout_height="245dp"\r
79         android:layout_marginEnd="16dp"\r
80         android:layout_marginStart="16dp"\r
81         android:background="@drawable/bluename"\r
82         android:choiceMode="multipleChoice"\r
83         app:layout_constraintEnd_toEndOf="parent"\r
84         app:layout_constraintHorizontal_bias="0.5"\r
85         app:layout_constraintStart_toStartOf="parent"\r
86         app:layout_constraintTop_toBottomOf="@+id/addRelationButton" />\r
87 \r
88     <Button\r
89         android:id="@+id/addRelationDeleteButton"\r
90         android:layout_width="wrap_content"\r
91         android:layout_height="wrap_content"\r
92         android:layout_marginTop="16dp"\r
93         android:focusable="false"\r
94         android:text="Delete Selected"\r
95         app:layout_constraintEnd_toEndOf="parent"\r
96         app:layout_constraintHorizontal_bias="0.5"\r
97         app:layout_constraintStart_toStartOf="parent"\r
98         app:layout_constraintTop_toBottomOf="@+id/selectedRelationsList" />\r
99 \r
100     <TextView\r
101         android:id="@+id/DriversTitle"\r
102         android:layout_width="wrap_content"\r
103         android:layout_height="wrap_content"\r
104         android:layout_marginTop="8dp"\r
105         android:background="@color/white"\r
106         android:text="Speaker"\r
107         android:textSize="18sp"\r
108         app:layout_constraintEnd_toEndOf="parent"\r
109         app:layout_constraintHorizontal_bias="0.5"\r
110         app:layout_constraintStart_toStartOf="parent"\r
111         app:layout_constraintTop_toTopOf="parent" />\r
112 \r
113     <Spinner\r
114         android:id="@+id/setsOrRelations"\r
115         android:layout_width="0dp"\r
116         android:layout_height="@dimen/Button_height"\r
117         android:layout_marginTop="8dp"\r
118         android:background="@drawable/wifibackground"\r
119         app:layout_constraintEnd_toEndOf="parent"\r
120         app:layout_constraintHorizontal_bias="0.5"\r
121         app:layout_constraintStart_toStartOf="parent"\r
122         app:layout_constraintTop_toBottomOf="@+id/DriversTitle" />\r
123 \r
124 </android.support.constraint.ConstraintLayout>