rename statistics markers to split markers

rename waypoint to marker
place my location button below the warning message.
This commit is contained in:
Jimmy Shih
2012-05-11 15:35:45 -07:00
parent 1fef0144b3
commit f0beca8606
5 changed files with 73 additions and 75 deletions
+4 -4
View File
@@ -91,16 +91,16 @@ limitations under the License.
android:text="@string/help_saved_files_answer" android:text="@string/help_saved_files_answer"
style="@style/HelpAnswer" /> style="@style/HelpAnswer" />
<TextView <TextView
android:text="@string/help_waypoint_marker_question" android:text="@string/help_marker_question"
style="@style/HelpQuestion" /> style="@style/HelpQuestion" />
<TextView <TextView
android:text="@string/help_waypoint_marker_answer" android:text="@string/help_marker_answer"
style="@style/HelpAnswer" /> style="@style/HelpAnswer" />
<TextView <TextView
android:text="@string/help_statistics_marker_question" android:text="@string/help_split_marker_question"
style="@style/HelpQuestion" /> style="@style/HelpQuestion" />
<TextView <TextView
android:text="@string/help_statistics_marker_answer" android:text="@string/help_split_marker_answer"
style="@style/HelpAnswer" /> style="@style/HelpAnswer" />
<TextView <TextView
android:text="@string/help_delete_tracks_question" android:text="@string/help_delete_tracks_question"
+10 -10
View File
@@ -26,16 +26,6 @@ limitations under the License.
android:id="@+id/map_view" android:id="@+id/map_view"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_width="fill_parent" /> android:layout_width="fill_parent" />
<ImageButton
android:background="@drawable/my_location"
android:contentDescription="@string/icon_my_location"
android:id="@+id/map_my_location"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:layout_width="wrap_content" />
<TextView <TextView
android:background="@color/warning_background" android:background="@color/warning_background"
android:drawableLeft="@android:drawable/ic_dialog_alert" android:drawableLeft="@android:drawable/ic_dialog_alert"
@@ -47,4 +37,14 @@ limitations under the License.
android:textColor="@android:color/primary_text_dark" android:textColor="@android:color/primary_text_dark"
android:visibility="gone" android:visibility="gone"
style="@style/TextMedium.WithIcon" /> style="@style/TextMedium.WithIcon" />
<ImageButton
android:background="@drawable/my_location"
android:contentDescription="@string/icon_my_location"
android:id="@+id/map_my_location"
android:layout_below="@id/map_message"
android:layout_alignParentRight="true"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:layout_width="wrap_content" />
</RelativeLayout> </RelativeLayout>
+57 -59
View File
@@ -377,8 +377,8 @@ limitations under the License.
Use My Tracks while you run, bike, hike, or do anything else outdoors, and it will use the GPS Use My Tracks while you run, bike, hike, or do anything else outdoors, and it will use the GPS
sensor in your phone to record the path you took. It will also gather useful statistics such as sensor in your phone to record the path you took. It will also gather useful statistics such as
time, speed, distance, and elevation. You can review all of this data live, or you can save it time, speed, distance, and elevation. You can review all of this data live, or you can save it
for use later. While you\'re out, you can mark relevant waypoints, and can ask to hear automatic for use later. While you\'re out, you can insert markers, have split markers inserted
voice announcements about your progress.\n automatically, and can ask to hear periodic voice announcements of your progress.\n
\n \n
My Tracks can record data from external sensors:\n My Tracks can record data from external sensors:\n
- Zephyr Technology Consumer HxM Bluetooth heart rate monitor\n - Zephyr Technology Consumer HxM Bluetooth heart rate monitor\n
@@ -654,7 +654,7 @@ limitations under the License.
translation_description="The title on an alert dialog indicating success."> translation_description="The title on an alert dialog indicating success.">
Success Success
</string> </string>
<!-- GPS --> <!-- GPS -->
<string name="gps_need_to_enable" <string name="gps_need_to_enable"
translation_description="In the main view, the message on the top asking the user to enable translation_description="In the main view, the message on the top asking the user to enable
@@ -755,6 +755,14 @@ limitations under the License.
translation_description="In the 'Help' page, the question on location precision."> translation_description="In the 'Help' page, the question on location precision.">
How precise are the recorded tracks? How precise are the recorded tracks?
</string> </string>
<string name="help_marker_answer"
translation_description="In the 'Help' page, the answer on markers.">
Markers are used to annotate a location.
</string>
<string name="help_marker_question"
translation_description="In the 'Help' page, the question on markers.">
What are markers?
</string>
<string name="help_my_tracks_answer" <string name="help_my_tracks_answer"
translation_description="In the 'Help' page, the answer on what is My Tracks."> translation_description="In the 'Help' page, the answer on what is My Tracks.">
My Tracks allows you to record GPS tracks and visualize your hiking, running, biking or any My Tracks allows you to record GPS tracks and visualize your hiking, running, biking or any
@@ -793,6 +801,15 @@ limitations under the License.
translation_description="In the 'Help' page, the question on share visibility."> translation_description="In the 'Help' page, the question on share visibility.">
Who can see the tracks I send to Google Maps and Google Fusion Tables? Who can see the tracks I send to Google Maps and Google Fusion Tables?
</string> </string>
<string name="help_split_marker_answer"
translation_description="In the 'Help' page, the answer on split markers.">
The split markers are used to segment a track to calculate statistics for each segment. Split
markers are inserted by setting the split frequency in the menu.
</string>
<string name="help_split_marker_question"
translation_description="In the 'Help' page, the question on split markers.">
What are split markers?
</string>
<string name="help_split_track_answer" <string name="help_split_track_answer"
translation_description="In the 'Help' page, the answer on splitting long tracks."> translation_description="In the 'Help' page, the answer on splitting long tracks.">
Tracks on Google Maps and Google Fusion Tables are limited to certain sizes. Tracks on Google Maps and Google Fusion Tables are limited to certain sizes.
@@ -802,24 +819,6 @@ limitations under the License.
Why do very long tracks split into multiple segments upon sending them to Google Maps and Why do very long tracks split into multiple segments upon sending them to Google Maps and
Google Fusion Tables? Google Fusion Tables?
</string> </string>
<string name="help_statistics_marker_answer"
translation_description="In the 'Help' page, the answer on statistics markers.">
Statistics markers are used to segment a track to calculate statistics for each segment. For
example, let\'s say you are recording a bike ride up a hill, you can insert a statistics marker
at the bottom of the hill and another at the top.
</string>
<string name="help_statistics_marker_question"
translation_description="In the 'Help' page, the question on statistics markers.">
What are statistics markers?
</string>
<string name="help_waypoint_marker_answer"
translation_description="In the 'Help' page, the answer on waypoint markers.">
Waypoint markers are used to annotate a location.
</string>
<string name="help_waypoint_marker_question"
translation_description="In the 'Help' page, the question on waypoint markers.">
What are waypoint markers?
</string>
<!-- Icon --> <!-- Icon -->
<string name="icon_marker" <string name="icon_marker"
@@ -952,34 +951,34 @@ limitations under the License.
%1$s marker name. E.g., 'Marker 1'."> %1$s marker name. E.g., 'Marker 1'.">
Name: %1$s Name: %1$s
</string> </string>
<string name="marker_detail_description" <string name="marker_detail_description"
translation_description="In the marker detail page, the label for the description. translation_description="In the marker detail page, the label for the description.
%1$s marker description. E.g., 'At the top'."> %1$s marker description. E.g., 'At the top'.">
Description: %1$s Description: %1$s
</string> </string>
<string name="marker_detail_marker_type" <string name="marker_detail_marker_type"
translation_description="In the marker detail page, the label for the marker type. translation_description="In the marker detail page, the label for the marker type.
%1$s marker type. E.g., 'building'."> %1$s marker type. E.g., 'building'.">
Marker type: %1$s Marker type: %1$s
</string> </string>
<string name="marker_detail_statistics_title" <string name="marker_detail_statistics_title"
translation_description="In the marker detail page, the title for the statistics section translation_description="In the marker detail page, the title for the statistics section
indicating that the data below are since the last Statistics marker."> indicating that the data below are since the last split marker.">
Since last Statistics marker: Since last split marker:
</string> </string>
<string name="marker_edit_marker_type" <string name="marker_edit_marker_type"
translation_description="In the marker edit page, the label for the marker type, including some translation_description="In the marker edit page, the label for the marker type, including some
exmaples."> examples.">
Marker type (e.g. building, pothole...) Marker type (e.g. building, pothole...)
</string> </string>
<string name="marker_edit_marker_type_hint" <string name="marker_edit_marker_type_hint"
translation_description="In the marker edit page, the hint in the marker type text field when it translation_description="In the marker edit page, the hint in the marker type text field when it
is empty."> is empty.">
Marker type Marker type
</string> </string>
<string name="marker_label_end" <string name="marker_label_end"
translation_description="When inserting a marker to indicate the end of a track, the marker's translation_description="When inserting a marker to indicate the end of a track, the marker's
name. E.g., 'track_name (End)'. name. E.g., 'track_name (End)'.
@@ -998,20 +997,19 @@ limitations under the License.
translation_description="The message when the marker list is empty."> translation_description="The message when the marker list is empty.">
You don\'t have any markers. You don\'t have any markers.
</string> </string>
<string name="marker_statistics_name_format"
translation_description="When adding a statistics marker, the string format for the default
name.
%1$d: number. E.g., '1'.">
Statistics %1$d
</string>
<string name="marker_name_format" <string name="marker_name_format"
translation_description="When adding a marker, the string format for the default name. translation_description="When adding a marker, the string format for the default name.
%1$d: number. E.g., '1'."> %1$d: number. E.g., '1'.">
Marker %1$d Marker %1$d
</string> </string>
<string name="marker_split_name_format"
translation_description="When adding a split marker, the string format for the default name.
%1$d: number. E.g., '1'.">
Split %1$d
</string>
<!-- Menu Items --> <!-- Menu Items -->
<string name="menu_aggregated_statistics" <string name="menu_aggregated_statistics"
translation_description="In the menu, to go to the aggregated statistics page."> translation_description="In the menu, to go to the aggregated statistics page.">
@@ -1134,7 +1132,7 @@ limitations under the License.
status."> status.">
Voice frequency Voice frequency
</string> </string>
<!-- My Location --> <!-- My Location -->
<string name="my_location_approximate_location" <string name="my_location_approximate_location"
translation_description="When displaying the user's current location, a status message translation_description="When displaying the user's current location, a status message
@@ -1208,7 +1206,7 @@ limitations under the License.
success."> success.">
Save finished. Save finished.
</string> </string>
<!-- SD Card --> <!-- SD Card -->
<string name="sd_card_canceled" <string name="sd_card_canceled"
translation_description="When exporting a track to the SD card, a message indicating that the translation_description="When exporting a track to the SD card, a message indicating that the
@@ -1510,13 +1508,13 @@ limitations under the License.
translation_description="In the 'Chart' settings, the option to display the x axis by translation_description="In the 'Chart' settings, the option to display the x axis by
distance."> distance.">
By distance By distance
</string> </string>
<string name="settings_chart_by_time" <string name="settings_chart_by_time"
translation_description="In the 'Chart' settings, the option to display the x axis by time."> translation_description="In the 'Chart' settings, the option to display the x axis by time.">
By time By time
</string> </string>
<string name="settings_chart_x_axis" <string name="settings_chart_x_axis"
translation_description="In the 'Chart' setttings, the option to change the x axis display, translation_description="In the 'Chart' settings, the option to change the x axis display,
either by distance or by time."> either by distance or by time.">
X axis X axis
</string> </string>
@@ -1583,7 +1581,7 @@ limitations under the License.
track recording."> track recording.">
Not available while recording a track. Not available while recording a track.
</string> </string>
<!-- Settings Recording --> <!-- Settings Recording -->
<string name="settings_recording" <string name="settings_recording"
translation_description="In the 'Settings' page, the option to change the track recording translation_description="In the 'Settings' page, the option to change the track recording
@@ -1729,7 +1727,7 @@ limitations under the License.
explaining reverting all the settings to the default values."> explaining reverting all the settings to the default values.">
Revert all your settings to the default values. Revert all your settings to the default values.
</string> </string>
<!-- Settings Sensor --> <!-- Settings Sensor -->
<string name="settings_sensor" <string name="settings_sensor"
translation_description="In the 'Settings' page, the option to change the sensor related translation_description="In the 'Settings' page, the option to change the sensor related
@@ -1854,7 +1852,7 @@ limitations under the License.
Character limit: ~26 (1 line)"> Character limit: ~26 (1 line)">
Unpair SRM ANT+ bridge Unpair SRM ANT+ bridge
</string> </string>
<!-- Settings Sharing --> <!-- Settings Sharing -->
<string name="settings_sharing" <string name="settings_sharing"
translation_description="In the 'Settings' page, the option to change the track sharing related translation_description="In the 'Settings' page, the option to change the track sharing related
@@ -1931,10 +1929,10 @@ limitations under the License.
<!-- Settings Split --> <!-- Settings Split -->
<string name="settings_split_frequency_title" <string name="settings_split_frequency_title"
translation_description="In title of the 'Split frequency' dialog."> translation_description="In title of the 'Split frequency' dialog.">
Time/distance between two split markers Time/distance between two split markers
</string> </string>
<!-- Settings Stats --> <!-- Settings Stats -->
<string name="settings_stats_coordinate" <string name="settings_stats_coordinate"
translation_description="In the 'Stats settings, the option to show latitude and longitude."> translation_description="In the 'Stats settings, the option to show latitude and longitude.">
@@ -1976,7 +1974,7 @@ limitations under the License.
Time measurement Time measurement
</string> </string>
<string name="settings_stats_units_imperial" <string name="settings_stats_units_imperial"
translation_description="In the 'Stats' setttings, the option to use imperial units, with translation_description="In the 'Stats' settings, the option to use imperial units, with
examples."> examples.">
Imperial (mi, ft) Imperial (mi, ft)
</string> </string>
@@ -1984,7 +1982,7 @@ limitations under the License.
translation_description="In the 'Stats' settings, the option to use metric units, with translation_description="In the 'Stats' settings, the option to use metric units, with
examples."> examples.">
Metric (km, m) Metric (km, m)
</string> </string>
<string name="settings_stats_units_title" <string name="settings_stats_units_title"
translation_description="In the 'Stats' settings page, the option to change the preferred units, translation_description="In the 'Stats' settings page, the option to change the preferred units,
either metric (km) or imperial (mi)."> either metric (km) or imperial (mi).">
@@ -2120,11 +2118,11 @@ limitations under the License.
<string name="track_detail_stats_tab" <string name="track_detail_stats_tab"
translation_description="In the track detail page, the title of the tab showing the stats."> translation_description="In the track detail page, the title of the tab showing the stats.">
Stats Stats
</string> </string>
<string name="track_detail_title_recording" <string name="track_detail_title_recording"
translation_description="In the track detail page, the title when recording."> translation_description="In the track detail page, the title when recording.">
Recording... Recording...
</string> </string>
<string name="track_edit_activity_type" <string name="track_edit_activity_type"
translation_description="In the page to edit a track, the label for the text field to edit the translation_description="In the page to edit a track, the label for the text field to edit the
activity type, including some examples of activity types."> activity type, including some examples of activity types.">
@@ -2357,10 +2355,10 @@ limitations under the License.
</string> </string>
<string name="value_integer_percent" <string name="value_integer_percent"
translation_description="To display a value in percent like 2 %. translation_description="To display a value in percent like 2 %.
%1$d: an integer value. E.g., '2'"> %1$d: an integer value. E.g., '2'">
%1$d %% %1$d %%
</string> </string>
<string name="value_integer_second" <string name="value_integer_second"
translation_description="In a setting picker, the string format to display an integer value in translation_description="In a setting picker, the string format to display an integer value in
seconds (s). seconds (s).
@@ -2384,11 +2382,11 @@ limitations under the License.
<string name="value_coordinate_degree" <string name="value_coordinate_degree"
translation_description="To display a latitude or longitude coordinate in degree. E.g., translation_description="To display a latitude or longitude coordinate in degree. E.g.,
2.2 \u00B0. \u00B0 is the unicode value for the degree symbol. 2.2 \u00B0. \u00B0 is the unicode value for the degree symbol.
%1$s: a string value of the coordinate. E.g., '2.2'"> %1$s: a string value of the coordinate. E.g., '2.2'">
%1$s \u00B0 %1$s \u00B0
</string> </string>
<!-- Voice --> <!-- Voice -->
<string name="voice_hours_few" <string name="voice_hours_few"
translation_description="For voice announcement, to say 'few' hours. translation_description="For voice announcement, to say 'few' hours.
@@ -2898,10 +2896,10 @@ limitations under the License.
<string name="welcome_message" <string name="welcome_message"
translation_description="The message of the welcome dialog."> translation_description="The message of the welcome dialog.">
Use My Tracks while you run, bike, hike, or do anything outdoor to record your path. While Use My Tracks while you run, bike, hike, or do anything outdoor to record your path. While
recording, you can visualize your track and watch live statistics. You can also add recording, you can visualize your track and watch live statistics. You can also add markers,
markers, have markers inserted periodically, or hear automatic voice announcements of have split markers inserted periodically, or hear periodic announcements of your progress.
your progress. For recorded tracks, you can play them on Google Earth, share with friends, or For recorded tracks, you can play them on Google Earth, share with friends, or upload to Google
upload to Google Maps, Google Fusion Tables, or Google Docs. Maps, Google Fusion Tables, or Google Docs.
</string> </string>
<string name="welcome_title" <string name="welcome_title"
translation_description="The title of the welcome dialog."> translation_description="The title of the welcome dialog.">
@@ -997,7 +997,7 @@ public class TrackRecordingService extends Service {
} else { } else {
int nextMarkerNumber = providerUtils.getNextMarkerNumber(recordingTrackId, true); int nextMarkerNumber = providerUtils.getNextMarkerNumber(recordingTrackId, true);
name = nextMarkerNumber == -1 ? getString(R.string.marker_type_statistics) name = nextMarkerNumber == -1 ? getString(R.string.marker_type_statistics)
: getString(R.string.marker_statistics_name_format, nextMarkerNumber); : getString(R.string.marker_split_name_format, nextMarkerNumber);
} }
waypoint.setName(name); waypoint.setName(name);
waypoint.setStatistics(waypointStatsBuilder.getStatistics()); waypoint.setStatistics(waypointStatsBuilder.getStatistics());
@@ -502,7 +502,7 @@ public class TrackRecordingServiceTest extends ServiceTestCase<TestRecordingServ
Waypoint wpt = providerUtils.getWaypoint(2); Waypoint wpt = providerUtils.getWaypoint(2);
assertEquals(getContext().getString(R.string.marker_statistics_icon_url), wpt.getIcon()); assertEquals(getContext().getString(R.string.marker_statistics_icon_url), wpt.getIcon());
assertEquals(getContext().getString(R.string.marker_statistics_name_format, 1), wpt.getName()); assertEquals(getContext().getString(R.string.marker_split_name_format, 1), wpt.getName());
assertEquals(Waypoint.TYPE_STATISTICS, wpt.getType()); assertEquals(Waypoint.TYPE_STATISTICS, wpt.getType());
assertEquals(123L, wpt.getTrackId()); assertEquals(123L, wpt.getTrackId());
assertEquals(0.0, wpt.getLength()); assertEquals(0.0, wpt.getLength());