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
13 android:layout_width="match_parent"
\r
14 android:layout_height="wrap_content"
\r
15 android:fillViewport="true">
\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
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
33 android:layout_height="wrap_content"
\r
34 android:layout_width="150dp"
\r
35 android:id="@+id/BtnStart"
\r
36 android:text="START"/>
\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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
231 android:layout_width="match_parent"
\r
232 android:layout_height="10dp">
\r
236 android:layout_width="match_parent"
\r
237 android:layout_height="wrap_content"
\r
238 android:fillViewport="true">
\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
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