code cleanup: prefix menu icon with ic_menu

This commit is contained in:
Jimmy Shih
2013-07-08 18:14:39 -07:00
parent 45e5813f15
commit d50d9b6ef2
74 changed files with 40 additions and 43 deletions

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+6 -6
View File
@@ -16,32 +16,32 @@ limitations under the License.
--> -->
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:icon="@drawable/menu_play" android:icon="@drawable/ic_menu_play"
android:id="@+id/list_context_menu_play" android:id="@+id/list_context_menu_play"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_play"/> android:title="@string/menu_play"/>
<item <item
android:icon="@drawable/menu_share" android:icon="@drawable/ic_menu_share"
android:id="@+id/list_context_menu_share" android:id="@+id/list_context_menu_share"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_share"/> android:title="@string/menu_share"/>
<item <item
android:icon="@drawable/menu_show_on_map" android:icon="@drawable/ic_menu_show_on_map"
android:id="@+id/list_context_menu_show_on_map" android:id="@+id/list_context_menu_show_on_map"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_show_on_map"/> android:title="@string/menu_show_on_map"/>
<item <item
android:icon="@drawable/menu_edit" android:icon="@drawable/ic_menu_edit"
android:id="@+id/list_context_menu_edit" android:id="@+id/list_context_menu_edit"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_edit"/> android:title="@string/menu_edit"/>
<item <item
android:icon="@drawable/menu_delete" android:icon="@drawable/ic_menu_delete"
android:id="@+id/list_context_menu_delete" android:id="@+id/list_context_menu_delete"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_delete"/> android:title="@string/menu_delete"/>
<item <item
android:icon="@drawable/menu_select_all" android:icon="@drawable/ic_menu_select_all"
android:id="@+id/list_context_menu_select_all" android:id="@+id/list_context_menu_select_all"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_select_all"/> android:title="@string/menu_select_all"/>
+1 -1
View File
@@ -16,7 +16,7 @@ limitations under the License.
--> -->
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:icon="@drawable/menu_map_layer" android:icon="@drawable/ic_menu_map_layer"
android:orderInCategory="5" android:orderInCategory="5"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_map_layer"> android:title="@string/menu_map_layer">
+3 -3
View File
@@ -16,17 +16,17 @@ limitations under the License.
--> -->
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:icon="@drawable/menu_show_on_map" android:icon="@drawable/ic_menu_show_on_map"
android:id="@+id/marker_detail_show_on_map" android:id="@+id/marker_detail_show_on_map"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_show_on_map"/> android:title="@string/menu_show_on_map"/>
<item <item
android:icon="@drawable/menu_edit" android:icon="@drawable/ic_menu_edit"
android:id="@+id/marker_detail_edit" android:id="@+id/marker_detail_edit"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_edit"/> android:title="@string/menu_edit"/>
<item <item
android:icon="@drawable/menu_delete" android:icon="@drawable/ic_menu_delete"
android:id="@+id/marker_detail_delete" android:id="@+id/marker_detail_delete"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_delete"/> android:title="@string/menu_delete"/>
+2 -2
View File
@@ -16,13 +16,13 @@ limitations under the License.
--> -->
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:icon="@drawable/menu_insert_marker" android:icon="@drawable/ic_menu_insert_marker"
android:id="@+id/marker_list_insert_marker" android:id="@+id/marker_list_insert_marker"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_insert_marker"/> android:title="@string/menu_insert_marker"/>
<item <item
android:actionViewClass="android.widget.SearchView" android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search" android:icon="@drawable/ic_menu_search"
android:id="@+id/marker_list_search" android:id="@+id/marker_list_search"
android:showAsAction="ifRoom|collapseActionView" android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_search"/> android:title="@string/menu_search"/>
+1 -1
View File
@@ -17,7 +17,7 @@ limitations under the License.
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:actionViewClass="android.widget.SearchView" android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search" android:icon="@drawable/ic_menu_search"
android:id="@+id/search_list_search" android:id="@+id/search_list_search"
android:showAsAction="ifRoom|collapseActionView" android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_search"/> android:title="@string/menu_search"/>
+14 -15
View File
@@ -16,73 +16,72 @@ limitations under the License.
--> -->
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:icon="@drawable/menu_insert_marker" android:icon="@drawable/ic_menu_insert_marker"
android:id="@+id/track_detail_insert_marker" android:id="@+id/track_detail_insert_marker"
android:orderInCategory="1" android:orderInCategory="1"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_insert_marker"/> android:title="@string/menu_insert_marker"/>
<item <item
android:icon="@drawable/menu_play" android:icon="@drawable/ic_menu_play"
android:id="@+id/track_detail_play" android:id="@+id/track_detail_play"
android:orderInCategory="2" android:orderInCategory="2"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_play"/> android:title="@string/menu_play"/>
<item <item
android:icon="@drawable/menu_share" android:icon="@drawable/ic_menu_share"
android:id="@+id/track_detail_share" android:id="@+id/track_detail_share"
android:orderInCategory="3" android:orderInCategory="3"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_share"> android:title="@string/menu_share"/>
</item>
<item <item
android:icon="@drawable/menu_markers" android:icon="@drawable/ic_menu_markers"
android:id="@+id/track_detail_markers" android:id="@+id/track_detail_markers"
android:orderInCategory="4" android:orderInCategory="4"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_markers"/> android:title="@string/menu_markers"/>
<!-- android:orderInCategory="5" is in map.xml --> <!-- android:orderInCategory="5" is in map.xml -->
<item <item
android:icon="@drawable/menu_export" android:icon="@drawable/ic_menu_export"
android:id="@+id/track_detail_export" android:id="@+id/track_detail_export"
android:orderInCategory="6" android:orderInCategory="6"
android:title="@string/menu_export"/> android:title="@string/menu_export"/>
<item <item
android:icon="@drawable/menu_edit" android:icon="@drawable/ic_menu_edit"
android:id="@+id/track_detail_edit" android:id="@+id/track_detail_edit"
android:orderInCategory="7" android:orderInCategory="7"
android:title="@string/menu_edit"/> android:title="@string/menu_edit"/>
<item <item
android:icon="@drawable/menu_delete" android:icon="@drawable/ic_menu_delete"
android:id="@+id/track_detail_delete" android:id="@+id/track_detail_delete"
android:orderInCategory="8" android:orderInCategory="8"
android:title="@string/menu_delete"/> android:title="@string/menu_delete"/>
<item <item
android:icon="@drawable/menu_voice_frequency" android:icon="@drawable/ic_menu_voice_frequency"
android:id="@+id/track_detail_voice_frequency" android:id="@+id/track_detail_voice_frequency"
android:orderInCategory="9" android:orderInCategory="9"
android:title="@string/menu_voice_frequency"/> android:title="@string/menu_voice_frequency"/>
<item <item
android:icon="@drawable/menu_split_frequency" android:icon="@drawable/ic_menu_split_frequency"
android:id="@+id/track_detail_split_frequency" android:id="@+id/track_detail_split_frequency"
android:orderInCategory="10" android:orderInCategory="10"
android:title="@string/menu_split_frequency"/> android:title="@string/menu_split_frequency"/>
<item <item
android:icon="@drawable/menu_sensor_state" android:icon="@drawable/ic_menu_sensor_state"
android:id="@+id/track_detail_sensor_state" android:id="@+id/track_detail_sensor_state"
android:orderInCategory="11" android:orderInCategory="11"
android:title="@string/menu_sensor_state"/> android:title="@string/menu_sensor_state"/>
<item <item
android:icon="@drawable/menu_settings" android:icon="@drawable/ic_menu_settings"
android:id="@+id/track_detail_settings" android:id="@+id/track_detail_settings"
android:orderInCategory="12" android:orderInCategory="12"
android:title="@string/menu_settings"/> android:title="@string/menu_settings"/>
<item <item
android:icon="@drawable/menu_feedback" android:icon="@drawable/ic_menu_feedback"
android:id="@+id/track_detail_feedback" android:id="@+id/track_detail_feedback"
android:orderInCategory="13" android:orderInCategory="13"
android:title="@string/menu_feedback"/> android:title="@string/menu_feedback"/>
<item <item
android:icon="@drawable/menu_help" android:icon="@drawable/ic_menu_help"
android:id="@+id/track_detail_help" android:id="@+id/track_detail_help"
android:orderInCategory="14" android:orderInCategory="14"
android:title="@string/menu_help"/> android:title="@string/menu_help"/>
+12 -14
View File
@@ -17,47 +17,45 @@ limitations under the License.
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item <item
android:actionViewClass="android.widget.SearchView" android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search" android:icon="@drawable/ic_menu_search"
android:id="@+id/track_list_search" android:id="@+id/track_list_search"
android:showAsAction="ifRoom|collapseActionView" android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_search"/> android:title="@string/menu_search"/>
<item <item
android:icon="@drawable/menu_start_gps" android:icon="@drawable/ic_menu_start_gps"
android:id="@+id/track_list_start_gps" android:id="@+id/track_list_start_gps"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
android:title="@string/menu_start_gps"/> android:title="@string/menu_start_gps"/>
<item <item
android:icon="@drawable/menu_refresh" android:icon="@drawable/ic_menu_refresh"
android:id="@+id/track_list_refresh" android:id="@+id/track_list_refresh"
android:title="@string/menu_refresh"/> android:title="@string/menu_refresh"/>
<item <item
android:icon="@drawable/menu_aggregated_statistics" android:icon="@drawable/ic_menu_aggregated_statistics"
android:id="@+id/track_list_aggregated_statistics" android:id="@+id/track_list_aggregated_statistics"
android:title="@string/menu_aggregated_statistics"/> android:title="@string/menu_aggregated_statistics"/>
<item <item
android:icon="@drawable/menu_export" android:icon="@drawable/ic_menu_export"
android:id="@+id/track_list_export_all" android:id="@+id/track_list_export_all"
android:title="@string/menu_export_all"> android:title="@string/menu_export_all"/>
</item>
<item <item
android:icon="@drawable/menu_import" android:icon="@drawable/ic_menu_import"
android:id="@+id/track_list_import_all" android:id="@+id/track_list_import_all"
android:title="@string/menu_import_all"> android:title="@string/menu_import_all"/>
</item>
<item <item
android:icon="@drawable/menu_delete" android:icon="@drawable/ic_menu_delete"
android:id="@+id/track_list_delete_all" android:id="@+id/track_list_delete_all"
android:title="@string/menu_delete_all"/> android:title="@string/menu_delete_all"/>
<item <item
android:icon="@drawable/menu_settings" android:icon="@drawable/ic_menu_settings"
android:id="@+id/track_list_settings" android:id="@+id/track_list_settings"
android:title="@string/menu_settings"/> android:title="@string/menu_settings"/>
<item <item
android:icon="@drawable/menu_feedback" android:icon="@drawable/ic_menu_feedback"
android:id="@+id/track_list_feedback" android:id="@+id/track_list_feedback"
android:title="@string/menu_feedback"/> android:title="@string/menu_feedback"/>
<item <item
android:icon="@drawable/menu_help" android:icon="@drawable/ic_menu_help"
android:id="@+id/track_list_help" android:id="@+id/track_list_help"
android:title="@string/menu_help"/> android:title="@string/menu_help"/>
</menu> </menu>
@@ -728,7 +728,7 @@ public class TrackListActivity extends AbstractSendToGoogleActivity
if (!isRecording) { if (!isRecording) {
startGpsMenuItem.setTitle(isGpsStarted ? R.string.menu_stop_gps : R.string.menu_start_gps); startGpsMenuItem.setTitle(isGpsStarted ? R.string.menu_stop_gps : R.string.menu_start_gps);
startGpsMenuItem.setIcon( startGpsMenuItem.setIcon(
isGpsStarted ? R.drawable.menu_stop_gps : R.drawable.menu_start_gps); isGpsStarted ? R.drawable.ic_menu_stop_gps : R.drawable.ic_menu_start_gps);
} }
} }
if (refreshMenuItem != null) { if (refreshMenuItem != null) {