Add action item icons for
- record_track - stop_recording - search - settings - help Note that the record_track icon is a temporary placeholder until the actual icon is available. Change AndroidManifest so that splitActionBarWhenNarrow is not applied to all activities in the application. Rename menu strings so they are more consistent.
@@ -137,8 +137,7 @@ limitations under the License.
|
||||
android:icon="@drawable/arrow_icon"
|
||||
android:label="@string/my_tracks_app_name"
|
||||
android:name="com.google.android.apps.mytracks.MyTracksApplication"
|
||||
android:theme="@style/ThemeSelector"
|
||||
android:uiOptions="splitActionBarWhenNarrow" >
|
||||
android:theme="@style/ThemeSelector" >
|
||||
|
||||
<!-- For data backup -->
|
||||
<meta-data
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 639 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 343 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 384 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -15,78 +15,61 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:icon="@drawable/ic_menu_recordtrack"
|
||||
android:icon="@drawable/menu_record_track"
|
||||
android:id="@+id/menu_record_track"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/menu_record_track"/>
|
||||
|
||||
<item
|
||||
android:icon="@drawable/ic_menu_stoprecording"
|
||||
android:icon="@drawable/menu_stop_recording"
|
||||
android:id="@+id/menu_stop_recording"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/menu_stop_recording"/>
|
||||
|
||||
<item
|
||||
android:icon="@drawable/ic_menu_tracklist"
|
||||
android:id="@+id/menu_tracks"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/menu_tracks"/>
|
||||
|
||||
<item
|
||||
android:icon="@drawable/ic_menu_waypoints"
|
||||
android:id="@+id/menu_markers"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/menu_markers"/>
|
||||
|
||||
<item
|
||||
android:icon="@drawable/ic_menu_chartsettings"
|
||||
android:id="@+id/menu_chart_settings"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/menu_chart_view_chart_settings"
|
||||
android:title="@string/menu_chart_settings"
|
||||
android:visible="false"/>
|
||||
|
||||
<item
|
||||
android:icon="@android:drawable/ic_menu_mylocation"
|
||||
android:id="@+id/menu_my_location"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/menu_map_view_my_location"
|
||||
android:title="@string/menu_my_location"
|
||||
android:visible="false"/>
|
||||
|
||||
<item
|
||||
android:icon="@android:drawable/ic_menu_mapmode"
|
||||
android:id="@+id/menu_satellite_mode"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/menu_map_view_satellite_mode"
|
||||
android:title="@string/menu_satellite_mode"
|
||||
android:visible="false"/>
|
||||
|
||||
<item
|
||||
android:icon="@android:drawable/ic_menu_search"
|
||||
android:icon="@drawable/menu_search"
|
||||
android:id="@+id/menu_search"
|
||||
android:title="@string/menu_search"/>
|
||||
|
||||
<item
|
||||
android:icon="@drawable/ic_menu_sensorstatus"
|
||||
android:id="@+id/menu_sensor_state"
|
||||
android:orderInCategory="1000"
|
||||
android:title="@string/menu_sensor_state"/>
|
||||
|
||||
<item
|
||||
android:icon="@android:drawable/ic_menu_preferences"
|
||||
android:icon="@drawable/menu_settings"
|
||||
android:id="@+id/menu_settings"
|
||||
android:orderInCategory="1001"
|
||||
android:title="@string/menu_settings"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_aggregated_statistics"
|
||||
android:orderInCategory="1002"
|
||||
android:title="@string/menu_aggregated_statistics"/>
|
||||
|
||||
<item
|
||||
android:icon="@android:drawable/ic_menu_info_details"
|
||||
android:icon="@drawable/menu_help"
|
||||
android:id="@+id/menu_help"
|
||||
android:orderInCategory="1003"
|
||||
android:title="@string/menu_help"/>
|
||||
|
||||
</menu>
|
||||
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
-->
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item
|
||||
android:icon="@android:drawable/ic_menu_search"
|
||||
android:icon="@drawable/menu_search"
|
||||
android:id="@+id/menu_search"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/menu_search"/>
|
||||
|
||||
@@ -966,80 +966,55 @@ limitations under the License.
|
||||
|
||||
<!-- Menu Items -->
|
||||
<string name="menu_aggregated_statistics"
|
||||
translation_description="In the menu, to go to the aggregated statistics page.
|
||||
|
||||
Screenshot: menu_record_track_more.png">
|
||||
translation_description="In the menu, to go to the aggregated statistics page.">
|
||||
Aggregated statistics
|
||||
</string>
|
||||
<string name="menu_chart_view_chart_settings"
|
||||
translation_description="In the menu for the chart view, to change the chart settings.
|
||||
|
||||
Screenshot: menu_chart_settings.png">
|
||||
<string name="menu_chart_settings"
|
||||
translation_description="In the menu, to change the chart settings.">
|
||||
Chart settings
|
||||
</string>
|
||||
<string name="menu_help"
|
||||
translation_description="In the menu, to go to the help page.
|
||||
|
||||
Screenshot: menu_record_track_more.png">
|
||||
translation_description="In the menu, to go to the help page.">
|
||||
Help
|
||||
</string>
|
||||
<string name="menu_map_view_map_mode"
|
||||
translation_description="In the menu for the map view, to switch the display to the map mode.
|
||||
|
||||
Screenshot: menu_map_mode.png">
|
||||
<string name="menu_map_mode"
|
||||
translation_description="In the menu, to switch the display to the map mode.">
|
||||
Map mode
|
||||
</string>
|
||||
<string name="menu_map_view_my_location"
|
||||
translation_description="In the menu for the map view, to display user's current location.
|
||||
|
||||
Screenshot: menu_record_track.png">
|
||||
My location
|
||||
</string>
|
||||
<string name="menu_map_view_satellite_mode"
|
||||
translation_description="In the menu for the map view, to switch the display to the satellite
|
||||
mode.
|
||||
|
||||
Screenshot: menu_record_track.png">
|
||||
Satellite mode
|
||||
</string>
|
||||
<string name="menu_markers"
|
||||
translation_description="In the menu, to show a list of markers for the current track.
|
||||
|
||||
Screenshot: menu_record_track.png">
|
||||
translation_description="In the menu, to show a list of markers for the current track.">
|
||||
Markers
|
||||
</string>
|
||||
<string name="menu_my_location"
|
||||
translation_description="In the menu, to display the user's current location.">
|
||||
My location
|
||||
</string>
|
||||
<string name="menu_record_track"
|
||||
translation_description="In the menu, to start recording a track.
|
||||
|
||||
Screenshot: menu_record_track.png">
|
||||
translation_description="In the menu, to start recording a track.">
|
||||
Record track
|
||||
</string>
|
||||
<string name="menu_satellite_mode"
|
||||
translation_description="In the menu, to switch the display to the satellite mode.">
|
||||
Satellite mode
|
||||
</string>
|
||||
<string name="menu_search"
|
||||
translation_description="In the menu, to start a textual search for tracks or waypoints.">
|
||||
Search
|
||||
</string>
|
||||
<string name="menu_sensor_state"
|
||||
translation_description="In the menu, to go to the sensor state page.
|
||||
|
||||
Screenshot: menu_record_track_more.png">
|
||||
translation_description="In the menu, to go to the sensor state page.">
|
||||
Sensor state
|
||||
</string>
|
||||
<string name="menu_settings"
|
||||
translation_description="In the menu, to go to the settings page.
|
||||
|
||||
Screenshot: menu_record_track_more.png">
|
||||
translation_description="In the menu, to go to the settings page.">
|
||||
Settings
|
||||
</string>
|
||||
<string name="menu_stop_recording"
|
||||
translation_description="In the menu, to stop recording a track.
|
||||
|
||||
Screenshot: menu_stop_recording.png">
|
||||
translation_description="In the menu, to stop recording a track.">
|
||||
Stop recording
|
||||
</string>
|
||||
<string name="menu_tracks"
|
||||
translation_description="In the menu, to show a list of all the tracks.
|
||||
|
||||
Screenshot: menu_record_track.png">
|
||||
translation_description="In the menu, to show a list of all the tracks.">
|
||||
Tracks
|
||||
</string>
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ public class ChartActivity extends Activity implements TrackDataListener {
|
||||
chartView.postInvalidate();
|
||||
}
|
||||
})
|
||||
.setTitle(R.string.menu_chart_view_chart_settings)
|
||||
.setTitle(R.string.menu_chart_settings)
|
||||
.setView(view)
|
||||
.create();
|
||||
}
|
||||
|
||||
@@ -81,9 +81,7 @@ class MenuManager {
|
||||
.setVisible(isMapTab);
|
||||
menu.findItem(R.id.menu_satellite_mode)
|
||||
.setVisible(isMapTab)
|
||||
.setTitle(isSatelliteMode
|
||||
? R.string.menu_map_view_map_mode
|
||||
: R.string.menu_map_view_satellite_mode);
|
||||
.setTitle(isSatelliteMode ? R.string.menu_map_mode : R.string.menu_satellite_mode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||