replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / notification / examples / android / NotiProviderExample / app / src / main / res / layout / activity_main.xml
old mode 100644 (file)
new mode 100755 (executable)
index 2365c5c..036ab7f
@@ -7,24 +7,39 @@
     android:paddingLeft="@dimen/activity_horizontal_margin"\r
     android:paddingRight="@dimen/activity_horizontal_margin"\r
     android:paddingTop="@dimen/activity_vertical_margin"\r
-    tools:context="com.sec.notificationexample.MainActivity">\r
+    tools:context=".MainActivity">\r
 \r
+    <ScrollView\r
+        android:layout_width="match_parent"\r
+        android:layout_height="wrap_content"\r
+        android:fillViewport="true">\r
     <LinearLayout\r
         android:layout_width="match_parent"\r
         android:layout_height="wrap_content"\r
-        android:paddingLeft="16dp"\r
-        android:paddingRight="16dp"\r
+        android:paddingLeft="1dp"\r
+        android:paddingRight="1dp"\r
         android:orientation="vertical" >\r
 \r
-        <View\r
-            android:layout_width="match_parent"\r
-            android:layout_height="1dp"\r
-            android:layout_alignParentBottom="true"\r
-            android:background="@android:color/darker_gray"/>\r
 \r
         <LinearLayout\r
             android:layout_width="match_parent"\r
-            android:layout_height="10dp">\r
+            android:layout_height="wrap_content"\r
+            android:paddingLeft="5dp"\r
+            android:paddingRight="5dp"\r
+            android:orientation="horizontal"\r
+            android:weightSum="1">\r
+\r
+            <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="150dp"\r
+                android:id="@+id/BtnStart"\r
+                android:text="START"/>\r
+\r
+            <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="150dp"\r
+                android:id="@+id/BtnStop"\r
+                android:text="STOP" />\r
         </LinearLayout>\r
 \r
         <LinearLayout\r
             android:layout_height="wrap_content"\r
             android:paddingLeft="5dp"\r
             android:paddingRight="5dp"\r
-            android:orientation="horizontal" >\r
+            android:orientation="horizontal"\r
+            android:weightSum="1">\r
 \r
-            <Button\r
-                android:layout_gravity="center_vertical|center_horizontal"\r
-                android:layout_height="60dp"\r
+            <RadioGroup\r
+                android:id="@+id/RadioGroup"\r
                 android:layout_width="match_parent"\r
-                android:id="@+id/BtnStart"\r
-                android:text="START"/>\r
+                android:layout_height="wrap_content"\r
+                android:layout_alignParentLeft="true"\r
+                android:orientation='horizontal'>\r
+                    <TextView\r
+                    android:layout_width="wrap_content"\r
+                    android:layout_height="wrap_content"\r
+                    android:text="ACCEPTOR: "\r
+                    android:id="@+id/textview"\r
+                    android:checked="false" />\r
+                    <RadioButton\r
+                        android:layout_width="wrap_content"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="Provider"\r
+                        android:id="@+id/RadioProvider"\r
+                        android:checked="true" />\r
+\r
+                    <RadioButton\r
+                        android:layout_width="wrap_content"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="Consumer"\r
+                        android:id="@+id/RadioConsumer"\r
+                        android:checked="false" />\r
+\r
+            </RadioGroup>\r
         </LinearLayout>\r
+        <LinearLayout\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:paddingLeft="5dp"\r
+            android:paddingRight="5dp"\r
+            android:orientation="horizontal"\r
+            android:weightSum="1">\r
 \r
+            <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="100dp"\r
+                android:id="@+id/signup"\r
+                android:text="Sign Up"/>\r
+\r
+            <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="100dp"\r
+                android:id="@+id/signin"\r
+                android:text="Sign In" />\r
+            <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="100dp"\r
+                android:id="@+id/signout"\r
+                android:text="Sign Out" />\r
+        </LinearLayout>\r
         <LinearLayout\r
             android:layout_width="match_parent"\r
             android:layout_height="wrap_content"\r
             android:paddingLeft="5dp"\r
             android:paddingRight="5dp"\r
-            android:orientation="horizontal" >\r
+            android:orientation="horizontal"\r
+            android:weightSum="1">\r
 \r
             <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="150dp"\r
+                android:id="@+id/remoteService"\r
+                android:text="Enable Remote Service"/>\r
 \r
+            <Button\r
                 android:layout_height="wrap_content"\r
                 android:layout_width="150dp"\r
