]> www.average.org Git - UdpRespond.git/blobdiff - res/layout/main.xml
use datagram sockets
[UdpRespond.git] / res / layout / main.xml
index 9caf5f68a4b11f3b1f3797332ca487df4ab27a67..1abab34b89b83734156425ea324b215edc96d58e 100644 (file)
@@ -1,23 +1,35 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:orientation="vertical"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     >
 <Button android:id="@+id/btn_stop"
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
+    android:layout_alignParentTop="true"
+    android:layout_alignParentRight="true"
     android:text="Stop"
     />
 <Button android:id="@+id/btn_start"
     android:layout_width="wrap_content" 
-    android:layout_height="wrap_content" 
+    android:layout_height="wrap_content"
+    android:layout_alignParentTop="true"
+    android:layout_toLeftOf="@id/btn_stop"
     android:text="Start"
     />
+<EditText android:id="@+id/text_entry"
+    android:layout_width="fill_parent" 
+    android:layout_height="wrap_content"
+    android:layout_alignParentTop="true"
+    android:layout_toLeftOf="@id/btn_start"
+    android:digits="01234567890"
+    android:text="9999"
+    />
 <TextView android:id="@+id/tv"
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
+    android:layout_below="@id/text_entry"
     android:text="UdpRespondActivity"
     />
-</LinearLayout>
+</RelativeLayout>