summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2010-10-29 00:48:14 +0100
committerJoe Robinson <joe@lc8n.com>2010-10-29 00:48:14 +0100
commit6093815099eb6d6c3d978579ccbdde38fa916f13 (patch)
treed99bd4e993b0e0ffd96dc1be8863512060681b6e /res/layout
Untouched work since submission for university project 04/05/2010. Messy code, a bit glitchy.HEADmaster
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/camera.xml62
-rw-r--r--res/layout/main.xml54
2 files changed, 116 insertions, 0 deletions
diff --git a/res/layout/camera.xml b/res/layout/camera.xml
new file mode 100644
index 0000000..d60c27b
--- /dev/null
+++ b/res/layout/camera.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <com.lc8n.android.CustomCameraView
+ android:id="@+id/camview"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+ <LinearLayout
+ android:id="@+id/overlay"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true">
+ <EditText
+ android:id="@+id/entry1"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="2"/>
+ <ImageButton
+ android:id="@+id/ok1"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="8"
+ android:src="@drawable/search"/>
+ </LinearLayout>
+ <LinearLayout
+ android:id="@+id/loc"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_centerHorizontal="true">
+ <TextView
+ android:id="@+id/loc1"
+ android:text="location"
+ android:textSize="10pt"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:layout_weight="1"/>
+ <LinearLayout
+ android:id="@+id/seek"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_centerHorizontal="true">
+ <Spinner
+ android:id="@+id/spinner"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:drawSelectorOnTop="true"
+ android:prompt="@string/db_prompt"
+ android:layout_weight="8"
+ />
+
+
+ </LinearLayout>
+ </LinearLayout>
+</RelativeLayout> \ No newline at end of file
diff --git a/res/layout/main.xml b/res/layout/main.xml
new file mode 100644
index 0000000..a2e4f03
--- /dev/null
+++ b/res/layout/main.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <com.google.android.maps.MapView
+ android:id="@+id/mapview"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:clickable="true"
+ android:apiKey="0ksIJGFhvoENlKbGMqb1qukBrG7bc0k16leprGA"
+ />
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true">
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true">
+
+ <Spinner
+ android:id="@+id/spinner"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:drawSelectorOnTop="true"
+ android:prompt="@string/db_prompt"
+ android:layout_weight="2"
+ />
+ <EditText
+ android:id="@+id/entry"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="2"/>
+ <ImageButton
+ android:id="@+id/ok"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="3"
+ android:src="@drawable/search"/>
+
+ <ImageButton
+ android:id="@+id/camera"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="3"
+ android:src="@drawable/camera"/>
+ </LinearLayout>
+</LinearLayout>
+</RelativeLayout> \ No newline at end of file