Refactor context menu for objects - make it quickaction independent and special case for accessibility
This commit is contained in:
commit
157b5b0209
6 changed files with 35 additions and 24 deletions
|
@ -1535,8 +1535,8 @@ Afghanistan, Albanie, Algerije, Andorra, Angola, Anguilla, Antigua en Barbuda, A
|
|||
<string name="speak_street_names">Straatnamen aankondigen (TTS)</string>
|
||||
<string name="osmodroid_mode_on">OsMoDroid stoppen</string>
|
||||
<string name="osmodroid_mode_off">OsMoDroid starten</string>
|
||||
<string name="driving_region_descr">Selecteer reisregio: VS, Europa, GB, Azië en andere</string>
|
||||
<string name="driving_region">Reisregio</string>
|
||||
<string name="driving_region_descr">Selecteer land of regio: VS, Europa, GB, Azië en andere</string>
|
||||
<string name="driving_region">Land</string>
|
||||
<string name="driving_region_japan">Japan</string>
|
||||
<string name="driving_region_us">Verenigde Staten</string>
|
||||
<string name="driving_region_canada">Canada</string>
|
||||
|
@ -1583,7 +1583,7 @@ Afghanistan, Albanie, Algerije, Andorra, Angola, Anguilla, Antigua en Barbuda, A
|
|||
</string>
|
||||
<string name="base_world_map">Basis-wereldkaart</string>
|
||||
<string name="map_magnifier">Kaartvergrootglas</string>
|
||||
<string name="route_is_too_long">De bestemming ligt verder dan 200 kilometer. De routeberekening kan dan erg lang duren. Door zelf tussenliggende routepunten te maken kunt u de routeberekening sneller maken.</string>
|
||||
<string name="route_is_too_long">"De afstand tot de bestemming is meer dan 200 km. De routeberekening kan hierdoor erg lang duren (of zelfs mislukken). Door tussenliggende routepunten toe te voegen, wordt de routeberekening sneller."</string>
|
||||
<string name="auto_zoom_none">Geen automatische zoom</string>
|
||||
<string name="auto_zoom_close">Zoom naar close-up</string>
|
||||
<string name="auto_zoom_far">Zoom naar gemiddelde afstand</string>
|
||||
|
@ -1721,7 +1721,7 @@ Afghanistan, Albanie, Algerije, Andorra, Angola, Anguilla, Antigua en Barbuda, A
|
|||
<string name="interrupt_music">Muziek onderbreken</string>
|
||||
<string name="share_route_as_gpx">Deel route als GPX bestand</string>
|
||||
<string name="share_route_subject">Route gedeeld via OsmAnd</string>
|
||||
<string name="navigation_intent_invalid">ongeldig formaat : %s</string>
|
||||
<string name="navigation_intent_invalid">ongeldig formaat: %s</string>
|
||||
<string name="osmo_settings_uuid">Uniek device-ID</string>
|
||||
<string name="osmo_settings_descr">Configureer monitor instellingen en maak een persoonlijk monitor-kanaal</string>
|
||||
<string name="osmo_plugin_description">OpenStreetmap-monitoring - Geavanceerde live monitoring. Volg andere toestellen en/of laat jezelf volgen. Maak een anonieme of eigen groep en deel je positie met elkaar. Er zijn verschillende instellingen voor het permanent of tijdelijk volgen. Anonieme groepen kunnen maar een beperkt aantal dagen gebruikt worden en zijn beperkt in de mogelijkheden, zoals het ontbreken van beheer op afstand en een groepsbeheerder. Een eigen groep is niet beperkt. Als geregistreerde gebruiker, maak je eigen groep aan op de de website. Voor meer info, ga naar http://osmo.mobi.</string>
|
||||
|
@ -1791,7 +1791,7 @@ Afghanistan, Albanie, Algerije, Andorra, Angola, Anguilla, Antigua en Barbuda, A
|
|||
<string name="osmo_create_group">Maak een nieuwe groep</string>
|
||||
<string name="osmo_server_operation_failed">OsMo server probleem</string>
|
||||
<string name="osmo_activity">OsMo-monitor</string>
|
||||
<string name="osmo_enable_tracker">Zend mijn posities</string>
|
||||
<string name="osmo_enable_tracker">Verzend mijn posities</string>
|
||||
<string name="osmo_control">OsMo snelle toegang</string>
|
||||
<string name="local_index_mi_export">Exporteer</string>
|
||||
<string name="import_file_favourites">Bewaren als GPX bestand of importeren in favorieten?</string>
|
||||
|
@ -1859,7 +1859,7 @@ Afghanistan, Albanie, Algerije, Andorra, Angola, Anguilla, Antigua en Barbuda, A
|
|||
<string name="selected_gpx_info_show">\n\nLang drukken om op de kaart te bekijken</string>
|
||||
<string name="delay_navigation_start">Start navigatie met vertraging</string>
|
||||
<string name="selected">gekozen</string>
|
||||
<string name="gpx_split_interval">Splits om de…</string>
|
||||
<string name="gpx_split_interval">Splits om de</string>
|
||||
<string name="gpx_info_waypoints">Routepunten: %1$s </string>
|
||||
<string name="show_zoom_buttons_navigation_descr">Zoomknoppen tonen tijdens navigeren</string>
|
||||
<string name="show_zoom_buttons_navigation">Zoomknoppen</string>
|
||||
|
|
|
@ -1600,4 +1600,10 @@
|
|||
<string name="local_index_unselect_gpx_file">Avmarkera</string>
|
||||
<string name="local_index_select_gpx_file">Markera för att visa</string>
|
||||
<string name="no_index_file_to_download">Inget att ladda ner; kolla din Internetanslutning.</string>
|
||||
</resources>
|
||||
<string name="osmo_gpx_points_downloaded">OsMo-punkter %1$s nedladdade.</string>
|
||||
<string name="osmo_auto_connect_descr">Anslut automatiskt till tjänsten när appen startats</string>
|
||||
<string name="osmo_auto_connect">Auto-anslut</string>
|
||||
<string name="osmo_start_service">OsMo-tjänst</string>
|
||||
<string name="osmo_gpx_track_downloaded">OsMo-spår %1$s nedladdat.</string>
|
||||
<string name="tip_map_switch_t_v2">"Kartkälla och kartlager som ska visas ändras via \'Meny\' → \'Kartlager\'.\n\nUnder \'Kartkälla...\' kan du välja mellan de förladdade offline vektorkartorna (standard, krävs också för offline-navigering), eller fördefinierade (online eller cachade offline) kartbitskällor (aktivera insticksmodulen \'Online-kartor\' under \'Inställningar\'→ \'Plugin\' för detta), eller kartor skapade manuellt med t.ex. OsmaAndMapCreator på en PC.\n\nOsmAnd stöder också egna källor. "</string>
|
||||
</resources>
|
||||
|
|
|
@ -1880,4 +1880,9 @@ OsmAnd 是開放原始碼,而且正在積極的開發。應用程式從報告
|
|||
<string name="local_index_select_gpx_file">選取要顯示的</string>
|
||||
<string name="route_descr_destination">\t</string>
|
||||
<string name="no_index_file_to_download">無法下載,請檢查網路連線。</string>
|
||||
<string name="osmo_gpx_points_downloaded">OsMo 標點 %1$s 已下載。</string>
|
||||
<string name="osmo_auto_connect_descr">自動連線至服務,隨後啟動應用程式</string>
|
||||
<string name="osmo_auto_connect">自動連線</string>
|
||||
<string name="osmo_start_service">OsMo 服務</string>
|
||||
<string name="osmo_gpx_track_downloaded">OsMo 軌跡 %1$s 已下載。</string>
|
||||
</resources>
|
||||
|
|
|
@ -170,8 +170,8 @@ public class FavouritesTreeFragment extends OsmandExpandableListFragment {
|
|||
};
|
||||
MapActivityActions.createDirectionsActions(qa, location, point, name, settings.getLastKnownMapZoom(),
|
||||
getActivity(), true, false);
|
||||
Item edit = qa.item(R.string.favourites_context_menu_edit).icons(R.drawable.ic_action_edit_light ,
|
||||
R.drawable.ic_action_edit_dark);
|
||||
Item edit = qa.item(R.string.favourites_context_menu_edit).icons(
|
||||
R.drawable.ic_action_edit_dark, R.drawable.ic_action_edit_light);
|
||||
edit.listen(
|
||||
new OnContextMenuClick() {
|
||||
|
||||
|
@ -180,8 +180,8 @@ public class FavouritesTreeFragment extends OsmandExpandableListFragment {
|
|||
editPoint(point);
|
||||
}
|
||||
}).reg();
|
||||
Item delete = qa.item(R.string.favourites_context_menu_delete).icons(R.drawable.ic_action_delete_light ,
|
||||
R.drawable.ic_action_delete_dark);
|
||||
Item delete = qa.item(R.string.favourites_context_menu_delete).icons(
|
||||
R.drawable.ic_action_delete_dark, R.drawable.ic_action_delete_light);
|
||||
delete.listen(
|
||||
new OnContextMenuClick() {
|
||||
|
||||
|
|
|
@ -1034,8 +1034,8 @@ public class MapActivityActions implements DialogProvider {
|
|||
final TargetPointsHelper targetPointsHelper = app.getTargetPointsHelper();
|
||||
|
||||
|
||||
Item dir = qa.item(R.string.get_directions).icons(R.drawable.ic_action_gdirections_light ,
|
||||
R.drawable.ic_action_gdirections_dark);
|
||||
Item dir = qa.item(R.string.get_directions).icons(
|
||||
R.drawable.ic_action_gdirections_dark, R.drawable.ic_action_gdirections_light);
|
||||
dir.listen(
|
||||
new OnContextMenuClick() {
|
||||
|
||||
|
@ -1046,11 +1046,11 @@ public class MapActivityActions implements DialogProvider {
|
|||
}).reg();
|
||||
Item intermediate;
|
||||
if (targetPointsHelper.getPointToNavigate() != null) {
|
||||
intermediate = qa.item(R.string.context_menu_item_intermediate_point).icons(R.drawable.ic_action_flage_light,
|
||||
R.drawable.ic_action_flage_dark);
|
||||
intermediate = qa.item(R.string.context_menu_item_intermediate_point).icons(
|
||||
R.drawable.ic_action_flage_dark,R.drawable.ic_action_flage_light);
|
||||
} else {
|
||||
intermediate = qa.item(R.string.context_menu_item_destination_point).icons(R.drawable.ic_action_flag_light,
|
||||
R.drawable.ic_action_flag_dark);
|
||||
intermediate = qa.item(R.string.context_menu_item_destination_point).icons(
|
||||
R.drawable.ic_action_flag_dark, R.drawable.ic_action_flag_light);
|
||||
}
|
||||
intermediate.listen(new OnContextMenuClick() {
|
||||
@Override
|
||||
|
@ -1059,8 +1059,8 @@ public class MapActivityActions implements DialogProvider {
|
|||
}
|
||||
}).reg();
|
||||
|
||||
Item showOnMap = qa.item(R.string.show_poi_on_map).icons(R.drawable.ic_action_marker_light ,
|
||||
R.drawable.ic_action_marker_dark);
|
||||
Item showOnMap = qa.item(R.string.show_poi_on_map).icons(
|
||||
R.drawable.ic_action_marker_dark, R.drawable.ic_action_marker_light );
|
||||
showOnMap.listen(
|
||||
new OnContextMenuClick() {
|
||||
|
||||
|
@ -1072,8 +1072,8 @@ public class MapActivityActions implements DialogProvider {
|
|||
}
|
||||
}).reg();
|
||||
if (favorite) {
|
||||
Item addToFavorite = qa.item(R.string.add_to_favourite).icons(R.drawable.ic_action_fav_light,
|
||||
R.drawable.ic_action_fav_dark);
|
||||
Item addToFavorite = qa.item(R.string.add_to_favourite).icons(
|
||||
R.drawable.ic_action_fav_dark, R.drawable.ic_action_fav_light);
|
||||
addToFavorite.listen(new OnContextMenuClick() {
|
||||
|
||||
@Override
|
||||
|
@ -1111,7 +1111,7 @@ public class MapActivityActions implements DialogProvider {
|
|||
for (int i = 0; i < qa.length(); i++) {
|
||||
|
||||
ActionItem ai = new ActionItem();
|
||||
int id = qa.getImageId(0, true);
|
||||
int id = qa.getImageId(i, true);
|
||||
if (id != 0) {
|
||||
ai.setIcon(activity.getResources().getDrawable(id));
|
||||
}
|
||||
|
|
|
@ -571,8 +571,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
MapActivityActions.createDirectionsActions(adapter, amenity.getLocation(), amenity, name, z, this, true );
|
||||
final String d = OsmAndFormatter.getAmenityDescriptionContent(getMyApplication(), amenity, false);
|
||||
if(d.toString().trim().length() > 0) {
|
||||
Item poiDescr = adapter.item(R.string.poi_context_menu_showdescription).icons(R.drawable.ic_action_note_light,
|
||||
R.drawable.ic_action_note_dark);
|
||||
Item poiDescr = adapter.item(R.string.poi_context_menu_showdescription).icons(
|
||||
R.drawable.ic_action_note_dark, R.drawable.ic_action_note_light);
|
||||
poiDescr.listen(new OnContextMenuClick() {
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue