From dc9346c06790522f4c7423de669a6d3adf19c210 Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Wed, 9 May 2012 18:26:08 -0700 Subject: [PATCH] Add relative date time for start time within the past week. Place the list item on the right by itself. --- MyTracks/res/layout/list_item.xml | 72 +++++++++++-------- MyTracks/res/layout/map.xml | 2 +- MyTracks/res/values/strings.xml | 27 ++++--- MyTracks/res/values/styles.xml | 5 -- .../apps/mytracks/MarkerListActivity.java | 7 +- .../apps/mytracks/SearchListActivity.java | 22 +++--- .../apps/mytracks/SensorStateActivity.java | 4 +- .../apps/mytracks/TrackListActivity.java | 12 ++-- .../apps/mytracks/util/ListItemUtils.java | 19 +++-- .../apps/mytracks/util/StringUtils.java | 32 +++++---- .../apps/mytracks/util/StringUtilsTest.java | 18 ----- 11 files changed, 117 insertions(+), 103 deletions(-) diff --git a/MyTracks/res/layout/list_item.xml b/MyTracks/res/layout/list_item.xml index fbe066805..7a6a6ca13 100644 --- a/MyTracks/res/layout/list_item.xml +++ b/MyTracks/res/layout/list_item.xml @@ -19,41 +19,53 @@ limitations under the License. android:layout_height="wrap_content" android:layout_width="fill_parent" android:minHeight="?android:attr/listPreferredItemHeight" - android:orientation="vertical" + android:orientation="horizontal" android:padding="8dp" > + + android:orientation="vertical" > + + + + + + + + + - - - - - - - \ No newline at end of file diff --git a/MyTracks/res/layout/map.xml b/MyTracks/res/layout/map.xml index 95f808304..d10b08d9a 100644 --- a/MyTracks/res/layout/map.xml +++ b/MyTracks/res/layout/map.xml @@ -28,7 +28,7 @@ limitations under the License. android:layout_width="fill_parent" /> + + + Marker + + + My Location + + + Recording + + + Track + + - My Location - @@ -2127,10 +2140,6 @@ limitations under the License. translation_description="In the track detail page, the title when recording."> Recording... - - Track - diff --git a/MyTracks/res/values/styles.xml b/MyTracks/res/values/styles.xml index a3716c7f7..20e8bc5a6 100644 --- a/MyTracks/res/values/styles.xml +++ b/MyTracks/res/values/styles.xml @@ -122,11 +122,6 @@ limitations under the License. wrap_content 22sp - -