-                android:id="@+id/BtnAccept"\r
-                android:text="ACCEPT"/>\r
+                android:id="@+id/subscribeMQService"\r
+                android:text="Subscribe MQ Service" />\r
+        </LinearLayout>\r
+        <LinearLayout\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:paddingLeft="5dp"\r
+            android:paddingRight="5dp"\r
+            android:orientation="horizontal"\r
+            android:weightSum="1">\r
 \r
             <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="150dp"\r
+                android:id="@+id/BtnRegister"\r
+                android:text="@string/btn_reg"/>\r
 \r
+            <Button\r
                 android:layout_height="wrap_content"\r
                 android:layout_width="150dp"\r
-                android:id="@+id/BtnSync"\r
-                android:text="SYNC"/>\r
+                android:id="@+id/BtnSet"\r
+                android:text="@string/btn_set" />\r
         </LinearLayout>\r
 \r
         <LinearLayout\r
                 android:layout_width="match_parent"\r
                 android:layout_height="wrap_content"\r
                 android:windowSoftInputMode="stateHidden"\r
-                android:hint="글자를 입력하세요" />\r
+                android:hint="Add Message Title" />\r
         </LinearLayout>\r
 \r
         <LinearLayout\r
                 android:layout_width="match_parent"\r
                 android:layout_height="wrap_content"\r
                 android:windowSoftInputMode="stateHidden"\r
-                android:hint="글자를 입력하세요" />\r
+                android:hint="Add Message Body" />\r
+        </LinearLayout>\r
+\r
+        <LinearLayout\r
+            android:id="@+id/Topic"\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:paddingLeft="5dp"\r
+            android:paddingRight="5dp"\r
+            android:orientation="horizontal" >\r
+\r
+            <Button\r
+                android:layout_height="wrap_content"\r
+                android:layout_width="wrap_content"\r
+                android:id="@+id/BtnTopic"\r
+                android:text="@string/btn_topic"\r
+                android:onClick="selfDestruct" />\r
+\r
+            <EditText\r
+                android:id="@+id/EditTextTopic"\r
+                android:layout_width="match_parent"\r
+                android:layout_height="wrap_content"\r
+                android:windowSoftInputMode="stateHidden"\r
+                android:hint="OCF_TOPIC1 (1-4)" />\r
         </LinearLayout>\r
 \r
         <Button\r
             android:layout_gravity="center_vertical|center_horizontal"\r
-            android:layout_height="60dp"\r
+            android:layout_height="wrap_content"\r
             android:layout_width="match_parent"\r
             android:id="@+id/BtnCreateNoti"\r
             android:text="@string/btn_create_noti"\r
             />\r
-\r
+        <Button\r
+            android:layout_gravity="center_vertical|center_horizontal"\r
+            android:layout_height="wrap_content"\r
+            android:layout_width="match_parent"\r
+            android:id="@+id/BtnLog"\r
+            android:text="@string/btn_log"\r
+            android:layout_alignParentBottom="true"\r
+            android:layout_centerHorizontal="true" />\r
         <LinearLayout\r
             android:layout_width="match_parent"\r
             android:layout_height="10dp">\r
 \r
             <LinearLayout\r
                 android:layout_width="match_parent"\r
-                android:layout_height="150dp"\r
+                android:layout_height="250dp"\r
                 android:paddingLeft="5dp"\r
                 android:paddingRight="5dp"\r
                 android:orientation="horizontal" >\r
 \r
                 <TextView\r
                     android:layout_gravity="center_vertical|center_horizontal"\r
-                    android:layout_height="150dp"\r
+                    android:layout_height="1000dp"\r
                     android:layout_width="match_parent"\r
                     android:scrollbars="vertical"\r
                     android:id="@+id/TvLog"\r
 \r
         </ScrollView>\r
 \r
-        <LinearLayout\r
-            android:layout_width="match_parent"\r
-            android:layout_height="wrap_content"\r
-            android:paddingLeft="5dp"\r
-            android:paddingRight="5dp"\r
-            android:orientation="horizontal" >\r
-\r
-            <Button\r
-                android:layout_gravity="center_vertical|center_horizontal"\r
-                android:layout_height="60dp"\r
-                android:layout_width="match_parent"\r
-                android:id="@+id/BtnStop"\r
-                android:text="STOP"/>\r
-        </LinearLayout>\r
-\r
-        <View\r
-            android:layout_width="match_parent"\r
-            android:layout_height="1dp"\r
-            android:layout_alignParentBottom="true"\r
-            android:background="@android:color/darker_gray"/>\r
-\r
-        <LinearLayout\r
-            android:layout_width="match_parent"\r
-            android:layout_height="20dp">\r
-        </LinearLayout>\r
-\r
     </LinearLayout>\r
-\r
-\r
+    </ScrollView>\r
 </RelativeLayout>\r