summaryrefslogtreecommitdiff
path: root/same-android/res
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-07 15:04:02 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-07 15:04:02 +0100
commitd989fd15232f111bedf79a36c9ec6870357fc26e (patch)
tree9213c26f768797f3084cec2c543543fb03923f9b /same-android/res
parent4e2adf917b0a6112c8d0db1a7afdf937866f4a3d (diff)
Extend SameService.
– Binding to SameService now possible. – Broadcast created for available networks.
Diffstat (limited to 'same-android/res')
-rw-r--r--same-android/res/layout/controller.xml18
-rw-r--r--same-android/res/layout/list_text_item.xml7
2 files changed, 19 insertions, 6 deletions
diff --git a/same-android/res/layout/controller.xml b/same-android/res/layout/controller.xml
index 6cfea80..a85cacd 100644
--- a/same-android/res/layout/controller.xml
+++ b/same-android/res/layout/controller.xml
@@ -17,6 +17,18 @@
android:onClick="createNetwork"
android:text="Create" />
+ <ListView
+ android:id="@+id/network_list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+ </ListView>
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:onClick="searchNetworks"
+ android:text="Search" />
+
<EditText
android:id="@+id/master_service_url"
android:layout_width="match_parent"
@@ -28,12 +40,6 @@
android:onClick="joinNetwork"
android:text="Join" />
- <ListView
- android:id="@+id/network_list"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" >
- </ListView>
-
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/same-android/res/layout/list_text_item.xml b/same-android/res/layout/list_text_item.xml
new file mode 100644
index 0000000..3aa90dd
--- /dev/null
+++ b/same-android/res/layout/list_text_item.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="10dp"
+ android:textSize="16sp">
+</TextView> \ No newline at end of file