replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / notification / examples / android / NotiProviderExample / app / src / main / res / layout / activity_main.xml
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
3     xmlns:tools="http://schemas.android.com/tools"\r
4     android:layout_width="match_parent"\r
5     android:layout_height="match_parent"\r
6     android:paddingBottom="@dimen/activity_vertical_margin"\r
7     android:paddingLeft="@dimen/activity_horizontal_margin"\r
8     android:paddingRight="@dimen/activity_horizontal_margin"\r
9     android:paddingTop="@dimen/activity_vertical_margin"\r
10     tools:context=".MainActivity">\r
11 \r
12     <ScrollView\r
13         android:layout_width="match_parent"\r
14         android:layout_height="wrap_content"\r
15         android:fillViewport="true">\r
16     <LinearLayout\r
17         android:layout_width="match_parent"\r
18         android:layout_height="wrap_content"\r
19         android:paddingLeft="1dp"\r
20         android:paddingRight="1dp"\r
21         android:orientation="vertical" >\r
22 \r
23 \r
24         <LinearLayout\r
25             android:layout_width="match_parent"\r
26             android:layout_height="wrap_content"\r
27             android:paddingLeft="5dp"\r
28             android:paddingRight="5dp"\r
29             android:orientation="horizontal"\r
30             android:weightSum="1">\r
31 \r
32             <Button\r
33                 android:layout_height="wrap_content"\r
34                 android:layout_width="150dp"\r
35                 android:id="@+id/BtnStart"\r
36                 android:text="START"/>\r
37 \r
38             <Button\r
39                 android:layout_height="wrap_content"\r
40                 android:layout_width="150dp"\r
41                 android:id="@+id/BtnStop"\r
42                 android:text="STOP" />\r
43         </LinearLayout>\r
44 \r
45         <LinearLayout\r
46             android:layout_width="match_parent"\r
47             android:layout_height="wrap_content"\r
48             android:paddingLeft="5dp"\r
49             android:paddingRight="5dp"\r
50             android:orientation="horizontal"\r
51             android:weightSum="1">\r
52 \r
53             <RadioGroup\r
54                 android:id="@+id/RadioGroup"\r
55                 android:layout_width="match_parent"\r
56                 android:layout_height="wrap_content"\r
57                 android:layout_alignParentLeft="true"\r
58                 android:orientation='horizontal'>\r
59                     <TextView\r
60                     android:layout_width="wrap_content"\r
61                     android:layout_height="wrap_content"\r
62                     android:text="ACCEPTOR: "\r
63                     android:id="@+id/textview"\r
64                     android:checked="false" />\r
65                     <RadioButton\r
66                         android:layout_width="wrap_content"\r
67                         android:layout_height="wrap_content"\r
68                         android:text="Provider"\r
69                         android:id="@+id/RadioProvider"\r
70                         android:checked="true" />\r
71 \r
72                     <RadioButton\r
73                         android:layout_width="wrap_content"\r
74                         android:layout_height="wrap_content"\r
75                         android:text="Consumer"\r
76                         android:id="@+id/RadioConsumer"\r
77                         android:checked="false" />\r
78 \r
79             </RadioGroup>\r
80         </LinearLayout>\r
81         <LinearLayout\r
82             android:layout_width="match_parent"\r
83             android:layout_height="wrap_content"\r
84             android:paddingLeft="5dp"\r
85             android:paddingRight="5dp"\r
86             android:orientation="horizontal"\r
87             android:weightSum="1">\r
88 \r
89             <Button\r
90                 android:layout_height="wrap_content"\r
91                 android:layout_width="100dp"\r
92                 android:id="@+id/signup"\r
93                 android:text="Sign Up"/>\r
94 \r
95             <Button\r
96                 android:layout_height="wrap_content"\r
97                 android:layout_width="100dp"\r
98                 android:id="@+id/signin"\r
99                 android:text="Sign In" />\r
100             <Button\r
101                 android:layout_height="wrap_content"\r
102                 android:layout_width="100dp"\r
103                 android:id="@+id/signout"\r
104                 android:text="Sign Out" />\r
105         </LinearLayout>\r
106         <LinearLayout\r
107             android:layout_width="match_parent"\r
108             android:layout_height="wrap_content"\r
109             android:paddingLeft="5dp"\r
110             android:paddingRight="5dp"\r
111             android:orientation="horizontal"\r
112             android:weightSum="1">\r
113 \r
114             <Button\r
115                 android:layout_height="wrap_content"\r
116                 android:layout_width="150dp"\r
117                 android:id="@+id/remoteService"\r
118                 android:text="Enable Remote Service"/>\r
119 \r
120             <Button\r
121                 android:layout_height="wrap_content"\r
122                 android:layout_width="150dp"\r
123                 android:id="@+id/subscribeMQService"\r
124                 android:text="Subscribe MQ Service" />\r
125         </LinearLayout>\r
126         <LinearLayout\r
127             android:layout_width="match_parent"\r
128             android:layout_height="wrap_content"\r
129             android:paddingLeft="5dp"\r
130             android:paddingRight="5dp"\r
131             android:orientation="horizontal"\r
132             android:weightSum="1">\r
133 \r
134             <Button\r
135                 android:layout_height="wrap_content"\r
136                 android:layout_width="150dp"\r
137                 android:id="@+id/BtnRegister"\r
138                 android:text="@string/btn_reg"/>\r
139 \r
140             <Button\r
141                 android:layout_height="wrap_content"\r
142                 android:layout_width="150dp"\r
143                 android:id="@+id/BtnSet"\r
144                 android:text="@string/btn_set" />\r
145         </LinearLayout>\r
146 \r
147         <LinearLayout\r
148             android:layout_width="match_parent"\r
149             android:layout_height="wrap_content"\r
150             android:paddingLeft="5dp"\r
151             android:paddingRight="5dp"\r
152             android:orientation="horizontal" >\r
153 \r
154             <Button\r
155                 android:layout_height="wrap_content"\r
156                 android:layout_width="wrap_content"\r
157                 android:id="@+id/BtnTitle"\r
158                 android:text="@string/btn_title"\r
159                 android:onClick="selfDestruct" />\r
160 \r
161             <EditText\r
162                 android:id="@+id/EditTextTitle"\r
163                 android:layout_width="match_parent"\r
164                 android:layout_height="wrap_content"\r
165                 android:windowSoftInputMode="stateHidden"\r
166                 android:hint="Add Message Title" />\r
167         </LinearLayout>\r
168 \r
169         <LinearLayout\r
170             android:id="@+id/LinearBody"\r
171             android:layout_width="match_parent"\r
172             android:layout_height="wrap_content"\r
173             android:paddingLeft="5dp"\r
174             android:paddingRight="5dp"\r
175             android:orientation="horizontal" >\r
176 \r
177             <Button\r
178                 android:layout_height="wrap_content"\r
179                 android:layout_width="wrap_content"\r
180                 android:id="@+id/BtnBody"\r
181                 android:text="@string/btn_body"\r
182                 android:onClick="selfDestruct" />\r
183 \r
184             <EditText\r
185                 android:id="@+id/EditTextBody"\r
186                 android:layout_width="match_parent"\r
187                 android:layout_height="wrap_content"\r
188                 android:windowSoftInputMode="stateHidden"\r
189                 android:hint="Add Message Body" />\r
190         </LinearLayout>\r
191 \r
192         <LinearLayout\r
193             android:id="@+id/Topic"\r
194             android:layout_width="match_parent"\r
195             android:layout_height="wrap_content"\r
196             android:paddingLeft="5dp"\r
197             android:paddingRight="5dp"\r
198             android:orientation="horizontal" >\r
199 \r
200             <Button\r
201                 android:layout_height="wrap_content"\r
202                 android:layout_width="wrap_content"\r
203                 android:id="@+id/BtnTopic"\r
204                 android:text="@string/btn_topic"\r
205                 android:onClick="selfDestruct" />\r
206 \r
207             <EditText\r
208                 android:id="@+id/EditTextTopic"\r
209                 android:layout_width="match_parent"\r
210                 android:layout_height="wrap_content"\r
211                 android:windowSoftInputMode="stateHidden"\r
212                 android:hint="OCF_TOPIC1 (1-4)" />\r
213         </LinearLayout>\r
214 \r
215         <Button\r
216             android:layout_gravity="center_vertical|center_horizontal"\r
217             android:layout_height="wrap_content"\r
218             android:layout_width="match_parent"\r
219             android:id="@+id/BtnCreateNoti"\r
220             android:text="@string/btn_create_noti"\r
221             />\r
222         <Button\r
223             android:layout_gravity="center_vertical|center_horizontal"\r
224             android:layout_height="wrap_content"\r
225             android:layout_width="match_parent"\r
226             android:id="@+id/BtnLog"\r
227             android:text="@string/btn_log"\r
228             android:layout_alignParentBottom="true"\r
229             android:layout_centerHorizontal="true" />\r
230         <LinearLayout\r
231             android:layout_width="match_parent"\r
232             android:layout_height="10dp">\r
233         </LinearLayout>\r
234 \r
235         <ScrollView\r
236             android:layout_width="match_parent"\r
237             android:layout_height="wrap_content"\r
238             android:fillViewport="true">\r
239 \r
240             <LinearLayout\r
241                 android:layout_width="match_parent"\r
242                 android:layout_height="250dp"\r
243                 android:paddingLeft="5dp"\r
244                 android:paddingRight="5dp"\r
245                 android:orientation="horizontal" >\r
246 \r
247                 <TextView\r
248                     android:layout_gravity="center_vertical|center_horizontal"\r
249                     android:layout_height="1000dp"\r
250                     android:layout_width="match_parent"\r
251                     android:scrollbars="vertical"\r
252                     android:id="@+id/TvLog"\r
253                     android:text="Log.."/>\r
254             </LinearLayout>\r
255 \r
256         </ScrollView>\r
257 \r
258     </LinearLayout>\r
259     </ScrollView>\r
260 </RelativeLayout>\r