Ui polishing first part
This commit is contained in:
parent
543dc94334
commit
fe53400238
48 changed files with 380 additions and 181 deletions
|
@ -11,7 +11,6 @@
|
|||
android:paddingTop="@dimen/bottom_sheet_image_text_margin_start"
|
||||
android:paddingRight="@dimen/content_padding"
|
||||
android:paddingBottom="@dimen/gpx_small_text_margin"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="@dimen/default_desc_text_size"
|
||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||
app:typeface="@string/font_roboto_regular"
|
||||
tools:text="@string/auto_zoom_map_descr" />
|
8
OsmAnd/res/layout/divider_half_item.xml
Normal file
8
OsmAnd/res/layout/divider_half_item.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginStart="@dimen/settings_divider_margin_start"
|
||||
android:layout_marginLeft="@dimen/settings_divider_margin_start"
|
||||
android:background="?attr/divider_color_basic"
|
||||
android:orientation="vertical" />
|
|
@ -5,7 +5,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/content_padding"
|
||||
android:paddingRight="@dimen/content_padding">
|
||||
android:paddingRight="@dimen/content_padding"
|
||||
android:paddingBottom="@dimen/route_info_list_text_padding">
|
||||
|
||||
<net.osmand.plus.widgets.TextViewEx
|
||||
android:layout_width="match_parent"
|
||||
|
@ -26,7 +27,7 @@
|
|||
android:gravity="center_vertical"
|
||||
android:letterSpacing="@dimen/text_button_letter_spacing"
|
||||
android:maxLines="1"
|
||||
android:paddingBottom="@dimen/dialog_content_margin"
|
||||
android:paddingBottom="@dimen/content_padding"
|
||||
android:text="@string/open_street_map_login_descr"
|
||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||
osmand:typeface="@string/font_roboto_regular" />
|
||||
|
|
|
@ -14,25 +14,15 @@
|
|||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||
tools:background="?android:attr/selectableItemBackground">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/icon_container"
|
||||
android:layout_width="@dimen/route_info_toolbar_button_size"
|
||||
android:layout_height="@dimen/route_info_toolbar_button_size"
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/standard_icon_size"
|
||||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/content_padding_half"
|
||||
android:layout_marginTop="@dimen/content_padding_half"
|
||||
android:layout_marginRight="@dimen/content_padding_half"
|
||||
android:layout_marginBottom="@dimen/content_padding_half">
|
||||
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/standard_icon_size"
|
||||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_gravity="center"
|
||||
tools:tint="?colorAccent"
|
||||
tools:src="@drawable/ic_action_car_dark" />
|
||||
|
||||
</FrameLayout>
|
||||
android:layout_marginLeft="@dimen/content_padding"
|
||||
android:layout_marginRight="@dimen/content_padding"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="?colorAccent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
|
@ -52,7 +42,7 @@
|
|||
android:textColor="?colorAccent"
|
||||
android:textSize="@dimen/default_list_text_size"
|
||||
osmand:typeface="@string/font_roboto_medium"
|
||||
tools:text="Button text"/>
|
||||
tools:text="Button text" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
22
OsmAnd/res/layout/preference_description.xml
Normal file
22
OsmAnd/res/layout/preference_description.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/list_background_color"
|
||||
android:minHeight="@dimen/setting_list_item_large_height"
|
||||
android:paddingLeft="@dimen/content_padding"
|
||||
android:paddingRight="@dimen/content_padding">
|
||||
|
||||
<net.osmand.plus.widgets.TextViewEx
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:letterSpacing="@dimen/text_button_letter_spacing"
|
||||
android:lineSpacingExtra="5sp"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:textSize="@dimen/default_list_text_size"
|
||||
osmand:typeface="@string/font_roboto_regular" />
|
||||
|
||||
</LinearLayout>
|
26
OsmAnd/res/layout/preference_edit_text_box.xml
Normal file
26
OsmAnd/res/layout/preference_edit_text_box.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<studio.carbonylgroup.textfieldboxes.TextFieldBoxes
|
||||
android:id="@+id/text_field_box"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="@dimen/content_padding"
|
||||
android:paddingRight="@dimen/content_padding"
|
||||
app:helperText=" ">
|
||||
|
||||
<studio.carbonylgroup.textfieldboxes.ExtendedEditText
|
||||
android:id="@+id/edit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="textMultiLine" />
|
||||
|
||||
</studio.carbonylgroup.textfieldboxes.TextFieldBoxes>
|
||||
|
||||
</LinearLayout>
|
|
@ -14,25 +14,17 @@
|
|||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||
tools:background="?android:attr/selectableItemBackground">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/icon_container"
|
||||
android:layout_width="@dimen/route_info_toolbar_button_size"
|
||||
android:layout_height="@dimen/route_info_toolbar_button_size"
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/standard_icon_size"
|
||||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/content_padding_half"
|
||||
android:layout_marginTop="@dimen/content_padding"
|
||||
android:layout_marginRight="@dimen/content_padding_half"
|
||||
android:layout_marginBottom="@dimen/content_padding">
|
||||
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/standard_icon_size"
|
||||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_gravity="center"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="@color/active_color_primary_light" />
|
||||
|
||||
</FrameLayout>
|
||||
android:layout_marginLeft="@dimen/content_padding"
|
||||
android:layout_marginTop="@dimen/bottom_sheet_icon_margin"
|
||||
android:layout_marginRight="@dimen/content_padding"
|
||||
android:layout_marginBottom="@dimen/bottom_sheet_icon_margin"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="@color/active_color_primary_light" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="@dimen/bottom_sheet_image_text_margin_start"
|
||||
android:layout_marginRight="@dimen/bottom_sheet_image_text_margin_start"
|
||||
android:src="@drawable/ic_action_arrow_drop_down"
|
||||
android:src="@drawable/ic_action_arrow_down"
|
||||
android:tint="?attr/default_icon_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -3351,7 +3351,6 @@
|
|||
<string name="live_monitoring_descr">تتيح لك مشاركة الموقع الحالي باستخدام تسجيل الرحلة.</string>
|
||||
<string name="live_monitoring">تعقب عبر الانترنت</string>
|
||||
<string name="save_track_logging_accuracy">دقة التسجيل</string>
|
||||
<string name="multimedia_notes_view_descr">يمكنك العثور على جميع ملاحظاتك في القائمة — أماكني المفضلة — ملاحظات</string>
|
||||
<string name="video_notes">ملاحظات الفيديو</string>
|
||||
<string name="photo_notes">ملاحظات الصورة</string>
|
||||
<string name="route_recalculation">إعادة حساب الطريق</string>
|
||||
|
@ -3362,7 +3361,5 @@
|
|||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">سترى الأيقونة فقط أثناء الملاحة أو أثناء التحرك.</string>
|
||||
<string name="button_rate">معدل</string>
|
||||
<string name="tracks_view_descr">يمكنك العثور على جميع المسارات المسجلة الخاصة بك في القائمة - مكاني - المسارات أو في مجلد أوسماند باستخدام مدير الملفات.</string>
|
||||
<string name="osm_edits_view_descr">يمكنك عرض جميع التعديلات التي قمت بإلغاء تحميلها أو أخطاء نظام التشغيل في القائمة - الأماكن الخاصة بي - تعديلات OSM. لا يتم عرض النقاط التي تم تحميلها في أوسماند.</string>
|
||||
<string name="select_map_icon_descr">تظهر أيقونة الخريطة فقط على الخريطة ، وتتغير أثناء التنقل إلى أيقونة التنقل.</string>
|
||||
</resources>
|
|
@ -3444,19 +3444,19 @@ Abasta l\'àrea: %1$s x %2$s</string>
|
|||
<string name="live_monitoring_descr">Permet compartir la ubicació actual utilitzant l\'enregistrament de viatges.</string>
|
||||
<string name="live_monitoring">Seguiment en línia</string>
|
||||
<string name="save_track_logging_accuracy">Precisió de registre</string>
|
||||
<string name="multimedia_notes_view_descr">Pots trobar totes les teves notes a Menú — Els meus llocs — Notes</string>
|
||||
<string name="multimedia_notes_view_descr">Pots trobar totes les teves notes a %1$s</string>
|
||||
<string name="video_notes">Notes de vídeo</string>
|
||||
<string name="photo_notes">Notes de fotos</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="save_heading">Inclou la direcció</string>
|
||||
<string name="save_heading_descr">Desa l\'orientació a cada fita mentre es fa un enregistrament.</string>
|
||||
<string name="tracks_view_descr">Podeu trobar els vostres enregistraments a Menú — Els meus llocs — Traces o, amb un gestor de fitxers, al directori d\'OsmAnd .</string>
|
||||
<string name="tracks_view_descr">Podeu trobar els vostres enregistraments a %1$s o, amb un gestor de fitxers, al directori d\'OsmAnd .</string>
|
||||
<string name="route_recalculation">Recàlcul de la ruta</string>
|
||||
<string name="accessibility_announce">Anunci</string>
|
||||
<string name="login_and_pass">Nom d\'usuari i contrasenya</string>
|
||||
<string name="plugin_global_prefs_info">Aquesta configuració del connector és global i afecta tots els perfils.</string>
|
||||
<string name="osm_editing">Edició d\'OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Podeu veure totes les vostres edicions no enviades o els errors OSM a Menú — Els meus llocs — Edicions OSM. Els punts enviats no es mostren a OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Podeu veure totes les vostres edicions no enviades o els errors OSM a %1$s. Els punts enviats no es mostren a OsmAnd.</string>
|
||||
<string name="select_nav_icon_descr">Només veureu la icona mentre navegueu o us mogueu.</string>
|
||||
<string name="select_map_icon_descr">La icona de mapa només es mostra al mapa i es canvia a la icona de navegació quan durant aquesta.</string>
|
||||
</resources>
|
|
@ -3443,8 +3443,8 @@ Repræsenterer område: %1$s x %2$s</string>
|
|||
<string name="live_monitoring_descr">Tillader at dele den aktuelle placering ved hjælp af tur-optagelse.</string>
|
||||
<string name="live_monitoring">Online sporing</string>
|
||||
<string name="save_track_logging_accuracy">Lognøjagtighed</string>
|
||||
<string name="tracks_view_descr">Find alle optagede spor i Menu - Foretrukne - Spor eller i OsmAnd mappen vha. filhåndtering.</string>
|
||||
<string name="multimedia_notes_view_descr">Find alle noter i Menu - Foretrukne - Noter</string>
|
||||
<string name="tracks_view_descr">Find alle optagede spor i %1$s eller i OsmAnd mappen vha. filhåndtering.</string>
|
||||
<string name="multimedia_notes_view_descr">Find alle noter i %1$s</string>
|
||||
<string name="video_notes">Video noter</string>
|
||||
<string name="photo_notes">Foto noter</string>
|
||||
<string name="route_recalculation">Genberegning af rute</string>
|
||||
|
@ -3452,7 +3452,7 @@ Repræsenterer område: %1$s x %2$s</string>
|
|||
<string name="login_and_pass">Brugernavn og adgangskode</string>
|
||||
<string name="plugin_global_prefs_info">Indstillinger for udvidelsen er globale, og gælder for alle profiler.</string>
|
||||
<string name="osm_editing">OpenStreetMap redigering</string>
|
||||
<string name="osm_edits_view_descr">Se alle ikke overførte redigeringer eller OSM fejl i Menu - Foretrukne - OSM-redigeringer. Overførte punkter vises ikke i OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Se alle ikke overførte redigeringer eller OSM fejl i %1$s. Overførte punkter vises ikke i OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Ikonet vises kun under navigation eller under bevægelse.</string>
|
||||
<string name="select_map_icon_descr">Kortikon vises kun på kortet og skifter under navigation til navigationsikon.</string>
|
||||
|
|
|
@ -3413,8 +3413,8 @@ Indikas lokon: %1$s x %2$s"</string>
|
|||
<string name="live_monitoring_descr">Kunhavigi vian nunan pozicion per registrado de kurso.</string>
|
||||
<string name="live_monitoring">Perreta spurado</string>
|
||||
<string name="save_track_logging_accuracy">Precizo de registrado</string>
|
||||
<string name="tracks_view_descr">Vi povas trovi ĉiujn registritajn spurojn per la menuo → “miaj ejoj” → “spuroj” aŭ en la dosierujo OsmAnd (uzu dosier‑esplorilon).</string>
|
||||
<string name="multimedia_notes_view_descr">Vi povas trovi ĉiujn notojn per la menuo → “miaj ejoj” → “notoj”.</string>
|
||||
<string name="tracks_view_descr">Vi povas trovi ĉiujn registritajn spurojn per la %1$s aŭ en la dosierujo OsmAnd (uzu dosier‑esplorilon).</string>
|
||||
<string name="multimedia_notes_view_descr">Vi povas trovi ĉiujn notojn per la %1$s.</string>
|
||||
<string name="video_notes">Videaj notoj</string>
|
||||
<string name="photo_notes">Fotaj notoj</string>
|
||||
<string name="route_recalculation">Rekalkuli kurson</string>
|
||||
|
@ -3423,7 +3423,7 @@ Indikas lokon: %1$s x %2$s"</string>
|
|||
<string name="login_and_pass">Uzantnomo kaj pasvorto</string>
|
||||
<string name="plugin_global_prefs_info">Agordoj pri tiu ĉi kromprogramo influas al ĉiuj profiloj.</string>
|
||||
<string name="osm_editing">OpenStreetMap-redaktilo</string>
|
||||
<string name="osm_edits_view_descr">Vi povas vidi ĉiujn viajn nesenditajn redaktojn kaj rimarkojn per la menuo → “miaj ejoj” → “OSM‑redaktoj”. Senditaj punktoj malaperos el OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Vi povas vidi ĉiujn viajn nesenditajn redaktojn kaj rimarkojn per la %1$s. Senditaj punktoj malaperos el OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">La emblemo montriĝos nur dum navigi aŭ dum moviĝi.</string>
|
||||
<string name="select_map_icon_descr">Map‑emblemo montriĝas nur dum foliumi mapon kaj ŝanĝiĝas dum navigi al la emblemo de navigo.</string>
|
||||
|
|
|
@ -3445,8 +3445,8 @@ Lon %2$s</string>
|
|||
<string name="live_monitoring_descr">Permite compartir la ubicación actual utilizando la grabación del viaje.</string>
|
||||
<string name="live_monitoring">Seguimiento en línea</string>
|
||||
<string name="save_track_logging_accuracy">Precisión de registro</string>
|
||||
<string name="tracks_view_descr">Puedes encontrar todas tus trazas grabadas en «Menú — Mi sitios — Trazas» o en la carpeta OsmAnd usando el administrador de archivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Puedes encontrar todas tus notas en «Menú — Mis sitios — Notas»</string>
|
||||
<string name="tracks_view_descr">Puedes encontrar todas tus trazas grabadas en «%1$s» o en la carpeta OsmAnd usando el administrador de archivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Puedes encontrar todas tus notas en «%1$s»</string>
|
||||
<string name="video_notes">Notas de video</string>
|
||||
<string name="photo_notes">Notas fotográficas</string>
|
||||
<string name="route_recalculation">Recálculo de la ruta</string>
|
||||
|
@ -3454,7 +3454,7 @@ Lon %2$s</string>
|
|||
<string name="login_and_pass">Nombre de usuario y contraseña</string>
|
||||
<string name="plugin_global_prefs_info">Los ajustes de este complemento es global y se aplica a todos los perfiles.</string>
|
||||
<string name="osm_editing">Edición de OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Puedes ver todas tus ediciones no subidas o errores de OSM en «Menú — Mis sitios — Ediciones OSM». Los puntos subidos no se muestran en OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Puedes ver todas tus ediciones no subidas o errores de OSM en «%1$s». Los puntos subidos no se muestran en OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Sólo verás el icono durante la navegación o mientras te mueves.</string>
|
||||
<string name="select_map_icon_descr">El icono del mapa aparece sólo en el mapa y cambia mientras se navega hacia el icono de navegación.</string>
|
||||
|
|
|
@ -3439,8 +3439,8 @@ Lon %2$s</string>
|
|||
<string name="live_monitoring_descr">Permite compartir la ubicación actual utilizando la grabación del viaje.</string>
|
||||
<string name="live_monitoring">Seguimiento en línea</string>
|
||||
<string name="save_track_logging_accuracy">Precisión de registro</string>
|
||||
<string name="tracks_view_descr">Puedes encontrar todas tus trazas grabadas en «Menú — Mi sitios — Trazas» o en la carpeta OsmAnd usando el administrador de archivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Puedes encontrar todas tus notas en «Menú — Mis sitios — Notas»</string>
|
||||
<string name="tracks_view_descr">Puedes encontrar todas tus trazas grabadas en «%1$s» o en la carpeta OsmAnd usando el administrador de archivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Puedes encontrar todas tus notas en «%1$s»</string>
|
||||
<string name="video_notes">Notas de video</string>
|
||||
<string name="photo_notes">Notas fotográficas</string>
|
||||
<string name="route_recalculation">Recálculo de la ruta</string>
|
||||
|
@ -3448,7 +3448,7 @@ Lon %2$s</string>
|
|||
<string name="login_and_pass">Nombre de usuario y contraseña</string>
|
||||
<string name="plugin_global_prefs_info">Los ajustes de este complemento es global y se aplica a todos los perfiles.</string>
|
||||
<string name="osm_editing">Edición de OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Puedes ver todas tus ediciones no subidas o errores de OSM en «Menú — Mis sitios — Ediciones OSM». Los puntos subidos no se muestran en OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Puedes ver todas tus ediciones no subidas o errores de OSM en «%1$s». Los puntos subidos no se muestran en OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Sólo verás el icono durante la navegación o mientras te mueves.</string>
|
||||
<string name="select_map_icon_descr">El icono del mapa aparece sólo en el mapa y cambia mientras se navega hacia el icono de navegación.</string>
|
||||
|
|
|
@ -3430,8 +3430,8 @@
|
|||
<string name="live_monitoring_descr">Te permite compartir la ubicación actual utilizando la grabación del viaje.</string>
|
||||
<string name="live_monitoring">Seguimiento en línea</string>
|
||||
<string name="save_track_logging_accuracy">Precisión de registro</string>
|
||||
<string name="tracks_view_descr">Puedes encontrar todas las trazas grabadas en Menú — Mis sitios — Trazas o en la carpeta OsmAnd utilizando el administrador de archivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Puedes encontrar todas tus notas en Menú - Mis sitios - Notas</string>
|
||||
<string name="tracks_view_descr">Puedes encontrar todas las trazas grabadas en %1$s o en la carpeta OsmAnd utilizando el administrador de archivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Puedes encontrar todas tus notas en %1$s</string>
|
||||
<string name="video_notes">Notas de video</string>
|
||||
<string name="photo_notes">Notas de foto</string>
|
||||
<string name="route_recalculation">Recálculo de la ruta</string>
|
||||
|
@ -3439,7 +3439,7 @@
|
|||
<string name="login_and_pass">Nombre de usuario y clave</string>
|
||||
<string name="plugin_global_prefs_info">La configuración de este complemento es global y se aplica a todos los perfiles.</string>
|
||||
<string name="osm_editing">Edición de OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Puedes ver todas las ediciones y errores de osm no enviadas en Menú — Mis sitios — Ediciones OSM. Los puntos enviados no se muestran en OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Puedes ver todas las ediciones y errores de osm no enviadas en %1$s. Los puntos enviados no se muestran en OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Verás el icono sólo durante la navegación o mientras te estés moviendo.</string>
|
||||
<string name="select_map_icon_descr">El icono del mapa solo aparece en el mapa y cambia durante la navegación al icono de navegación.</string>
|
||||
|
|
|
@ -3365,8 +3365,8 @@
|
|||
<string name="live_monitoring_descr">Lubab sul jagada praegust asukohta kasutades reisi salvestamist.</string>
|
||||
<string name="live_monitoring">Veebis jälgimine</string>
|
||||
<string name="save_track_logging_accuracy">Logimise täpsus</string>
|
||||
<string name="tracks_view_descr">Kõik oma salvestatud rajad leiad Menüü- Minu koht - Rajad või OsmAd kataloogist failihalduri abil.</string>
|
||||
<string name="multimedia_notes_view_descr">Kõik oma märkmed leiad Menüü - Minu kohad - Märkmed</string>
|
||||
<string name="tracks_view_descr">Kõik oma salvestatud rajad leiad %1$s või OsmAd kataloogist failihalduri abil.</string>
|
||||
<string name="multimedia_notes_view_descr">Kõik oma märkmed leiad %1$s</string>
|
||||
<string name="video_notes">Video märkmed</string>
|
||||
<string name="photo_notes">Foto märkmed</string>
|
||||
<string name="route_recalculation">Teekonna ümberarvutamine</string>
|
||||
|
@ -3374,7 +3374,7 @@
|
|||
<string name="login_and_pass">Kasutajanimi ja salasõna</string>
|
||||
<string name="plugin_global_prefs_info">Selle lisa seaded kehtivad kogu rakenduses ja rakenduvad kõikidele profiilidele.</string>
|
||||
<string name="osm_editing">OpenStreetMap muutmine</string>
|
||||
<string name="osm_edits_view_descr">Kõiki üleslaadimata muudatusi või osm vigu saad vaadata menüüs Menüü - Minu kohad - OSM muudatused. Üleslaaditud punkte OsmAnd ei kuva.</string>
|
||||
<string name="osm_edits_view_descr">Kõiki üleslaadimata muudatusi või osm vigu saad vaadata menüüs %1$s. Üleslaaditud punkte OsmAnd ei kuva.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Ikooni näed ainult navigeerimise või liikumise ajal.</string>
|
||||
<string name="select_map_icon_descr">Kaardiikoon kuvatakse ainult kaardil ja muutub navigeerimise ajal navigeerimise ikooniks.</string>
|
||||
|
|
|
@ -3407,8 +3407,8 @@ représentant la zone : %1$s x %2$s</string>
|
|||
<string name="live_monitoring_descr">Permet de partager votre position actuelle grâce à l\'enregistrement du trajet.</string>
|
||||
<string name="live_monitoring">Suivi en ligne</string>
|
||||
<string name="save_track_logging_accuracy">Précision de l\'enregistrement</string>
|
||||
<string name="tracks_view_descr">Retrouvez toutes vos traces enregistrées dans le Menu : Mon emplacement > Traces ou dans le dossier OsmAnd via votre gestionnaire de fichiers.</string>
|
||||
<string name="multimedia_notes_view_descr">Retrouvez toutes vos notes dans le menu : Mon emplacement > Notes</string>
|
||||
<string name="tracks_view_descr">Retrouvez toutes vos traces enregistrées dans le %1$s ou dans le dossier OsmAnd via votre gestionnaire de fichiers.</string>
|
||||
<string name="multimedia_notes_view_descr">Retrouvez toutes vos notes dans le %1$s</string>
|
||||
<string name="video_notes">Notes vidéo</string>
|
||||
<string name="photo_notes">Notes photo</string>
|
||||
<string name="route_recalculation">Recalcul de l\'itinéraire</string>
|
||||
|
@ -3416,7 +3416,7 @@ représentant la zone : %1$s x %2$s</string>
|
|||
<string name="login_and_pass">Nom d\'utilisateur et mot de passe</string>
|
||||
<string name="plugin_global_prefs_info">Ces paramètres de greffon sont globaux et s\'appliquent à tous les profils.</string>
|
||||
<string name="osm_editing">Édition OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Vous pouvez consulter toutes vos modifications non envoyées comme vos bugs OSM dans le menu : Mes emplacements > Modifications OSM. Les points envoyés ne s\'affichent plus dans OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Vous pouvez consulter toutes vos modifications non envoyées comme vos bugs OSM dans le %1$s. Les points envoyés ne s\'affichent plus dans OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Vous ne verrez l\'icône que lors de la navigation ou en déplacement.</string>
|
||||
<string name="select_map_icon_descr">L \'icône Carte n\'apparaît que sur la carte et est remplacée par l\'icône Navigation lors de la navigation.</string>
|
||||
|
|
|
@ -3466,8 +3466,8 @@ Lon %2$s</string>
|
|||
<string name="live_monitoring_descr">Permite compartir a localización actual empregando a gravación da viaxe.</string>
|
||||
<string name="live_monitoring">Seguimento en liña</string>
|
||||
<string name="save_track_logging_accuracy">Precisión de rexistro</string>
|
||||
<string name="tracks_view_descr">Podes atopar todas as túas pistas gravadas en Menú — Os meus lugares — Pista ou no cartafol OsmAnd empregando o xestor de ficheiros.</string>
|
||||
<string name="multimedia_notes_view_descr">Podes atopar todas as túas notas en Menú - Os meus lugares - Notas</string>
|
||||
<string name="tracks_view_descr">Podes atopar todas as túas pistas gravadas en %1$s ou no cartafol OsmAnd empregando o xestor de ficheiros.</string>
|
||||
<string name="multimedia_notes_view_descr">Podes atopar todas as túas notas en %1$s</string>
|
||||
<string name="video_notes">Notas de vídeo</string>
|
||||
<string name="photo_notes">Notas de imaxe</string>
|
||||
<string name="route_recalculation">Recálculo da ruta</string>
|
||||
|
@ -3475,7 +3475,7 @@ Lon %2$s</string>
|
|||
<string name="login_and_pass">Nome de usuario e contrasinal</string>
|
||||
<string name="plugin_global_prefs_info">A configuración deste engadido é global e se aplica a todos os perfís.</string>
|
||||
<string name="osm_editing">Edición do OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Podes ollar todas as túas edicións de erros do osm non subidas en Menú — Os meus lugares — Edicións OSM. Os puntos subidos non se amosan no OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Podes ollar todas as túas edicións de erros do osm non subidas en %1$s. Os puntos subidos non se amosan no OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Ollarás a icona só durante a navegación ou mentres esteas a moverte.</string>
|
||||
<string name="select_map_icon_descr">A icona do mapa só aparece no mapa e muda durante a navegación á icona de navegación.</string>
|
||||
|
|
|
@ -3424,8 +3424,6 @@
|
|||
<string name="live_monitoring_descr">לאפשר לך לשתף את המיקום הנוכחי באמצעות הקלטת המסלול.</string>
|
||||
<string name="live_monitoring">מעקב מקוון</string>
|
||||
<string name="save_track_logging_accuracy">דיוק תיעוד ביומן</string>
|
||||
<string name="tracks_view_descr">באפשרותך למצוא את כל המסלול שהקלטת בתפריט - המיקום שלי - מסלולים או בתיקייה של OsmAnd בעזרת מנהל קבצים.</string>
|
||||
<string name="multimedia_notes_view_descr">באפשרותך למצוא את כל ההערות שכתבת תחת תפריט - המיקומים שלי - פתקים</string>
|
||||
<string name="video_notes">הערות וידאו</string>
|
||||
<string name="photo_notes">הערות בתמונות</string>
|
||||
<string name="route_recalculation">חישוב מסלול מחדש</string>
|
||||
|
@ -3433,7 +3431,6 @@
|
|||
<string name="login_and_pass">שם משתמש וססמה</string>
|
||||
<string name="plugin_global_prefs_info">הגדרות התוסף הזה הן גלובליות וחלות על כל הפרופילים.</string>
|
||||
<string name="osm_editing">עריכה של OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">באפשרותך לצפות בכל העריכות שטרם העלית דרך התפריט - המקומות שלי - עריכות OSM. הנקודות שהועלו לא מופיעות ב־OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">הסמל יופיע רק בזמן הניווט או בזמן תזוזה.</string>
|
||||
<string name="select_map_icon_descr">סמל המפה מופיע במפה בלבד והוא מתחלף בעת הניווט לסמל הניווט.</string>
|
||||
|
|
|
@ -3434,8 +3434,8 @@ Ha szereted az OsmAndot és az OSM-et, és szeretnéd támogatni a fejlődésük
|
|||
<string name="live_monitoring_descr">Lehetővé teszi, hogy az útvonal rögzítésével megossza aktuális pozícióját.</string>
|
||||
<string name="live_monitoring">Online nyomvonalrögzítés</string>
|
||||
<string name="save_track_logging_accuracy">Naplózás pontossága</string>
|
||||
<string name="tracks_view_descr">Az összes rögzített nyomvonal megtalálható a Menü > Saját helyek > Nyomvonalaim helyen vagy a fájlkezelővel az OsmAnd mappában.</string>
|
||||
<string name="multimedia_notes_view_descr">Az összes jegyzetét megtalálja a Menü > Saját helyek > Jegyzetek helyen</string>
|
||||
<string name="tracks_view_descr">Az összes rögzített nyomvonal megtalálható a %1$s helyen vagy a fájlkezelővel az OsmAnd mappában.</string>
|
||||
<string name="multimedia_notes_view_descr">Az összes jegyzetét megtalálja a %1$s helyen</string>
|
||||
<string name="video_notes">Videojegyzetek</string>
|
||||
<string name="photo_notes">Fényképes jegyzetek</string>
|
||||
<string name="route_recalculation">Útvonal újraszámítása</string>
|
||||
|
@ -3443,7 +3443,7 @@ Ha szereted az OsmAndot és az OSM-et, és szeretnéd támogatni a fejlődésük
|
|||
<string name="login_and_pass">Felhasználónév és jelszó</string>
|
||||
<string name="plugin_global_prefs_info">Ezek a bővítménybeállítások globálisak, és minden profilra vonatkoznak.</string>
|
||||
<string name="osm_editing">OpenStreetMap-szerkesztés</string>
|
||||
<string name="osm_edits_view_descr">Az összes még fel nem töltött szerkesztés vagy OSM-hiba megtalálható a Menü > Saját helyek > OSM-szerkesztések helyen. A már feltöltött pontok nem láthatók az OsmAndban.</string>
|
||||
<string name="osm_edits_view_descr">Az összes még fel nem töltött szerkesztés vagy OSM-hiba megtalálható a %1$s. A már feltöltött pontok nem láthatók az OsmAndban.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Az ikon csak navigáció vagy mozgás közben lesz látható.</string>
|
||||
<string name="select_map_icon_descr">A térképikon csak a térképen jelenik meg, navigáció közben pedig navigációs ikonra vált.</string>
|
||||
|
|
|
@ -237,4 +237,7 @@
|
|||
|
||||
<dimen name="wikilink_bottom_sheet_padding">21dp</dimen>
|
||||
|
||||
<dimen name="settings_divider_margin_start">108dp</dimen>
|
||||
<dimen name="setting_list_item_large_height">108dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -3441,8 +3441,8 @@
|
|||
<string name="live_monitoring_descr">Tillater deg å dele nåværende plassering ved bruk av turopptak.</string>
|
||||
<string name="live_monitoring">Nettbasert sporing</string>
|
||||
<string name="save_track_logging_accuracy">Loggingsnøyaktighet</string>
|
||||
<string name="tracks_view_descr">Du kan finne alle dine innspilte spor i Meny → Mitt sted → Spor, eller i OsmAnd-mappen.</string>
|
||||
<string name="multimedia_notes_view_descr">Du finner alle dine notater i Meny → Mine steder → Notater</string>
|
||||
<string name="tracks_view_descr">Du kan finne alle dine innspilte spor i %1$s, eller i OsmAnd-mappen.</string>
|
||||
<string name="multimedia_notes_view_descr">Du finner alle dine notater i %1$sr</string>
|
||||
<string name="video_notes">Videonotater</string>
|
||||
<string name="photo_notes">Bildenotater</string>
|
||||
<string name="route_recalculation">Ruteomberegning</string>
|
||||
|
@ -3450,7 +3450,7 @@
|
|||
<string name="login_and_pass">Brukernavn og passord</string>
|
||||
<string name="plugin_global_prefs_info">Innstillinger av dette programtillegget har innvirkning på alle profiler.</string>
|
||||
<string name="osm_editing">OpenStreetMap-redigering</string>
|
||||
<string name="osm_edits_view_descr">Du kan vise alle dine uopplastede redigeringer eller OSM-feil i Meny → Mine steder → OSM-redigeringer. Opplastede punkter viser ikke i OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Du kan vise alle dine uopplastede redigeringer eller OSM-feil i %1$s. Opplastede punkter viser ikke i OsmAnd.</string>
|
||||
<string name="select_nav_icon_descr">Du vil se ikonet kun under navigasjon eller bevegelse.</string>
|
||||
<string name="select_map_icon_descr">Kartikon vises kun på kartet, og endrer seg under navigasjon til navigasjonsikonet.</string>
|
||||
</resources>
|
|
@ -3315,8 +3315,8 @@ voor Gebied: %1$s x %2$s</string>
|
|||
<string name="live_monitoring_descr">Laat u toe uw positie te delen dankzij reisopname.</string>
|
||||
<string name="live_monitoring">Online volgen</string>
|
||||
<string name="save_track_logging_accuracy">Opnamenauwkeurigheid</string>
|
||||
<string name="tracks_view_descr">U kan al uw opgenomen tracks terugvinden bij Menu - Mijn plaatsen - Tracks of in OsmAnd-map met een bestand verkenner.</string>
|
||||
<string name="multimedia_notes_view_descr">U kan al uw notities terugvinden bij Menu - Mijn plaatsen - Notities</string>
|
||||
<string name="tracks_view_descr">U kan al uw opgenomen tracks terugvinden bij %1$s of in OsmAnd-map met een bestand verkenner.</string>
|
||||
<string name="multimedia_notes_view_descr">U kan al uw notities terugvinden bij %1$s</string>
|
||||
<string name="video_notes">Videonotities</string>
|
||||
<string name="photo_notes">Fotonotities</string>
|
||||
<string name="route_recalculation">Route herberekening</string>
|
||||
|
@ -3324,7 +3324,7 @@ voor Gebied: %1$s x %2$s</string>
|
|||
<string name="login_and_pass">Gebruikersnaam en wachtwoord</string>
|
||||
<string name="plugin_global_prefs_info">Deze plugin instellingen zijn globaal en hebben betrekking op alle profielen.</string>
|
||||
<string name="osm_editing">OpenStreetMap Bewerking</string>
|
||||
<string name="osm_edits_view_descr">U kan al uw niet-geüploade bewerkingen of osm fouten zien in Menu - Mijn plaatsen - OSM Bewerkingen. Geüploade punten ziet u niet in OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">U kan al uw niet-geüploade bewerkingen of osm fouten zien in %1$s. Geüploade punten ziet u niet in OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">U zal het icoon enkel zien tijdens het navigeren of bewegen.</string>
|
||||
<string name="select_map_icon_descr">Kaarticoon verschijnt op de kaart en wijzigt slechts bij het navigeren in het navigatie-icoon.</string>
|
||||
|
|
|
@ -3421,8 +3421,8 @@ Pôr do Sol: %2$s</string>
|
|||
<string name="live_monitoring_descr">Permite compartilhar a localização atual usando a gravação de viagem.</string>
|
||||
<string name="live_monitoring">Rastreamento online</string>
|
||||
<string name="save_track_logging_accuracy">Precisão de registro</string>
|
||||
<string name="tracks_view_descr">Você pode encontrar todas as suas faixas gravadas em Menu - Meu lugar - Faixas ou na pasta OsmAd usando o gerenciador de arquivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Você pode encontrar todas as suas anotações em Menu - Meus lugares - Notas</string>
|
||||
<string name="tracks_view_descr">Você pode encontrar todas as suas faixas gravadas em %1$ss ou na pasta OsmAd usando o gerenciador de arquivos.</string>
|
||||
<string name="multimedia_notes_view_descr">Você pode encontrar todas as suas anotações em %1$s</string>
|
||||
<string name="video_notes">Notas de vídeo</string>
|
||||
<string name="photo_notes">Notas fotográficas</string>
|
||||
<string name="route_recalculation">Recálculo da rota</string>
|
||||
|
@ -3430,7 +3430,7 @@ Pôr do Sol: %2$s</string>
|
|||
<string name="login_and_pass">Usuário e senha</string>
|
||||
<string name="plugin_global_prefs_info">As configurações deste plug-in são globais e se aplicam a todos os perfis.</string>
|
||||
<string name="osm_editing">Edição de OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Você pode ver todos os erros de osm do editor carregado em Menu - Meus lugares - Edições OSM. Os pontos enviados não são exibidos no OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Você pode ver todos os erros de osm do editor carregado em %1$s. Os pontos enviados não são exibidos no OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Você verá o ícone apenas enquanto estiver navegando ou em movimento.</string>
|
||||
<string name="select_map_icon_descr">O ícone do mapa aparece apenas no mapa e é alterado enquanto estiver navegando para o ícone de navegação.</string>
|
||||
|
|
|
@ -3434,8 +3434,8 @@ Pro praghere iscrie su còdighe intreu</string>
|
|||
<string name="live_monitoring_descr">Ti permitit de cumpartzire sa positzione atuale impreende sa registratzione de su biàgiu.</string>
|
||||
<string name="live_monitoring">Arrastamentu in lìnia</string>
|
||||
<string name="save_track_logging_accuracy">Pretzisione de registratzione</string>
|
||||
<string name="tracks_view_descr">Podes agatare totu sas rastas registradas tuas in Menù — Logos meos — Rastas o in sa cartella de OsmAnd impreende su gestore de documentos.</string>
|
||||
<string name="multimedia_notes_view_descr">Podes agatare totu sas notas tuas in Menù — Logos meos — Notas</string>
|
||||
<string name="tracks_view_descr">Podes agatare totu sas rastas registradas tuas in %1$s o in sa cartella de OsmAnd impreende su gestore de documentos.</string>
|
||||
<string name="multimedia_notes_view_descr">Podes agatare totu sas notas tuas in %1$s</string>
|
||||
<string name="video_notes">Vìdeo-notas</string>
|
||||
<string name="photo_notes">Foto-notas</string>
|
||||
<string name="route_recalculation">Ricàlculu de s\'àndala</string>
|
||||
|
@ -3443,7 +3443,7 @@ Pro praghere iscrie su còdighe intreu</string>
|
|||
<string name="login_and_pass">Nùmene impreadore e crae</string>
|
||||
<string name="plugin_global_prefs_info">Sas impostatziones de s\'estensione sunt globales, e si aplicant a totu sos profilos.</string>
|
||||
<string name="osm_editing">Modìfica de OpenStreetMap</string>
|
||||
<string name="osm_edits_view_descr">Podes pompiare totu sas modìficas non carrigadas tuas o sos errores de osm in Menù — Logos meos — Modìficas de OSM. Sos puntos carrigados no ant a èssere ammustrados in OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Podes pompiare totu sas modìficas non carrigadas tuas o sos errores de osm in %1$s. Sos puntos carrigados no ant a èssere ammustrados in OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">As a bìdere s\'icona petzi durante sa navigatzione o su movimentu.</string>
|
||||
<string name="select_map_icon_descr">S\'icona de sa mapa aparit in sa mapa ebbia, e divenit s\'icona de navigatzione durante sa navigatzione.</string>
|
||||
|
|
|
@ -3385,8 +3385,6 @@
|
|||
<string name="live_monitoring_descr">Seyahat kaydını kullanarak geçerli konumunuzu paylaşmaya izin verin.</string>
|
||||
<string name="live_monitoring">Çevrimiçi takip etme</string>
|
||||
<string name="save_track_logging_accuracy">Kayıt tutma doğruluğu</string>
|
||||
<string name="tracks_view_descr">Kaydedilen tüm yol-izlerinizi Menü - Benim yerim - Yol-izleri içinde veya dosya yöneticisini kullanarak OsmAnd klasöründe bulabilirsiniz.</string>
|
||||
<string name="multimedia_notes_view_descr">Tüm notlarınızı Menü - Yerlerim - Notlar bölümünde bulabilirsiniz</string>
|
||||
<string name="video_notes">Video notları</string>
|
||||
<string name="photo_notes">Fotoğraf notları</string>
|
||||
<string name="route_recalculation">Rotanın yeniden hesaplanması</string>
|
||||
|
@ -3394,7 +3392,7 @@
|
|||
<string name="login_and_pass">Kullanıcı adı ve parola</string>
|
||||
<string name="plugin_global_prefs_info">Bu eklenti ayarları globaldir ve tüm profiller için geçerlidir.</string>
|
||||
<string name="osm_editing">OpenStreetMap Düzenleme</string>
|
||||
<string name="osm_edits_view_descr">Karşıya yüklenmemiş tüm düzenlemelerinizi veya osm hatalarınızı Menü — Yerlerim — OSM Düzenlemeleri içinde görüntüleyebilirsiniz. Yüklenen noktalar OsmAnd\'de gösterilmez.</string>
|
||||
<string name="osm_edits_view_descr">Karşıya yüklenmemiş tüm düzenlemelerinizi veya osm hatalarınızı %1$s içinde görüntüleyebilirsiniz. Yüklenen noktalar OsmAnd\'de gösterilmez.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Simgeyi yalnızca navigasyon sırasında veya hareket halindeyken göreceksiniz.</string>
|
||||
<string name="select_map_icon_descr">Harita simgesi yalnızca haritada görünür ve navigasyon esnasında navigasyon simgesine dönüşür.</string>
|
||||
|
|
|
@ -3425,8 +3425,8 @@
|
|||
<string name="live_monitoring_descr">Дозволяє ділитися поточним місцезнаходженням, використовуючи запис поїздки.</string>
|
||||
<string name="live_monitoring">Мережеве відстеження</string>
|
||||
<string name="save_track_logging_accuracy">Точність часопису</string>
|
||||
<string name="tracks_view_descr">Ви можете знайти всі записи в Меню - Мої місця - Треки або в теці OsmAnd за допомогою файлового провідника.</string>
|
||||
<string name="multimedia_notes_view_descr">Ви можете знайти всі свої примітки в Меню - Мої місця - Примітки</string>
|
||||
<string name="tracks_view_descr">Ви можете знайти всі записи в %1$s або в теці OsmAnd за допомогою файлового провідника.</string>
|
||||
<string name="multimedia_notes_view_descr">Ви можете знайти всі свої примітки в %1$s</string>
|
||||
<string name="video_notes">Відеопримітки</string>
|
||||
<string name="photo_notes">Світлинопримітки</string>
|
||||
<string name="route_recalculation">Перерахунок маршруту</string>
|
||||
|
@ -3434,7 +3434,7 @@
|
|||
<string name="login_and_pass">Ім\'я користувача і пароль</string>
|
||||
<string name="plugin_global_prefs_info">Налаштування цього втулка є всеохопними та стосуються всіх профілів.</string>
|
||||
<string name="osm_editing">OpenStreetMap редагування</string>
|
||||
<string name="osm_edits_view_descr">Ви можете переглянути всі не завантажені зміни або помилки в OSM в Меню - Мої місця - Правки OSM. Завантажені точки не відображаються в OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">Ви можете переглянути всі не завантажені зміни або помилки в OSM в %1$s. Завантажені точки не відображаються в OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">Ви побачите значок тільки під час навігації або під час переміщення.</string>
|
||||
<string name="select_map_icon_descr">Образок мапи відображається лише на мапі та змінюється під час навігації до образка навігації.</string>
|
||||
|
|
|
@ -3422,8 +3422,6 @@
|
|||
<string name="live_monitoring_descr">允許您使用旅程錄製來分享目前的位置。</string>
|
||||
<string name="live_monitoring">線上追蹤</string>
|
||||
<string name="save_track_logging_accuracy">記錄精度</string>
|
||||
<string name="tracks_view_descr">您可以在選單 → 我的收藏 → 軌跡或使用檔案管理員在 OsmAnd 的資料夾中找到您所有已紀錄的軌跡。</string>
|
||||
<string name="multimedia_notes_view_descr">您可以在選單 → 我的收藏 → 註記中找到您所有的註記</string>
|
||||
<string name="video_notes">視訊註記</string>
|
||||
<string name="photo_notes">照片註記</string>
|
||||
<string name="route_recalculation">路徑重新計算</string>
|
||||
|
@ -3431,7 +3429,6 @@
|
|||
<string name="login_and_pass">使用者名稱與密碼</string>
|
||||
<string name="plugin_global_prefs_info">此外掛程式設定是全域設定,並會套用到所有設定檔。</string>
|
||||
<string name="osm_editing">開放街圖編輯</string>
|
||||
<string name="osm_edits_view_descr">您可以在選單 → 我的收藏 → OSM 編輯中檢視您所有未上傳的編輯或開放街圖的問題。已上傳的點不會在 OsmAnd 中顯示。</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">僅在導航或移動時,您才會看到該圖示。</string>
|
||||
<string name="select_map_icon_descr">地圖圖示只會顯示在地圖上,並會在導航時換成導航圖示。</string>
|
||||
|
|
|
@ -350,5 +350,7 @@
|
|||
|
||||
<dimen name="setting_profile_item_height">64dp</dimen>
|
||||
<dimen name="setting_profile_item_switch_margin">18dp</dimen>
|
||||
<dimen name="settings_divider_margin_start">72dp</dimen>
|
||||
<dimen name="setting_list_item_large_height">72dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -11,6 +11,32 @@
|
|||
Thx - Hardy
|
||||
|
||||
-->
|
||||
<string name="monitoring_min_speed_descr">This is a low-speed cut-off filter to not record points below a certain speed. This may make recorded tracks look "smoother" when viewed on the map.</string>
|
||||
<string name="monitoring_min_speed_descr_side_effect">Side effect: Your track will be missing all sections where the minimum speed criterion was not met (e.g. where you push your bike up a steep hill). Also, there will be no information about periods at rest, like breaks. This has effects on any analysis or post-processing, like when trying to determine the total length of your trip, time in motion, or your average speed.</string>
|
||||
<string name="monitoring_min_speed_descr_recommendation">Recommendation: Try using the motion detection via the "logging minimum displacement" filter (B) first, it may produce better results, and you will lose less data. If your tracks remain noisy at low speeds, try non-zero values here. Please note that some measurements may not report any speed value at all (some network-based methods), in which case you would not record anything.</string>
|
||||
<string name="monitoring_min_speed_descr_remark">Remark: "speed > 0" check: Most GPS chipsets report a speed value only if the algorithm determines you are in motion, and none if you are not. Hence using the "> 0" setting in this filter in a sense uses the motion detection of the GPS chipset. But even if not filtered here at recording time, we still use this feature in our GPX analysis to determine the "Distance corrected", i.e. the value displayed in that field is the "distance recorded while in motion".</string>
|
||||
<string name="monitoring_min_accuracy_descr">This will record only points measured with a minimum "accuracy" indication (in meters/feet, as reported by Android for your chipset). Accuracy refers to the scatter of repeated measurements, and is not directly related to precision, which defines how close your measurements are to your "true" position.</string>
|
||||
<string name="monitoring_min_accuracy_descr_side_effect">Side effect: As a result of filtering by accuracy, points may be entirely missing for e.g. below bridges, under trees, between high buildings, or with certain weather conditions.</string>
|
||||
<string name="monitoring_min_accuracy_descr_recommendation">Recommendation: It is hard to predict what will be recorded and what not, it may be best to turn this filter off.</string>
|
||||
<string name="monitoring_min_accuracy_descr_remark">Remark: If GPS had been off immediately before a recording, the first point measured may have a decreased accuracy,so in our code we may want to wait a second or so before recording a point (or record the best of 3 consecutive points, etc.), but this is not yet implemented.</string>
|
||||
<string name="monitoring_min_distance_descr">This filter avoids duplicate points being recorded where too little actual motion may have occurred, makes a nicer spatial appearance of tracks not post-processed later.</string>
|
||||
<string name="monitoring_min_distance_descr_side_effect">Side effects: Periods at rest are not recorded at all or by just one point each. Small (real world) movements (e.g. sideways, to mark a possile turnoff on your trip) may be filtered out. Your file contains less information for post-processing, and has worse stats by filtering out obviously redundant points at recording time, while potentially keeping artifacts caused by bad reception or GPS chipset effects.</string>
|
||||
<string name="monitoring_min_distance_descr_recommendation">Recommendation: A setting of 5 meters may work well for you if you do not require to capture details finer than that, and do not want to explicitly capture data while at rest.</string>
|
||||
<string name="live_monitoring_time_buffer">Time buffer</string>
|
||||
<string name="live_monitoring_tracking_interval">Tracking interval</string>
|
||||
<string name="live_monitoring_adress">Web address</string>
|
||||
<string name="live_monitoring_adress_descr">Specify the web address with parameter syntax: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}.</string>
|
||||
<string name="monitoring_notification">Notification</string>
|
||||
<string name="monitoring_min_speed">Minimum speed</string>
|
||||
<string name="monitoring_min_accuracy">Minimum accuracy</string>
|
||||
<string name="monitoring_min_distance">Minimum displacement</string>
|
||||
<string name="tracks_view_path">Menu — My places — Tracks</string>
|
||||
<string name="multimedia_notes_view_path">Menu — My places — Notes</string>
|
||||
<string name="osm_edits_view_path">Menu — My places — OSM Edits</string>
|
||||
<string name="reset_plugin_to_default">Reset plugin settings to default</string>
|
||||
<string name="multimedia_rec_split_title">Recorder split</string>
|
||||
<string name="multimedia_use_system_camera">Use system app</string>
|
||||
<string name="multimedia_photo_play_sound">Camera shutter sound</string>
|
||||
<string name="osm_authorization_success">Authorization is successful</string>
|
||||
<string name="logcat_buffer_descr">Here you can see and share logs of the application</string>
|
||||
<string name="file_does_not_contain_routing_rules">\'%1$s\' file doesn\'t contain routing rules, please choose another file.</string>
|
||||
|
@ -25,8 +51,8 @@
|
|||
<string name="live_monitoring_descr">Allow you to share current location using trip recording.</string>
|
||||
<string name="live_monitoring">Online tracking</string>
|
||||
<string name="save_track_logging_accuracy">Logging accuracy</string>
|
||||
<string name="tracks_view_descr">You can find all your recorded tracks in Menu — My place — Tracks or in OsmAd folder using file manager.</string>
|
||||
<string name="multimedia_notes_view_descr">You can find all your notes in Menu — My places — Notes</string>
|
||||
<string name="tracks_view_descr">You can find all your recorded tracks in %1$s or in OsmAd folder using file manager.</string>
|
||||
<string name="multimedia_notes_view_descr">You can find all your notes in %1$s</string>
|
||||
<string name="video_notes">Video notes</string>
|
||||
<string name="photo_notes">Photo notes</string>
|
||||
<string name="route_recalculation">Route recalculation</string>
|
||||
|
@ -34,7 +60,7 @@
|
|||
<string name="login_and_pass">Username and password</string>
|
||||
<string name="plugin_global_prefs_info">This plugin settings are global, and apply to all profiles.</string>
|
||||
<string name="osm_editing">OpenStreetMap Editing</string>
|
||||
<string name="osm_edits_view_descr">You can view all your unuploaded edits or osm bugs in Menu — My places — OSM Edits. Uploaded points don’t show in OsmAnd.</string>
|
||||
<string name="osm_edits_view_descr">You can view all your unuploaded edits or osm bugs in %1$s. Uploaded points don’t show in OsmAnd.</string>
|
||||
<string name="app_mode_osm">OSM</string>
|
||||
<string name="select_nav_icon_descr">You will see the icon only while navigation or while moving.</string>
|
||||
<string name="select_map_icon_descr">Map icon appears only on the map, and changing while navigation to navigation icon.</string>
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
android:key="reset_to_default"
|
||||
android:layout="@layout/preference_button"
|
||||
android:persistent="false"
|
||||
android:title="@string/reset_to_default"
|
||||
android:title="@string/reset_plugin_to_default"
|
||||
tools:icon="@drawable/ic_action_reset_to_default_dark" />
|
||||
|
||||
</PreferenceScreen>
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<Preference
|
||||
android:key="live_monitoring_info"
|
||||
android:layout="@layout/preference_info"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:persistent="false"
|
||||
android:selectable="false"
|
||||
android:title="@string/live_monitoring_descr" />
|
||||
|
@ -14,21 +14,21 @@
|
|||
<net.osmand.plus.settings.preferences.EditTextPreferenceEx
|
||||
android:key="live_monitoring_url"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:title="@string/live_monitoring_url"
|
||||
android:title="@string/live_monitoring_adress"
|
||||
tools:icon="@drawable/ic_world_globe_dark"
|
||||
tools:summary="@string/live_monitoring_m_descr" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
android:key="live_monitoring_interval"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:title="@string/live_monitoring_interval"
|
||||
android:title="@string/live_monitoring_tracking_interval"
|
||||
tools:icon="@drawable/ic_action_time_span"
|
||||
tools:summary="5 seconds" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
android:key="live_monitoring_maximum_interval_to_send"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:title="@string/live_monitoring_max_interval_to_send"
|
||||
android:title="@string/live_monitoring_time_buffer"
|
||||
tools:icon="@drawable/ic_action_time_span"
|
||||
tools:summary="15 min" />
|
||||
|
||||
|
|
|
@ -36,19 +36,19 @@
|
|||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
android:key="save_track_min_distance"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:title="@string/save_track_min_distance"
|
||||
android:title="@string/monitoring_min_distance"
|
||||
tools:summary="Not selected" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
android:key="save_track_precision"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:title="@string/save_track_precision"
|
||||
android:title="@string/monitoring_min_accuracy"
|
||||
tools:summary="50 m" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
android:key="save_track_min_speed"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:title="@string/save_track_min_speed"
|
||||
android:title="@string/monitoring_min_speed"
|
||||
tools:summary="Not selected" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.SwitchPreferenceEx
|
||||
|
@ -88,7 +88,7 @@
|
|||
android:layout="@layout/preference_with_descr_dialog_and_switch"
|
||||
android:summaryOff="@string/shared_string_disabled"
|
||||
android:summaryOn="@string/shared_string_enabled"
|
||||
android:title="@string/trip_rec_notification_settings"
|
||||
android:title="@string/monitoring_notification"
|
||||
tools:icon="@drawable/ic_action_notification" />
|
||||
|
||||
<Preference
|
||||
|
@ -110,7 +110,7 @@
|
|||
|
||||
<Preference
|
||||
android:key="open_tracks_description"
|
||||
android:layout="@layout/preference_info"
|
||||
android:layout="@layout/preference_description"
|
||||
android:persistent="false"
|
||||
android:selectable="false"
|
||||
android:title="@string/tracks_view_descr" />
|
||||
|
@ -123,14 +123,14 @@
|
|||
tools:icon="@drawable/ic_action_folder" />
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/simple_divider_item"
|
||||
android:layout="@layout/divider_half_item"
|
||||
android:selectable="false" />
|
||||
|
||||
<Preference
|
||||
android:key="reset_to_default"
|
||||
android:layout="@layout/preference_button"
|
||||
android:persistent="false"
|
||||
android:title="@string/reset_to_default"
|
||||
android:title="@string/reset_plugin_to_default"
|
||||
tools:icon="@drawable/ic_action_reset_to_default_dark" />
|
||||
|
||||
<Preference
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
android:layout="@layout/preference_with_descr_dialog_and_switch"
|
||||
android:summaryOff="@string/shared_string_disabled"
|
||||
android:summaryOn="@string/shared_string_enabled"
|
||||
android:title="@string/av_use_external_camera"
|
||||
android:title="@string/multimedia_use_system_camera"
|
||||
tools:icon="@drawable/ic_action_photo_dark" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
|
@ -35,7 +35,7 @@
|
|||
android:layout="@layout/preference_with_descr_dialog_and_switch"
|
||||
android:summaryOff="@string/shared_string_disabled"
|
||||
android:summaryOn="@string/shared_string_enabled"
|
||||
android:title="@string/av_photo_play_sound"
|
||||
android:title="@string/multimedia_photo_play_sound"
|
||||
tools:icon="@drawable/ic_action_music_off" />
|
||||
|
||||
<Preference
|
||||
|
@ -73,7 +73,7 @@
|
|||
android:layout="@layout/preference_with_descr_dialog_and_switch"
|
||||
android:summaryOff="@string/shared_string_disabled"
|
||||
android:summaryOn="@string/shared_string_enabled"
|
||||
android:title="@string/av_use_external_recorder"
|
||||
android:title="@string/multimedia_use_system_camera"
|
||||
tools:icon="@drawable/ic_action_video_dark" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
|
@ -84,7 +84,7 @@
|
|||
tools:summary="4128x3096 (12.19 Mpx)" />
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/simple_divider_item"
|
||||
android:layout="@layout/divider_half_item"
|
||||
android:selectable="false" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.SwitchPreferenceEx
|
||||
|
@ -92,7 +92,7 @@
|
|||
android:layout="@layout/preference_with_descr_dialog_and_switch"
|
||||
android:summaryOff="@string/shared_string_disabled"
|
||||
android:summaryOn="@string/shared_string_enabled"
|
||||
android:title="@string/rec_split_title" />
|
||||
android:title="@string/multimedia_rec_split_title" />
|
||||
|
||||
<net.osmand.plus.settings.preferences.ListPreferenceEx
|
||||
android:key="av_rs_clip_length"
|
||||
|
@ -113,7 +113,7 @@
|
|||
|
||||
<Preference
|
||||
android:key="open_notes_description"
|
||||
android:layout="@layout/preference_info"
|
||||
android:layout="@layout/preference_description"
|
||||
android:persistent="false"
|
||||
android:selectable="false"
|
||||
android:title="@string/multimedia_notes_view_descr" />
|
||||
|
@ -126,14 +126,14 @@
|
|||
tools:icon="@drawable/ic_action_folder" />
|
||||
|
||||
<Preference
|
||||
android:layout="@layout/simple_divider_item"
|
||||
android:layout="@layout/divider_half_item"
|
||||
android:selectable="false" />
|
||||
|
||||
<Preference
|
||||
android:key="reset_to_default"
|
||||
android:layout="@layout/preference_button"
|
||||
android:persistent="false"
|
||||
android:title="@string/reset_to_default"
|
||||
android:title="@string/reset_plugin_to_default"
|
||||
tools:icon="@drawable/ic_action_reset_to_default_dark" />
|
||||
|
||||
<Preference
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<Preference
|
||||
android:key="osm_editing_info"
|
||||
android:layout="@layout/preference_info"
|
||||
android:layout="@layout/preference_with_descr"
|
||||
android:persistent="false"
|
||||
android:selectable="false"
|
||||
android:title="@string/plugin_global_prefs_info"
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
<Preference
|
||||
android:key="osm_edits_description"
|
||||
android:layout="@layout/preference_info"
|
||||
android:layout="@layout/preference_description"
|
||||
android:persistent="false"
|
||||
android:selectable="false"
|
||||
android:title="@string/osm_edits_view_descr" />
|
||||
|
|
|
@ -418,23 +418,17 @@ public class OsmandSettings {
|
|||
for (OsmandPreference pref : profilePreferences) {
|
||||
if (pref instanceof CommonPreference && !((CommonPreference) pref).global) {
|
||||
CommonPreference profilePref = (CommonPreference) pref;
|
||||
Object defaultFrom = profilePref.getProfileDefaultValue(modeFrom);
|
||||
Object defaultTo = profilePref.getProfileDefaultValue(modeFrom);
|
||||
if (profilePref.isSetForMode(modeFrom) || !defaultFrom.equals(defaultTo)) {
|
||||
Object copiedValue = profilePref.getModeValue(modeFrom);
|
||||
if (copiedValue instanceof String) {
|
||||
settingsEditor.putString(pref.getId(), (String) copiedValue);
|
||||
} else if (copiedValue instanceof Boolean) {
|
||||
settingsEditor.putBoolean(pref.getId(), (Boolean) copiedValue);
|
||||
} else if (copiedValue instanceof Float) {
|
||||
settingsEditor.putFloat(pref.getId(), (Float) copiedValue);
|
||||
} else if (copiedValue instanceof Integer) {
|
||||
settingsEditor.putInt(pref.getId(), (Integer) copiedValue);
|
||||
} else if (copiedValue instanceof Long) {
|
||||
settingsEditor.putLong(pref.getId(), (Long) copiedValue);
|
||||
}
|
||||
} else {
|
||||
settingsEditor.remove(pref.getId());
|
||||
Object copiedValue = profilePref.getModeValue(modeFrom);
|
||||
if (copiedValue instanceof String) {
|
||||
settingsEditor.putString(pref.getId(), (String) copiedValue);
|
||||
} else if (copiedValue instanceof Boolean) {
|
||||
settingsEditor.putBoolean(pref.getId(), (Boolean) copiedValue);
|
||||
} else if (copiedValue instanceof Float) {
|
||||
settingsEditor.putFloat(pref.getId(), (Float) copiedValue);
|
||||
} else if (copiedValue instanceof Integer) {
|
||||
settingsEditor.putInt(pref.getId(), (Integer) copiedValue);
|
||||
} else if (copiedValue instanceof Long) {
|
||||
settingsEditor.putLong(pref.getId(), (Long) copiedValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package net.osmand.plus.audionotes;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.graphics.Typeface;
|
||||
import android.hardware.Camera;
|
||||
import android.media.CamcorderProfile;
|
||||
import android.media.MediaRecorder;
|
||||
|
@ -8,6 +9,7 @@ import android.os.Build;
|
|||
import android.os.StatFs;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.text.SpannableString;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
import net.osmand.PlatformUtil;
|
||||
|
@ -15,6 +17,7 @@ import net.osmand.plus.ApplicationMode;
|
|||
import net.osmand.plus.OsmAndAppCustomization;
|
||||
import net.osmand.plus.OsmandPlugin;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.helpers.FontCache;
|
||||
import net.osmand.plus.profiles.SelectCopyAppModeBottomSheet;
|
||||
import net.osmand.plus.profiles.SelectCopyAppModeBottomSheet.CopyAppModePrefsListener;
|
||||
import net.osmand.plus.settings.BaseSettingsFragment;
|
||||
|
@ -22,14 +25,13 @@ import net.osmand.plus.settings.bottomsheets.ResetProfilePrefsBottomSheet;
|
|||
import net.osmand.plus.settings.bottomsheets.ResetProfilePrefsBottomSheet.ResetAppModePrefsListener;
|
||||
import net.osmand.plus.settings.preferences.ListPreferenceEx;
|
||||
import net.osmand.plus.settings.preferences.SwitchPreferenceEx;
|
||||
import net.osmand.plus.widgets.style.CustomTypefaceSpan;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
|
||||
import java.io.File;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AUDIO_BITRATE_DEFAULT;
|
||||
import static net.osmand.plus.audionotes.AudioVideoNotesPlugin.AV_CAMERA_FOCUS_AUTO;
|
||||
|
@ -324,14 +326,23 @@ public class MultimediaNotesFragment extends BaseSettingsFragment implements Cop
|
|||
storageSize.setEntries(entries);
|
||||
storageSize.setEntryValues(entryValues);
|
||||
storageSize.setDescription(R.string.rec_split_storage_size_desc);
|
||||
storageSize.setIcon(getContentIcon(R.drawable.ic_sdcard));
|
||||
} else {
|
||||
storageSize.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void setupOpenNotesDescrPref() {
|
||||
Preference nameAndPasswordPref = findPreference("open_notes_description");
|
||||
nameAndPasswordPref.setTitle(getText(R.string.multimedia_notes_view_descr));
|
||||
String multimediaNotesPath = getString(R.string.multimedia_notes_view_path);
|
||||
String multimediaNotesPathDescr = getString(R.string.multimedia_notes_view_descr, multimediaNotesPath);
|
||||
|
||||
int startIndex = multimediaNotesPathDescr.indexOf(multimediaNotesPath);
|
||||
SpannableString titleSpan = new SpannableString(multimediaNotesPathDescr);
|
||||
Typeface typeface = FontCache.getRobotoMedium(getContext());
|
||||
titleSpan.setSpan(new CustomTypefaceSpan(typeface), startIndex, startIndex + multimediaNotesPath.length(), 0);
|
||||
|
||||
Preference osmEditsDescription = findPreference("open_notes_description");
|
||||
osmEditsDescription.setTitle(titleSpan);
|
||||
}
|
||||
|
||||
private void setupOpenNotesPref() {
|
||||
|
|
|
@ -55,6 +55,11 @@ public class SimpleBottomSheetItem extends BaseBottomSheetItem {
|
|||
iconView.setImageDrawable(icon);
|
||||
}
|
||||
|
||||
public void setTitleColorId(@ColorRes int titleColorId) {
|
||||
this.titleColorId = titleColorId;
|
||||
titleTv.setTextColor(ContextCompat.getColor(titleTv.getContext(), titleColorId));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inflate(Context context, ViewGroup container, boolean nightMode) {
|
||||
super.inflate(context, container, nightMode);
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
package net.osmand.plus.monitoring;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.graphics.Typeface;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.text.SpannableString;
|
||||
import android.text.SpannableStringBuilder;
|
||||
|
||||
import net.osmand.plus.ApplicationMode;
|
||||
import net.osmand.plus.OsmAndAppCustomization;
|
||||
import net.osmand.plus.OsmandPlugin;
|
||||
import net.osmand.plus.OsmandSettings;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.helpers.FontCache;
|
||||
import net.osmand.plus.myplaces.FavoritesActivity;
|
||||
import net.osmand.plus.profiles.SelectCopyAppModeBottomSheet;
|
||||
import net.osmand.plus.profiles.SelectCopyAppModeBottomSheet.CopyAppModePrefsListener;
|
||||
|
@ -16,8 +20,10 @@ import net.osmand.plus.settings.BaseSettingsFragment;
|
|||
import net.osmand.plus.settings.bottomsheets.ChangeGeneralProfilesPrefBottomSheet;
|
||||
import net.osmand.plus.settings.bottomsheets.ResetProfilePrefsBottomSheet;
|
||||
import net.osmand.plus.settings.bottomsheets.ResetProfilePrefsBottomSheet.ResetAppModePrefsListener;
|
||||
import net.osmand.plus.settings.bottomsheets.SingleSelectPreferenceBottomSheet;
|
||||
import net.osmand.plus.settings.preferences.ListPreferenceEx;
|
||||
import net.osmand.plus.settings.preferences.SwitchPreferenceEx;
|
||||
import net.osmand.plus.widgets.style.CustomTypefaceSpan;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
@ -95,7 +101,14 @@ public class MonitoringSettingsFragment extends BaseSettingsFragment implements
|
|||
ListPreferenceEx saveTrackMinDistance = (ListPreferenceEx) findPreference(settings.SAVE_TRACK_MIN_DISTANCE.getId());
|
||||
saveTrackMinDistance.setEntries(entries);
|
||||
saveTrackMinDistance.setEntryValues(entryValues);
|
||||
saveTrackMinDistance.setDescription(R.string.save_track_min_distance_descr);
|
||||
|
||||
SpannableStringBuilder stringBuilder = new SpannableStringBuilder(getString(R.string.monitoring_min_distance_descr));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_distance_descr_side_effect));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_distance_descr_recommendation));
|
||||
|
||||
saveTrackMinDistance.setDescription(stringBuilder.toString());
|
||||
}
|
||||
|
||||
private void setupSaveTrackPrecisionPref() {
|
||||
|
@ -109,7 +122,16 @@ public class MonitoringSettingsFragment extends BaseSettingsFragment implements
|
|||
ListPreferenceEx saveTrackPrecision = (ListPreferenceEx) findPreference(settings.SAVE_TRACK_PRECISION.getId());
|
||||
saveTrackPrecision.setEntries(entries);
|
||||
saveTrackPrecision.setEntryValues(entryValues);
|
||||
saveTrackPrecision.setDescription(R.string.save_track_precision_descr);
|
||||
|
||||
SpannableStringBuilder stringBuilder = new SpannableStringBuilder(getString(R.string.monitoring_min_accuracy_descr));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_accuracy_descr_side_effect));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_accuracy_descr_recommendation));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_accuracy_descr_remark));
|
||||
|
||||
saveTrackPrecision.setDescription(stringBuilder.toString());
|
||||
}
|
||||
|
||||
private void setupSaveTrackMinSpeedPref() {
|
||||
|
@ -125,7 +147,16 @@ public class MonitoringSettingsFragment extends BaseSettingsFragment implements
|
|||
ListPreferenceEx saveTrackMinSpeed = (ListPreferenceEx) findPreference(settings.SAVE_TRACK_MIN_SPEED.getId());
|
||||
saveTrackMinSpeed.setEntries(entries);
|
||||
saveTrackMinSpeed.setEntryValues(entryValues);
|
||||
saveTrackMinSpeed.setDescription(R.string.save_track_min_speed_descr);
|
||||
|
||||
SpannableStringBuilder stringBuilder = new SpannableStringBuilder(getString(R.string.monitoring_min_speed_descr));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_speed_descr_side_effect));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_speed_descr_recommendation));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append(getString(R.string.monitoring_min_speed_descr_remark));
|
||||
|
||||
saveTrackMinSpeed.setDescription(stringBuilder.toString());
|
||||
}
|
||||
|
||||
private void setupAutoSplitRecordingPref() {
|
||||
|
@ -170,8 +201,16 @@ public class MonitoringSettingsFragment extends BaseSettingsFragment implements
|
|||
}
|
||||
|
||||
private void setupOpenNotesDescrPref() {
|
||||
Preference nameAndPasswordPref = findPreference("open_tracks_description");
|
||||
nameAndPasswordPref.setTitle(getText(R.string.tracks_view_descr));
|
||||
String tracksPath = getString(R.string.tracks_view_path);
|
||||
String tracksPathDescr = getString(R.string.tracks_view_descr, tracksPath);
|
||||
|
||||
int startIndex = tracksPathDescr.indexOf(tracksPath);
|
||||
SpannableString titleSpan = new SpannableString(tracksPathDescr);
|
||||
Typeface typeface = FontCache.getRobotoMedium(getContext());
|
||||
titleSpan.setSpan(new CustomTypefaceSpan(typeface), startIndex, startIndex + tracksPath.length(), 0);
|
||||
|
||||
Preference openTracksDescription = findPreference("open_tracks_description");
|
||||
openTracksDescription.setTitle(titleSpan);
|
||||
}
|
||||
|
||||
private void setupOpenNotesPref() {
|
||||
|
@ -230,6 +269,22 @@ public class MonitoringSettingsFragment extends BaseSettingsFragment implements
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisplayPreferenceDialog(Preference preference) {
|
||||
String prefId = preference.getKey();
|
||||
if (settings.SAVE_TRACK_MIN_DISTANCE.getId().equals(prefId)
|
||||
|| settings.SAVE_TRACK_PRECISION.getId().equals(prefId)
|
||||
|| settings.SAVE_TRACK_MIN_SPEED.getId().equals(prefId)) {
|
||||
FragmentManager fm = getFragmentManager();
|
||||
if (fm != null) {
|
||||
ApplicationMode appMode = getSelectedAppMode();
|
||||
SingleSelectPreferenceBottomSheet.showInstance(fm, prefId, this, false, appMode, true, true);
|
||||
}
|
||||
} else {
|
||||
super.onDisplayPreferenceDialog(preference);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void copyAppModePrefs(ApplicationMode appMode) {
|
||||
OsmandMonitoringPlugin plugin = OsmandPlugin.getPlugin(OsmandMonitoringPlugin.class);
|
||||
|
|
|
@ -73,6 +73,9 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
|
|||
pluginPreferences.add(settings.SHOW_TRIP_REC_NOTIFICATION);
|
||||
pluginPreferences.add(settings.TRACK_STORAGE_DIRECTORY);
|
||||
pluginPreferences.add(settings.LIVE_MONITORING);
|
||||
pluginPreferences.add(settings.LIVE_MONITORING_URL);
|
||||
pluginPreferences.add(settings.LIVE_MONITORING_INTERVAL);
|
||||
pluginPreferences.add(settings.LIVE_MONITORING_MAX_INTERVAL_TO_SEND);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
package net.osmand.plus.osmedit;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.graphics.Typeface;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.text.SpannableString;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
@ -10,10 +12,12 @@ import android.widget.TextView;
|
|||
import net.osmand.plus.OsmAndAppCustomization;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.helpers.AndroidUiHelper;
|
||||
import net.osmand.plus.helpers.FontCache;
|
||||
import net.osmand.plus.settings.BaseSettingsFragment;
|
||||
import net.osmand.plus.settings.OnPreferenceChanged;
|
||||
import net.osmand.plus.settings.bottomsheets.OsmLoginDataBottomSheet;
|
||||
import net.osmand.plus.settings.preferences.SwitchPreferenceEx;
|
||||
import net.osmand.plus.widgets.style.CustomTypefaceSpan;
|
||||
|
||||
public class OsmEditingFragment extends BaseSettingsFragment implements OnPreferenceChanged {
|
||||
|
||||
|
@ -22,8 +26,8 @@ public class OsmEditingFragment extends BaseSettingsFragment implements OnPrefer
|
|||
|
||||
@Override
|
||||
protected void setupPreferences() {
|
||||
Preference vehicleParametersInfo = findPreference("osm_editing_info");
|
||||
vehicleParametersInfo.setIcon(getContentIcon(R.drawable.ic_action_info_dark));
|
||||
Preference osmEditingInfo = findPreference("osm_editing_info");
|
||||
osmEditingInfo.setIcon(getContentIcon(R.drawable.ic_action_info_dark));
|
||||
|
||||
setupNameAndPasswordPref();
|
||||
setupOfflineEditingPref();
|
||||
|
@ -52,8 +56,16 @@ public class OsmEditingFragment extends BaseSettingsFragment implements OnPrefer
|
|||
}
|
||||
|
||||
private void setupOsmEditsDescrPref() {
|
||||
Preference nameAndPasswordPref = findPreference("osm_edits_description");
|
||||
nameAndPasswordPref.setTitle(getText(R.string.osm_edits_view_descr));
|
||||
String osmEditsPath = getString(R.string.osm_edits_view_path);
|
||||
String osmEditsPathDescr = getString(R.string.osm_edits_view_descr, osmEditsPath);
|
||||
|
||||
int startIndex = osmEditsPathDescr.indexOf(osmEditsPath);
|
||||
SpannableString titleSpan = new SpannableString(osmEditsPathDescr);
|
||||
Typeface typeface = FontCache.getRobotoMedium(getContext());
|
||||
titleSpan.setSpan(new CustomTypefaceSpan(typeface), startIndex, startIndex + osmEditsPath.length(), 0);
|
||||
|
||||
Preference osmEditsDescription = findPreference("osm_edits_description");
|
||||
osmEditsDescription.setTitle(titleSpan);
|
||||
}
|
||||
|
||||
private void setupOsmEditsPref() {
|
||||
|
|
|
@ -309,7 +309,7 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl
|
|||
|
||||
ApplicationMode appMode = getSelectedAppMode();
|
||||
if (preference instanceof ListPreferenceEx) {
|
||||
SingleSelectPreferenceBottomSheet.showInstance(fragmentManager, preference.getKey(), this, false, appMode, currentScreenType.profileDependent);
|
||||
SingleSelectPreferenceBottomSheet.showInstance(fragmentManager, preference.getKey(), this, false, appMode, currentScreenType.profileDependent, false);
|
||||
} else if (preference instanceof SwitchPreferenceEx) {
|
||||
BooleanPreferenceBottomSheet.showInstance(fragmentManager, preference.getKey(), this, false, appMode, currentScreenType.profileDependent);
|
||||
} else if (preference instanceof EditTextPreference) {
|
||||
|
|
|
@ -30,6 +30,9 @@ public class LiveMonitoringFragment extends BaseSettingsFragment {
|
|||
|
||||
@Override
|
||||
protected void setupPreferences() {
|
||||
Preference liveMonitoringInfo = findPreference("live_monitoring_info");
|
||||
liveMonitoringInfo.setIconSpaceReserved(false);
|
||||
|
||||
setupLiveMonitoringUrlPref();
|
||||
setupLiveMonitoringIntervalPref();
|
||||
setupLiveMonitoringBufferPref();
|
||||
|
@ -86,9 +89,17 @@ public class LiveMonitoringFragment extends BaseSettingsFragment {
|
|||
}
|
||||
|
||||
private void setupLiveMonitoringUrlPref() {
|
||||
ApplicationMode appMode = getSelectedAppMode();
|
||||
String summary;
|
||||
if (settings.LIVE_MONITORING_URL.isSetForMode(appMode)) {
|
||||
summary = settings.LIVE_MONITORING_URL.getModeValue(appMode);
|
||||
} else {
|
||||
summary = getString(R.string.shared_string_disabled);
|
||||
}
|
||||
|
||||
EditTextPreferenceEx liveMonitoringUrl = (EditTextPreferenceEx) findPreference(settings.LIVE_MONITORING_URL.getId());
|
||||
liveMonitoringUrl.setSummary(settings.LIVE_MONITORING_URL.getModeValue(getSelectedAppMode()));
|
||||
liveMonitoringUrl.setDescription(R.string.live_monitoring_m_descr);
|
||||
liveMonitoringUrl.setSummary(summary);
|
||||
liveMonitoringUrl.setDescription(R.string.live_monitoring_adress_descr);
|
||||
liveMonitoringUrl.setIcon(getContentIcon(R.drawable.ic_world_globe_dark));
|
||||
}
|
||||
|
||||
|
|
|
@ -206,7 +206,6 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP
|
|||
switchPreferenceEx.setIcon(getRoutingPrefIcon(p.getId()));
|
||||
switchPreferenceEx.setSummaryOn(R.string.shared_string_on);
|
||||
switchPreferenceEx.setSummaryOff(R.string.shared_string_off);
|
||||
switchPreferenceEx.setIconSpaceReserved(true);
|
||||
|
||||
screen.addPreference(switchPreferenceEx);
|
||||
} else {
|
||||
|
@ -221,7 +220,6 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP
|
|||
ListPreferenceEx listPreferenceEx = (ListPreferenceEx) createListPreferenceEx(pref.getId(), p.getPossibleValueDescriptions(), svlss, title, R.layout.preference_with_descr);
|
||||
listPreferenceEx.setDescription(description);
|
||||
listPreferenceEx.setIcon(getRoutingPrefIcon(p.getId()));
|
||||
listPreferenceEx.setIconSpaceReserved(true);
|
||||
|
||||
screen.addPreference(listPreferenceEx);
|
||||
}
|
||||
|
|
|
@ -191,13 +191,11 @@ public class VoiceAnnouncesFragment extends BaseSettingsFragment {
|
|||
//AudioManager.USE_DEFAULT_STREAM_TYPE};
|
||||
|
||||
ListPreferenceEx audioStreamGuidance = createListPreferenceEx(settings.AUDIO_STREAM_GUIDANCE.getId(), streamTypes, streamIntTypes, R.string.choose_audio_stream, R.layout.preference_with_descr);
|
||||
audioStreamGuidance.setIconSpaceReserved(true);
|
||||
getPreferenceScreen().addPreference(audioStreamGuidance);
|
||||
}
|
||||
|
||||
private void setupInterruptMusicPref() {
|
||||
Preference interruptMusicPref = createSwitchPreference(settings.INTERRUPT_MUSIC, R.string.interrupt_music, R.string.interrupt_music_descr, R.layout.preference_switch_with_descr);
|
||||
interruptMusicPref.setIconSpaceReserved(true);
|
||||
getPreferenceScreen().addPreference(interruptMusicPref);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import android.support.annotation.NonNull;
|
|||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.View;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
|
@ -56,13 +55,16 @@ public class BooleanPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
|||
final OsmandSettings.BooleanPreference pref = (BooleanPreference) preference;
|
||||
final String on = getString(R.string.shared_string_on);
|
||||
final String off = getString(R.string.shared_string_off);
|
||||
final int activeColor = AndroidUtils.resolveAttribute(app, R.attr.active_color_basic);
|
||||
final int disabledColor = AndroidUtils.resolveAttribute(app, android.R.attr.textColorSecondary);
|
||||
boolean checked = pref.getModeValue(getAppMode());
|
||||
|
||||
final BottomSheetItemWithCompoundButton[] preferenceBtn = new BottomSheetItemWithCompoundButton[1];
|
||||
preferenceBtn[0] = (BottomSheetItemWithCompoundButton) new BottomSheetItemWithCompoundButton.Builder()
|
||||
.setChecked(checked)
|
||||
.setTitle(checked ? on : off)
|
||||
.setCustomView(getCustomButtonView())
|
||||
.setTitleColorId(checked ? activeColor : disabledColor)
|
||||
.setCustomView(getCustomButtonView(checked))
|
||||
.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
@ -71,6 +73,8 @@ public class BooleanPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
|||
switchPreference.setChecked(newValue);
|
||||
preferenceBtn[0].setTitle(newValue ? on : off);
|
||||
preferenceBtn[0].setChecked(newValue);
|
||||
preferenceBtn[0].setTitleColorId(newValue ? activeColor : disabledColor);
|
||||
updateCustomButtonView(v, newValue);
|
||||
|
||||
Fragment target = getTargetFragment();
|
||||
if (target instanceof OnPreferenceChanged) {
|
||||
|
@ -97,18 +101,24 @@ public class BooleanPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
|||
|
||||
@Override
|
||||
protected int getDismissButtonTextId() {
|
||||
return R.string.shared_string_close;
|
||||
return R.string.shared_string_cancel;
|
||||
}
|
||||
|
||||
private View getCustomButtonView() {
|
||||
private View getCustomButtonView(boolean checked) {
|
||||
View customView = UiUtilities.getInflater(getContext(), nightMode).inflate(R.layout.bottom_sheet_item_preference_switch, null);
|
||||
updateCustomButtonView(customView, checked);
|
||||
|
||||
return customView;
|
||||
}
|
||||
|
||||
private void updateCustomButtonView(View customView, boolean checked) {
|
||||
OsmandApplication app = requiredMyApplication();
|
||||
View customView = View.inflate(new ContextThemeWrapper(app, themeRes), R.layout.bottom_sheet_item_preference_switch, null);
|
||||
View buttonView = customView.findViewById(R.id.button_container);
|
||||
|
||||
int colorRes = getAppMode().getIconColorInfo().getColor(nightMode);
|
||||
int color = getResolvedColor(colorRes);
|
||||
int bgColor = UiUtilities.getColorWithAlpha(color, 0.1f);
|
||||
int selectedColor = UiUtilities.getColorWithAlpha(color, 0.3f);
|
||||
int color = checked ? getResolvedColor(colorRes) : AndroidUtils.getColorFromAttr(app, R.attr.divider_color_basic);
|
||||
int bgColor = UiUtilities.getColorWithAlpha(color, checked ? 0.1f : 0.5f);
|
||||
int selectedColor = UiUtilities.getColorWithAlpha(color, checked ? 0.3f : 0.5f);
|
||||
|
||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {
|
||||
int bgResId = R.drawable.rectangle_rounded_right;
|
||||
|
@ -123,8 +133,6 @@ public class BooleanPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
|||
Drawable bgDrawable = app.getUIUtilities().getPaintedIcon(bgResId, bgColor);
|
||||
AndroidUtils.setBackground(buttonView, bgDrawable);
|
||||
}
|
||||
|
||||
return customView;
|
||||
}
|
||||
|
||||
private SwitchPreferenceEx getSwitchPreferenceEx() {
|
||||
|
|
|
@ -6,17 +6,20 @@ import android.support.annotation.NonNull;
|
|||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
|
||||
import net.osmand.plus.ApplicationMode;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.UiUtilities;
|
||||
import net.osmand.plus.base.bottomsheetmenu.SimpleBottomSheetItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.LongDescriptionItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.TitleItem;
|
||||
import net.osmand.plus.settings.OnPreferenceChanged;
|
||||
import net.osmand.plus.settings.preferences.EditTextPreferenceEx;
|
||||
import net.osmand.util.Algorithms;
|
||||
|
||||
import studio.carbonylgroup.textfieldboxes.TextFieldBoxes;
|
||||
|
||||
public class EditTextPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
||||
|
||||
public static final String TAG = EditTextPreferenceBottomSheet.class.getSimpleName();
|
||||
|
@ -41,13 +44,15 @@ public class EditTextPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
|||
text = editTextPreference.getText();
|
||||
}
|
||||
|
||||
editText = new EditText(ctx);
|
||||
View view = UiUtilities.getInflater(ctx, nightMode).inflate(R.layout.preference_edit_text_box, null);
|
||||
editText = view.findViewById(R.id.edit_text);
|
||||
editText.setText(text);
|
||||
items.add(new SimpleBottomSheetItem.Builder().setCustomView(editText).create());
|
||||
items.add(new SimpleBottomSheetItem.Builder().setCustomView(view).create());
|
||||
|
||||
String description = editTextPreference.getDescription();
|
||||
if (!Algorithms.isEmpty(description)) {
|
||||
items.add(new LongDescriptionItem(description));
|
||||
TextFieldBoxes textFieldBoxes = view.findViewById(R.id.text_field_box);
|
||||
textFieldBoxes.setHelperText(description);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,7 +64,7 @@ public class EditTextPreferenceBottomSheet extends BasePreferenceBottomSheet {
|
|||
|
||||
@Override
|
||||
protected int getDismissButtonTextId() {
|
||||
return R.string.shared_string_close;
|
||||
return R.string.shared_string_cancel;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,8 +12,9 @@ import net.osmand.AndroidUtils;
|
|||
import net.osmand.plus.ApplicationMode;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.base.bottomsheetmenu.BaseBottomSheetItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.BottomSheetItemTitleWithDescrAndButton;
|
||||
import net.osmand.plus.base.bottomsheetmenu.BottomSheetItemWithCompoundButton;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.LongDescriptionItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.BottomSheetItemWithDescription;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.TitleItem;
|
||||
import net.osmand.plus.settings.OnPreferenceChanged;
|
||||
import net.osmand.plus.settings.preferences.ListPreferenceEx;
|
||||
|
@ -24,10 +25,14 @@ public class SingleSelectPreferenceBottomSheet extends BasePreferenceBottomSheet
|
|||
public static final String TAG = SingleSelectPreferenceBottomSheet.class.getSimpleName();
|
||||
|
||||
private static final String SELECTED_ENTRY_INDEX_KEY = "selected_entry_index_key";
|
||||
private static final String USE_COLLAPSIBLE_DESCRIPTION = "use_collapsible_description";
|
||||
private static final int COLLAPSED_DESCRIPTION_LINES = 4;
|
||||
|
||||
private ListPreferenceEx listPreference;
|
||||
|
||||
private int selectedEntryIndex = -1;
|
||||
private boolean descriptionExpanded;
|
||||
private boolean collapsibleDescription;
|
||||
|
||||
@Override
|
||||
public void createMenuItems(Bundle savedInstanceState) {
|
||||
|
@ -36,8 +41,13 @@ public class SingleSelectPreferenceBottomSheet extends BasePreferenceBottomSheet
|
|||
if (ctx == null || listPreference == null || listPreference.getEntries() == null || listPreference.getEntryValues() == null) {
|
||||
return;
|
||||
}
|
||||
Bundle args = getArguments();
|
||||
if (args != null && args.containsKey(USE_COLLAPSIBLE_DESCRIPTION)) {
|
||||
collapsibleDescription = args.getBoolean(USE_COLLAPSIBLE_DESCRIPTION);
|
||||
}
|
||||
if (savedInstanceState != null) {
|
||||
selectedEntryIndex = savedInstanceState.getInt(SELECTED_ENTRY_INDEX_KEY);
|
||||
collapsibleDescription = savedInstanceState.getBoolean(USE_COLLAPSIBLE_DESCRIPTION);
|
||||
} else {
|
||||
selectedEntryIndex = listPreference.findIndexOfValue(listPreference.getValue());
|
||||
}
|
||||
|
@ -47,7 +57,7 @@ public class SingleSelectPreferenceBottomSheet extends BasePreferenceBottomSheet
|
|||
|
||||
String description = listPreference.getDescription();
|
||||
if (!Algorithms.isEmpty(description)) {
|
||||
items.add(new LongDescriptionItem(description));
|
||||
buildDescriptionItem(ctx, description);
|
||||
}
|
||||
|
||||
String[] entries = listPreference.getEntries();
|
||||
|
@ -83,11 +93,12 @@ public class SingleSelectPreferenceBottomSheet extends BasePreferenceBottomSheet
|
|||
public void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putInt(SELECTED_ENTRY_INDEX_KEY, selectedEntryIndex);
|
||||
outState.putBoolean(USE_COLLAPSIBLE_DESCRIPTION, collapsibleDescription);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getDismissButtonTextId() {
|
||||
return R.string.shared_string_close;
|
||||
return R.string.shared_string_cancel;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -125,11 +136,41 @@ public class SingleSelectPreferenceBottomSheet extends BasePreferenceBottomSheet
|
|||
return (ListPreferenceEx) getPreference();
|
||||
}
|
||||
|
||||
public static boolean showInstance(@NonNull FragmentManager fragmentManager, String key, Fragment target,
|
||||
boolean usedOnMap, @Nullable ApplicationMode appMode, boolean profileDependent) {
|
||||
private void buildDescriptionItem(Context ctx, String description) {
|
||||
if (collapsibleDescription) {
|
||||
final BottomSheetItemTitleWithDescrAndButton[] preferenceDescription = new BottomSheetItemTitleWithDescrAndButton[1];
|
||||
preferenceDescription[0] = (BottomSheetItemTitleWithDescrAndButton) new BottomSheetItemTitleWithDescrAndButton.Builder()
|
||||
.setButtonTitle(getString(R.string.shared_string_read_more))
|
||||
.setButtonTextColor(AndroidUtils.resolveAttribute(ctx, R.attr.active_color_basic))
|
||||
.setOnButtonClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
descriptionExpanded = !descriptionExpanded;
|
||||
int maxLines = descriptionExpanded ? Integer.MAX_VALUE : COLLAPSED_DESCRIPTION_LINES;
|
||||
preferenceDescription[0].setDescriptionMaxLines(maxLines);
|
||||
setupHeightAndBackground(getView());
|
||||
}
|
||||
})
|
||||
.setDescriptionMaxLines(COLLAPSED_DESCRIPTION_LINES)
|
||||
.setDescription(description)
|
||||
.setLayoutId(R.layout.bottom_sheet_item_with_expandable_descr)
|
||||
.create();
|
||||
items.add(preferenceDescription[0]);
|
||||
} else {
|
||||
BaseBottomSheetItem preferenceDescription = new BottomSheetItemWithDescription.Builder()
|
||||
.setDescription(description)
|
||||
.setLayoutId(R.layout.bottom_sheet_item_preference_descr)
|
||||
.create();
|
||||
items.add(preferenceDescription);
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean showInstance(@NonNull FragmentManager fragmentManager, String key, Fragment target, boolean usedOnMap,
|
||||
@Nullable ApplicationMode appMode, boolean profileDependent, boolean collapsibleDescription) {
|
||||
try {
|
||||
Bundle args = new Bundle();
|
||||
args.putString(PREFERENCE_ID, key);
|
||||
args.putBoolean(USE_COLLAPSIBLE_DESCRIPTION, collapsibleDescription);
|
||||
|
||||
SingleSelectPreferenceBottomSheet fragment = new SingleSelectPreferenceBottomSheet();
|
||||
fragment.setArguments(args);
|
||||
|
|
Loading…
Reference in a new issue