UI Review: Import/Export items
This commit is contained in:
parent
8355308765
commit
bb1ee7e74d
3 changed files with 8 additions and 7 deletions
|
@ -6,11 +6,12 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_selected_item_title_height"
|
|
||||||
android:paddingLeft="@dimen/content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingEnd="@dimen/content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/content_padding">
|
android:paddingStart="@dimen/content_padding"
|
||||||
|
android:paddingTop="@dimen/context_menu_padding_margin_medium"
|
||||||
|
android:paddingBottom="@dimen/context_menu_padding_margin_medium">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
|
|
|
@ -12,10 +12,10 @@ public enum ExportSettingsType {
|
||||||
POI_TYPES(R.string.poi_dialog_poi_type, R.drawable.ic_action_info_dark),
|
POI_TYPES(R.string.poi_dialog_poi_type, R.drawable.ic_action_info_dark),
|
||||||
AVOID_ROADS(R.string.avoid_road, R.drawable.ic_action_alert),
|
AVOID_ROADS(R.string.avoid_road, R.drawable.ic_action_alert),
|
||||||
FAVORITES(R.string.shared_string_favorites, R.drawable.ic_action_favorite),
|
FAVORITES(R.string.shared_string_favorites, R.drawable.ic_action_favorite),
|
||||||
TRACKS(R.string.shared_string_tracks, R.drawable.ic_action_route_distance),
|
TRACKS(R.string.shared_string_tracks, R.drawable.ic_action_polygom_dark),
|
||||||
OSM_NOTES(R.string.osm_notes, R.drawable.ic_action_openstreetmap_logo),
|
OSM_NOTES(R.string.osm_notes, R.drawable.ic_action_openstreetmap_logo),
|
||||||
OSM_EDITS(R.string.osm_edits, R.drawable.ic_action_openstreetmap_logo),
|
OSM_EDITS(R.string.osm_edits, R.drawable.ic_action_openstreetmap_logo),
|
||||||
MULTIMEDIA_NOTES(R.string.audionotes_plugin_name, R.drawable.ic_grouped_by_type),
|
MULTIMEDIA_NOTES(R.string.notes, R.drawable.ic_grouped_by_type),
|
||||||
ACTIVE_MARKERS(R.string.map_markers, R.drawable.ic_action_flag),
|
ACTIVE_MARKERS(R.string.map_markers, R.drawable.ic_action_flag),
|
||||||
HISTORY_MARKERS(R.string.markers_history, R.drawable.ic_action_flag),
|
HISTORY_MARKERS(R.string.markers_history, R.drawable.ic_action_flag),
|
||||||
SEARCH_HISTORY(R.string.shared_string_search_history, R.drawable.ic_action_history),
|
SEARCH_HISTORY(R.string.shared_string_search_history, R.drawable.ic_action_history),
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class ImportedSettingsItemsAdapter extends
|
||||||
holder.title.setText(R.string.configure_screen_quick_action);
|
holder.title.setText(R.string.configure_screen_quick_action);
|
||||||
break;
|
break;
|
||||||
case POI_TYPES:
|
case POI_TYPES:
|
||||||
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_search_dark, activeColorRes));
|
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_info_dark, activeColorRes));
|
||||||
holder.title.setText(R.string.search_activity);
|
holder.title.setText(R.string.search_activity);
|
||||||
break;
|
break;
|
||||||
case MAP_SOURCES:
|
case MAP_SOURCES:
|
||||||
|
@ -108,7 +108,7 @@ public class ImportedSettingsItemsAdapter extends
|
||||||
break;
|
break;
|
||||||
case MULTIMEDIA_NOTES:
|
case MULTIMEDIA_NOTES:
|
||||||
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_photo_dark, activeColorRes));
|
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_photo_dark, activeColorRes));
|
||||||
holder.title.setText(R.string.audionotes_plugin_name);
|
holder.title.setText(R.string.notes);
|
||||||
break;
|
break;
|
||||||
case TRACKS:
|
case TRACKS:
|
||||||
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_route_distance, activeColorRes));
|
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_route_distance, activeColorRes));
|
||||||
|
@ -119,7 +119,7 @@ public class ImportedSettingsItemsAdapter extends
|
||||||
holder.title.setText(R.string.osm_notes);
|
holder.title.setText(R.string.osm_notes);
|
||||||
break;
|
break;
|
||||||
case OSM_EDITS:
|
case OSM_EDITS:
|
||||||
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_info_dark, activeColorRes));
|
holder.icon.setImageDrawable(uiUtils.getIcon(R.drawable.ic_action_openstreetmap_logo, activeColorRes));
|
||||||
holder.title.setText(R.string.osm_edits);
|
holder.title.setText(R.string.osm_edits);
|
||||||
break;
|
break;
|
||||||
case FAVORITES:
|
case FAVORITES:
|
||||||
|
|
Loading…
Reference in a new issue