time & date display; final layout
[WhereAmI.git] / res / layout / main.xml
index 58c56a2043d09593fbb308c3d3cad62606aea905..f78b7468230d8ae869fc984ebc60ad6f8ed29b11 100644 (file)
@@ -1,17 +1,84 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
-    android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
     android:background="#ffffffff"
 >
+  <LinearLayout
+    android:orientation="horizontal"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:layout_weight="1"
+  >
+    <TextView
+      android:id="@+id/time"
+      android:layout_width="wrap_content" 
+      android:layout_height="match_parent" 
+      android:layout_weight="2"
+      android:gravity="center"
+      android:textColor="#ff000000"
+      android:textSize="48sp"
+    />
+    <View
+      android:layout_width="3dp"
+      android:layout_height="match_parent"
+      android:background="#ff000000"
+    />
+    <TextView
+      android:id="@+id/date"
+      android:layout_width="wrap_content" 
+      android:layout_height="match_parent" 
+      android:layout_weight="5"
+      android:gravity="center"
+      android:textColor="#ff000000"
+      android:textSize="24sp"
+    />
+  </LinearLayout>
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="3dp"
+    android:background="#ff000000"
+  />
+  <TextView
+    android:id="@+id/location"
+    android:layout_width="match_parent" 
+    android:layout_height="match_parent" 
+    android:gravity="center"
+    android:layout_weight="1"
+    android:textColor="#ff000000"
+    android:textSize="24sp"
+    android:text="location"
+  />
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="3dp"
+    android:background="#ff000000"
+  />
+  <TextView
+    android:id="@+id/phonecall"
+    android:layout_width="match_parent" 
+    android:layout_height="match_parent" 
+    android:gravity="center"
+    android:layout_weight="1"
+    android:textColor="#ff000000"
+    android:textSize="24sp"
+    android:text="phonecall"
+  />
+  <View
+    android:layout_width="match_parent"
+    android:layout_height="3dp"
+    android:background="#ff000000"
+  />
   <TextView
-    android:id="@+id/tv"
-    android:layout_width="fill_parent" 
-    android:layout_height="wrap_content" 
+    android:id="@+id/timestamp"
+    android:layout_width="match_parent" 
+    android:layout_height="match_parent" 
     android:gravity="center"
     android:layout_weight="1"
     android:textColor="#ff000000"
+    android:textSize="24sp"
+    android:text="timestamp"
   />
 </LinearLayout>