[iot-gateway/lighting-gateway.git] / client / AndroidClients / LightingController / res / layout / groupview.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="fill_parent"
4 android:layout_height="fill_parent"
5 android:scaleType="fitXY" >
6 <RelativeLayout
7 android:layout_width="match_parent"
8 android:layout_height="match_parent">
10 <LinearLayout
11 android:id="@+id/linearLayout6"
12 android:layout_width="wrap_content"
13 android:layout_height="wrap_content"
14 android:layout_alignParentLeft="true"
15 android:layout_alignParentRight="true"
16 android:layout_alignParentTop="true"
17 android:layout_marginBottom="10dp"
18 android:layout_marginLeft="10dp"
19 android:layout_marginRight="10dp"
20 android:layout_marginTop="20dp"
21 android:background="@drawable/layoutborder"
22 android:gravity="center_vertical"
23 android:orientation="vertical" >
25 <TextView
26 android:id="@+id/textViewDev"
27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content"
29 android:layout_marginLeft="5dip"
30 android:layout_marginTop="5dip"
31 android:layout_weight="1"
32 android:text="Select Device:"
33 android:textAppearance="?android:attr/textAppearanceMedium" />
35 <Spinner
36 android:id="@+id/deviceSpinner"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_weight="1"
40 android:prompt="@string/SelectDevice" />
42 <RadioButton
43 android:id="@+id/deviceChangeNameButton"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_marginRight="10dp"
47 android:layout_weight="1"
48 android:onClick="deviceChangeNameButton"
49 android:text="Change Device Name" />
51 <TextView
52 android:id="@+id/textViewGroup"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_marginLeft="5dip"
56 android:layout_marginTop="5dip"
57 android:layout_weight="1"
58 android:text="Select Group:"
59 android:textAppearance="?android:attr/textAppearanceMedium" />
61 <Spinner
62 android:id="@+id/groupSpinner"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_weight="1"
66 android:prompt="@string/SelectGroup" />
68 <RadioButton
69 android:id="@+id/newGroupRadio"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_marginRight="10dp"
73 android:layout_weight="1"
74 android:onClick="newGroupCmdButton"
75 android:text="Create New Group" >
76 </RadioButton>
78 <RadioButton
79 android:id="@+id/addToGroupRadio"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_marginRight="10dp"
83 android:layout_toRightOf="@+id/sceneRadio0"
84 android:layout_weight="1"
85 android:onClick="addToGroupCmdButton"
86 android:text="Add Selected Light to Selected Group" >
87 </RadioButton>
89 <LinearLayout
90 android:id="@+id/lightIdLayout"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:layout_weight="1"
94 android:orientation="horizontal" >
96 <ToggleButton
97 android:id="@+id/IdLightToggle"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:layout_marginRight="10dp"
101 android:layout_toRightOf="@+id/sceneRadio0"
102 android:layout_weight="1"
103 android:onClick="IdLightCmdButton"
104 android:text="Flash Selected Light" >
105 </ToggleButton>
107 <TextView
108 android:id="@+id/IdLightToggleText"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:layout_marginLeft="5dip"
112 android:layout_marginTop="5dip"
113 android:layout_weight="1"
114 android:text="Flash Selected Light"
115 android:gravity="center_vertical"
116 android:textAppearance="?android:attr/textAppearanceMedium" />
118 </LinearLayout>
120 <LinearLayout
121 android:id="@+id/groupIdLayout"
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:layout_weight="1"
125 android:orientation="horizontal" >
127 <ToggleButton
128 android:id="@+id/IdGroupToggle"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"
131 android:layout_marginRight="10dp"
132 android:layout_toRightOf="@+id/sceneRadio0"
133 android:layout_weight="1"
134 android:onClick="IdGroupCmdButton" >
135 </ToggleButton>
137 <TextView
138 android:id="@+id/IdGroupToggleText"
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content"
141 android:layout_marginLeft="5dip"
142 android:layout_marginTop="5dip"
143 android:layout_weight="1"
144 android:text="Flash Selected Group"
145 android:gravity="center_vertical"
146 android:textAppearance="?android:attr/textAppearanceMedium" />
147 </LinearLayout>
148 </LinearLayout>
150 <TextView
151 android:layout_marginTop="-10dp"
152 android:background="#FF000000"
153 android:textColor="#FFFFFFFF"
154 android:textAppearance="?android:attr/textAppearanceMedium"
155 android:layout_width="wrap_content" android:text=" Groups "
156 android:layout_height="wrap_content"
157 android:id="@+id/FrameLable06"
158 android:layout_alignLeft="@+id/linearLayout6"
159 android:layout_alignTop="@+id/linearLayout6"
160 android:layout_marginLeft="32dp">
161 </TextView>
162 </RelativeLayout>
163 </ScrollView>