diff --git a/OsmAnd/res/drawable/travel_card_download_icon.xml b/OsmAnd/res/drawable/travel_card_download_icon.xml
index c50a41b2c6..b0c24733ff 100644
--- a/OsmAnd/res/drawable/travel_card_download_icon.xml
+++ b/OsmAnd/res/drawable/travel_card_download_icon.xml
@@ -10,5 +10,8 @@
+ android:top="4dp"
+ android:bottom="4dp"
+ android:left="4dp"
+ android:right="4dp" />
diff --git a/OsmAnd/res/drawable/travel_card_update_icon.xml b/OsmAnd/res/drawable/travel_card_update_icon.xml
index 9648d8b88f..19ce5f2ed2 100644
--- a/OsmAnd/res/drawable/travel_card_update_icon.xml
+++ b/OsmAnd/res/drawable/travel_card_update_icon.xml
@@ -10,5 +10,8 @@
+ android:top="4dp"
+ android:bottom="4dp"
+ android:left="4dp"
+ android:right="4dp" />
diff --git a/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml b/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml
index 3a8d430f27..940317d3bb 100644
--- a/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml
+++ b/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml
@@ -1,6 +1,5 @@
-
+ android:layout_height="@dimen/dashboard_map_toolbar"
+ android:padding="0dp">
+ android:layout_width="@dimen/toolbar_height"
+ android:layout_height="@dimen/toolbar_height"
+ android:contentDescription="@string/access_shared_string_navigate_up"
+ osmand:srcCompat="@drawable/ic_arrow_back" />
+ osmand:typeface="@string/font_roboto_medium"
+ tools:textColor="@color/color_white" />
+ android:paddingStart="@dimen/content_padding"
+ android:paddingEnd="@dimen/content_padding" />
@@ -92,7 +91,7 @@
android:layout_height="match_parent"
android:layout_gravity="end"
android:scaleType="fitXY"
- osmand:srcCompat="@drawable/bg_shadow_quick_input_left"/>
+ osmand:srcCompat="@drawable/bg_shadow_quick_input_left" />
@@ -108,7 +107,7 @@
android:layout_height="match_parent"
android:layout_gravity="start"
android:scaleType="fitXY"
- osmand:srcCompat="@drawable/bg_shadow_quick_input_right"/>
+ osmand:srcCompat="@drawable/bg_shadow_quick_input_right" />
diff --git a/OsmAnd/res/layout-land/fragment_direction_indication_dialog.xml b/OsmAnd/res/layout-land/fragment_direction_indication_dialog.xml
index 4ada3b137b..580849ddbd 100644
--- a/OsmAnd/res/layout-land/fragment_direction_indication_dialog.xml
+++ b/OsmAnd/res/layout-land/fragment_direction_indication_dialog.xml
@@ -19,10 +19,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/dashboard_map_toolbar"
android:minHeight="@dimen/dashboard_map_toolbar"
- app:contentInsetLeft="54dp"
- app:contentInsetStart="54dp"
- app:contentInsetRight="0dp"
- app:contentInsetEnd="0dp">
+ android:padding="0dp">
+ android:padding="0dp">
+ android:padding="0dp">
+ android:padding="0dp">
+ android:layout_marginLeft="@dimen/content_padding"
+ android:layout_marginRight="@dimen/content_padding"
+ android:layout_marginStart="@dimen/content_padding"
+ android:layout_marginEnd="@dimen/content_padding">
+ tools:text="@string/routing_settings_2" />
diff --git a/OsmAnd/res/layout/point_editor_fragment_new.xml b/OsmAnd/res/layout/point_editor_fragment_new.xml
index 0b2ca56e50..f9000f7492 100644
--- a/OsmAnd/res/layout/point_editor_fragment_new.xml
+++ b/OsmAnd/res/layout/point_editor_fragment_new.xml
@@ -21,8 +21,8 @@
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:background="?attr/card_and_list_background_basic"
- android:minHeight="@dimen/toolbar_height"
osmand:subtitleTextColor="?android:textColorPrimary"
+ app:contentInsetStartWithNavigation="@dimen/toolbar_inset_start_with_navigation"
osmand:theme="@style/ThemeOverlay.AppCompat.ActionBar"
osmand:titleTextColor="?android:textColorPrimary">
diff --git a/OsmAnd/res/layout/profile_preference_toolbar.xml b/OsmAnd/res/layout/profile_preference_toolbar.xml
index 3b38185038..14badfab75 100644
--- a/OsmAnd/res/layout/profile_preference_toolbar.xml
+++ b/OsmAnd/res/layout/profile_preference_toolbar.xml
@@ -4,6 +4,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:minHeight="@dimen/toolbar_height"
osmand:contentInsetLeft="0dp"
osmand:contentInsetStart="0dp"
osmand:contentInsetRight="0dp"
@@ -32,6 +33,10 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
+ android:layout_marginLeft="@dimen/content_padding"
+ android:layout_marginRight="@dimen/content_padding"
+ android:layout_marginStart="@dimen/content_padding"
+ android:layout_marginEnd="@dimen/content_padding"
android:paddingTop="@dimen/content_padding_half"
android:paddingBottom="@dimen/content_padding_half"
android:background="?attr/card_and_list_background_basic"
@@ -42,15 +47,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="@dimen/text_button_letter_spacing"
- android:paddingLeft="@dimen/content_padding"
- android:paddingRight="@dimen/content_padding"
android:maxLines="2"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/dialog_header_text_size"
osmand:typeface="@string/font_roboto_medium"
- tools:text="@string/routing_settings_2"
- android:paddingEnd="@dimen/content_padding"
- android:paddingStart="@dimen/content_padding" />
+ tools:text="@string/routing_settings_2" />
+ tools:text="Some description" />
diff --git a/OsmAnd/res/layout/profile_preference_toolbar_with_icon.xml b/OsmAnd/res/layout/profile_preference_toolbar_with_icon.xml
index d8b1dafaaa..98f2b0966d 100644
--- a/OsmAnd/res/layout/profile_preference_toolbar_with_icon.xml
+++ b/OsmAnd/res/layout/profile_preference_toolbar_with_icon.xml
@@ -6,6 +6,7 @@
android:layout_height="wrap_content"
android:background="?attr/actionModeBackground"
android:minHeight="@dimen/toolbar_height"
+ android:padding="0dp"
osmand:contentInsetLeft="0dp"
osmand:contentInsetStart="0dp"
osmand:contentInsetRight="0dp"
diff --git a/OsmAnd/res/layout/profile_preference_toolbar_with_switch.xml b/OsmAnd/res/layout/profile_preference_toolbar_with_switch.xml
index d34c987376..73db37f093 100644
--- a/OsmAnd/res/layout/profile_preference_toolbar_with_switch.xml
+++ b/OsmAnd/res/layout/profile_preference_toolbar_with_switch.xml
@@ -4,6 +4,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:padding="0dp"
osmand:contentInsetLeft="0dp"
osmand:contentInsetStart="0dp"
osmand:contentInsetRight="0dp"
@@ -38,6 +39,10 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
+ android:layout_marginLeft="@dimen/content_padding"
+ android:layout_marginRight="@dimen/content_padding"
+ android:layout_marginStart="@dimen/content_padding"
+ android:layout_marginEnd="@dimen/content_padding"
android:paddingTop="@dimen/content_padding_half"
android:paddingBottom="@dimen/content_padding_half"
android:background="?attr/card_and_list_background_basic"
@@ -48,15 +53,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="@dimen/text_button_letter_spacing"
- android:paddingLeft="@dimen/content_padding"
- android:paddingRight="@dimen/content_padding"
android:maxLines="2"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/dialog_header_text_size"
osmand:typeface="@string/font_roboto_medium"
- tools:text="@string/routing_settings_2"
- android:paddingEnd="@dimen/content_padding"
- android:paddingStart="@dimen/content_padding" />
+ tools:text="@string/routing_settings_2" />
+ tools:text="Some description" />
+ xmlns:osmand="http://schemas.android.com/apk/res-auto"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
@@ -28,10 +31,11 @@
android:gravity="center_vertical"
android:orientation="horizontal">
-
+ osmand:typeface="@string/font_roboto_medium"
+ android:textSize="@dimen/dialog_header_text_size"/>
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp" />
diff --git a/OsmAnd/res/layout/search_custom_poi.xml b/OsmAnd/res/layout/search_custom_poi.xml
index 7023b905ce..23234ebc92 100644
--- a/OsmAnd/res/layout/search_custom_poi.xml
+++ b/OsmAnd/res/layout/search_custom_poi.xml
@@ -9,7 +9,7 @@
+ android:layout_height="@dimen/toolbar_height">
@@ -31,15 +33,14 @@
-
+ osmand:typeface="@string/font_roboto_medium"
+ android:textSize="@dimen/dialog_header_text_size"/>
diff --git a/OsmAnd/res/layout/search_dialog_fragment.xml b/OsmAnd/res/layout/search_dialog_fragment.xml
index 964a025182..3b8e813f83 100644
--- a/OsmAnd/res/layout/search_dialog_fragment.xml
+++ b/OsmAnd/res/layout/search_dialog_fragment.xml
@@ -24,8 +24,9 @@
android:minHeight="@dimen/dashboard_map_toolbar"
android:padding="0dp"
android:theme="?attr/toolbar_theme"
- app:contentInsetLeft="54dp"
- app:contentInsetStart="54dp"
+ app:contentInsetStartWithNavigation="@dimen/toolbar_inset_start_with_navigation"
+ app:contentInsetLeft="0dp"
+ app:contentInsetStart="0dp"
app:contentInsetRight="0dp"
app:contentInsetEnd="0dp">
diff --git a/OsmAnd/res/layout/wikivoyage_explore.xml b/OsmAnd/res/layout/wikivoyage_explore.xml
index 0fecdb2d61..44a64a723d 100644
--- a/OsmAnd/res/layout/wikivoyage_explore.xml
+++ b/OsmAnd/res/layout/wikivoyage_explore.xml
@@ -1,7 +1,5 @@
-
+ osmand:elevation="0dp">
+ android:padding="0dp">
+ osmand:typeface="@string/font_roboto_medium" />
+ android:paddingStart="@dimen/content_padding"
+ android:paddingEnd="@dimen/content_padding" />
@@ -80,7 +74,7 @@
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:indeterminate="true"/>
+ android:indeterminate="true" />
+ android:layout_marginEnd="@dimen/text_margin_small"
+ android:layout_marginStart="@dimen/text_margin_small">
+ tools:textColor="?attr/searchbar_text_hint" />
+ android:layout_marginEnd="@dimen/content_padding_small"
+ android:layout_marginStart="@dimen/content_padding_small" />
@@ -136,7 +130,7 @@
+ android:layout_height="match_parent" />
@@ -147,9 +141,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/wikivoyage_card_bg_color"
- app:itemBackground="?attr/wikivoyage_card_bg_color"
- app:menu="@menu/wikivoyage_bottom_navigation"
+ osmand:itemBackground="?attr/wikivoyage_card_bg_color"
+ osmand:menu="@menu/wikivoyage_bottom_navigation"
tools:itemIconTint="@color/bottom_navigation_color_selector_light"
- tools:itemTextColor="@color/bottom_navigation_color_selector_light"/>
+ tools:itemTextColor="@color/bottom_navigation_color_selector_light" />
diff --git a/OsmAnd/res/values-large/sizes.xml b/OsmAnd/res/values-large/sizes.xml
index 70b9e5eb7e..07047222d2 100644
--- a/OsmAnd/res/values-large/sizes.xml
+++ b/OsmAnd/res/values-large/sizes.xml
@@ -121,7 +121,6 @@
450dp
54dp
- 64dp
24dp
\ No newline at end of file
diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml
index cd33774ac5..8f6a9e92ab 100644
--- a/OsmAnd/res/values/sizes.xml
+++ b/OsmAnd/res/values/sizes.xml
@@ -9,7 +9,7 @@
60dp
56dp
4dp
- 64dp
+ 56dp
32dp
20dp
28sp
@@ -335,6 +335,7 @@
56dp
96dp
+ 72dp
36dp
80dp
diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml
index 468bdfe57d..a45b9f25ad 100644
--- a/OsmAnd/res/values/styles.xml
+++ b/OsmAnd/res/values/styles.xml
@@ -287,10 +287,20 @@
- @style/OsmandPreferenceTheme
- @color/stroked_buttons_and_links_outline_light
- @drawable/btn_bg_border_inactive_light
+ - @dimen/action_bar_height
+ - @style/ToolbarStyle
+ - @style/ToolbarStyle
+
+
+
diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java
index aef82939d1..ca633e3885 100644
--- a/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java
+++ b/OsmAnd/src/net/osmand/plus/settings/fragments/BaseSettingsFragment.java
@@ -124,7 +124,7 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl
MAP_DURING_NAVIGATION(MapDuringNavigationFragment.class.getName(), true, ApplyQueryType.SNACK_BAR, R.xml.map_during_navigation, R.layout.profile_preference_toolbar),
TURN_SCREEN_ON(TurnScreenOnFragment.class.getName(), true, ApplyQueryType.SNACK_BAR, R.xml.turn_screen_on, R.layout.profile_preference_toolbar_with_switch),
DATA_STORAGE(DataStorageFragment.class.getName(), false, null, R.xml.data_storage, R.layout.global_preference_toolbar),
- DIALOGS_AND_NOTIFICATIONS_SETTINGS(DialogsAndNotificationsSettingsFragment.class.getName(), false, null, R.xml.dialogs_and_notifications_preferences, R.layout.global_preferences_toolbar_with_switch),
+ DIALOGS_AND_NOTIFICATIONS_SETTINGS(DialogsAndNotificationsSettingsFragment.class.getName(), false, null, R.xml.dialogs_and_notifications_preferences, R.layout.global_preference_toolbar),
PROFILE_APPEARANCE(ProfileAppearanceFragment.TAG, true, null, R.xml.profile_appearance, R.layout.profile_preference_toolbar),
OPEN_STREET_MAP_EDITING(OsmEditingFragment.class.getName(), false, null, R.xml.osm_editing, R.layout.global_preference_toolbar),
MULTIMEDIA_NOTES(MultimediaNotesFragment.class.getName(), true, ApplyQueryType.SNACK_BAR, R.xml.multimedia_notes, R.layout.profile_preference_toolbar),
diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/DialogsAndNotificationsSettingsFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/DialogsAndNotificationsSettingsFragment.java
index 5fc75b9685..ec29d13f98 100644
--- a/OsmAnd/src/net/osmand/plus/settings/fragments/DialogsAndNotificationsSettingsFragment.java
+++ b/OsmAnd/src/net/osmand/plus/settings/fragments/DialogsAndNotificationsSettingsFragment.java
@@ -1,8 +1,5 @@
package net.osmand.plus.settings.fragments;
-import android.view.LayoutInflater;
-import android.view.View;
-
import androidx.preference.Preference;
import androidx.preference.SwitchPreferenceCompat;
@@ -12,12 +9,6 @@ public class DialogsAndNotificationsSettingsFragment extends BaseSettingsFragmen
public static final String TAG = DialogsAndNotificationsSettingsFragment.class.getSimpleName();
- @Override
- protected void createToolbar(LayoutInflater inflater, View view) {
- super.createToolbar(inflater, view);
- view.findViewById(R.id.toolbar_switch_container).setVisibility(View.GONE);
- }
-
@Override
protected void setupPreferences() {
Preference mapDuringNavigationInfo = findPreference("dialogs_and_notifications_preferences_info");
diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java
index eedfddad0d..d7aaa23bb7 100644
--- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java
+++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java
@@ -9,8 +9,6 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
-import androidx.appcompat.content.res.AppCompatResources;
-import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import net.osmand.plus.OsmandApplication;
@@ -68,7 +66,7 @@ public class TravelDownloadUpdateCard extends BaseTravelCard {
DownloadUpdateVH holder = (DownloadUpdateVH) viewHolder;
this.ref = new WeakReference(holder);
holder.title.setText(getTitle(loading));
- holder.icon.setImageDrawable(getIcon());
+ holder.icon.setImageResource(getIconRes());
holder.description.setText(getDescription());
if (indexItem == null) {
holder.fileDataContainer.setVisibility(View.GONE);
@@ -117,9 +115,8 @@ public class TravelDownloadUpdateCard extends BaseTravelCard {
return app.getString(download ? R.string.download_file : R.string.update_is_available);
}
- private Drawable getIcon() {
- int id = download ? R.drawable.travel_card_download_icon : R.drawable.travel_card_update_icon;
- return AppCompatResources.getDrawable(app, id);
+ private int getIconRes() {
+ return download ? R.drawable.travel_card_download_icon : R.drawable.travel_card_update_icon;
}
@NonNull