Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /trunk/OCMAndroid/res/layout/waypoint_fragment.xml [000000] .. [r345] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/trunk/OCMAndroid/res/layout/waypoint_fragment.xml
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical" >
+
+    <RelativeLayout
+        style="?pagerBar"
+        android:layout_width="match_parent"
+        android:layout_height="36dp" >
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_alignParentLeft="true"
+            android:layout_centerVertical="true"
+            android:text="@string/logs"
+            android:textAppearance="?android:attr/textAppearanceMedium"
+            android:textColor="@color/dim_white" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerInParent="true"
+            android:layout_margin="4dp"
+            android:text="@string/waypoint"
+            android:textAppearance="?android:attr/textAppearanceMedium"
+            android:textColor="@color/holo_white" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_alignParentRight="true"
+            android:layout_centerVertical="true"
+            android:text="@string/notes"
+            android:textAppearance="?android:attr/textAppearanceMedium"
+            android:textColor="@color/dim_white" />
+    </RelativeLayout>
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal" >
+
+        <LinearLayout
+            android:layout_width="0dip"
+            android:layout_height="48dp"
+            android:layout_weight="1"
+            android:padding="4dp"
+            android:orientation="vertical" >
+
+            <TextView
+                android:id="@+id/cacheTitle"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:lines="1"
+                android:ellipsize="end"
+                android:drawableLeft="@drawable/ic_md_cito"
+                android:drawablePadding="4dp"
+                android:gravity="left|center_vertical"
+                android:textAppearance="?android:attr/textAppearanceMedium" />
+
+            <TextView
+                android:id="@+id/coordinate"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="left"
+                android:ellipsize="end"
+                android:gravity="center_vertical|left"
+                android:textAppearance="?android:attr/textAppearanceSmall" />
+        </LinearLayout>
+
+        <View
+            android:layout_width="1dp"
+            android:layout_height="match_parent"
+            android:layout_marginBottom="8dp"
+            android:layout_marginTop="8dp"
+            android:background="@color/holo_grey" />
+
+        <ImageButton
+            style="?borderlessButton"
+            android:layout_width="48dp"
+            android:layout_height="48dp"
+            android:src="?placeAction"
+            android:id="@+id/mapButton" />
+        
+        <!--  FUTURE WORK
+
+        <View
+            android:layout_width="1dp"
+            android:layout_height="match_parent"
+            android:layout_marginBottom="8dp"
+            android:layout_marginTop="8dp"
+            android:background="@color/holo_grey" />
+
+        <ImageButton
+            style="?borderlessButton"
+            android:layout_width="48dp"
+            android:layout_height="48dp"
+            android:src="?editAction" />
+
+        <LinearLayout
+            android:id="@+id/resetButton"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:orientation="horizontal"
+            android:visibility="gone" >
+
+            <View
+                android:layout_width="1dp"
+                android:layout_height="match_parent"
+                android:layout_marginBottom="8dp"
+                android:layout_marginTop="8dp"
+                android:background="@color/holo_grey"
+                android:visibility="gone" />
+
+            <ImageButton
+                style="?borderlessButton"
+                android:layout_width="48dp"
+                android:layout_height="48dp"
+                android:src="?resetAction" />
+        </LinearLayout>
+         -->
+    </LinearLayout>
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal" >
+
+        <TextView
+            android:layout_width="0dip"
+            android:layout_height="48dp"
+            android:layout_weight="1"
+            android:ellipsize="end"
+            android:gravity="center_vertical|left"
+            android:text="@string/waypoints"
+            android:textAppearance="?android:attr/textAppearanceMedium"
+            android:textStyle="bold" />
+
+        <View
+            android:layout_width="1dp"
+            android:layout_height="match_parent"
+            android:layout_marginBottom="8dp"
+            android:layout_marginTop="8dp"
+            android:background="@color/holo_grey" />
+
+        <ImageButton
+            style="?borderlessButton"
+            android:id="@+id/newWaypoint"
+            android:layout_width="48dp"
+            android:layout_height="48dp"
+            android:src="?newAction" />
+    </LinearLayout>
+
+    <LinearLayout
+        android:layout_width="fill_parent"
+        android:layout_height="4dp"
+        android:layout_marginBottom="8dp"
+        android:background="@color/holo_blue" >
+    </LinearLayout>
+
+    <ListView
+        android:id="@+id/waypointList"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" >
+    </ListView>
+
+    <TextView
+        android:id="@+id/noWaypoints"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="left"
+        android:layout_margin="4dp"
+        android:ellipsize="end"
+        android:gravity="center_vertical|left"
+        android:text="@string/no_waypoints"
+        android:textAppearance="?android:attr/textAppearanceMedium"
+        android:textColor="@color/holo_grey"
+        android:textStyle="italic"
+        android:visibility="gone" />
+
+</LinearLayout>