diff --git a/OsmAnd/res/layout-land/fragment_measurement_tool.xml b/OsmAnd/res/layout-land/fragment_measurement_tool.xml
index 710a81682c..91bc741fab 100644
--- a/OsmAnd/res/layout-land/fragment_measurement_tool.xml
+++ b/OsmAnd/res/layout-land/fragment_measurement_tool.xml
@@ -1,20 +1,21 @@
-
+ android:clickable="true"
+ android:focusable="true">
+ tools:visibility="visible" />
@@ -69,43 +70,39 @@
android:id="@+id/measurement_distance_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginEnd="@dimen/measurement_tool_text_margin"
- android:layout_marginLeft="@dimen/measurement_tool_text_margin"
- android:layout_marginRight="@dimen/measurement_tool_text_margin"
- android:layout_marginStart="@dimen/measurement_tool_text_margin"
+ android:layout_marginStart="@dimen/measurement_tool_text_button_padding"
+ android:layout_marginLeft="@dimen/measurement_tool_text_button_padding"
+ android:layout_marginTop="@dimen/measurement_tool_button_padding"
+ android:layout_marginEnd="@dimen/text_margin_small"
+ android:layout_marginRight="@dimen/text_margin_small"
android:layout_toEndOf="@id/main_icon"
android:layout_toRightOf="@id/main_icon"
android:textAppearance="@style/TextAppearance.ListItemTitle"
- tools:text="724 m,"/>
+ tools:text="724 m," />
+ android:layout_alignRight="@id/up_down_button"
+ android:layout_marginTop="@dimen/measurement_tool_button_padding"
+ android:textAppearance="@style/TextAppearance.ListItemCategoryTitle"
+ tools:text="points: 3" />
+ android:layout_below="@id/measurement_points_text_view"
+ android:layout_alignStart="@+id/measurement_distance_text_view"
+ android:layout_alignLeft="@+id/measurement_distance_text_view"
+ android:maxLines="1"
+ android:textColor="?android:textColorSecondary"
+ android:textSize="@dimen/default_desc_text_size"
+ tools:text=" – 700 m" />
-
+ android:layout_height="@dimen/measurement_tool_controls_height_land"
+ android:layout_weight="0.55"
+ android:padding="@dimen/content_padding_half">
-
-
-
-
-
-
+ android:maxLines="1"
+ android:padding="@dimen/measurement_tool_text_button_padding_small"
+ android:text="@string/shared_string_options"
+ android:textColor="?attr/color_dialog_buttons"
+ osmand:typeface="@string/font_roboto_medium" />
-
-
-
+ android:layout_centerInParent="true">
-
-
+ android:layout_centerVertical="true"
+ android:background="?attr/selectableItemBackground"
+ android:contentDescription="@string/shared_string_undo"
+ android:padding="@dimen/measurement_tool_undo_redo_padding_small"
+ tools:src="@drawable/ic_action_undo_dark" />
-
+
+
+
+
+
-
+ layout="@layout/bottom_sheet_dialog_button" />
+
+ osmand:typeface="@string/font_roboto_medium" />
-
@@ -276,59 +248,48 @@
+ osmand:typeface="@string/font_roboto_medium" />
+ android:layout_height="match_parent" />
-
+ android:layout_toStartOf="@id/add_point_before_after_button"
+ android:layout_toLeftOf="@id/add_point_before_after_button"
+ android:layout_centerVertical="true"
+ layout="@layout/bottom_sheet_dialog_button" />
-
-
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentRight="true"
+ layout="@layout/bottom_sheet_dialog_button" />
+
+
diff --git a/OsmAnd/res/layout-land/map_hud_top.xml b/OsmAnd/res/layout-land/map_hud_top.xml
index d9d17ad27d..7fa9318c92 100644
--- a/OsmAnd/res/layout-land/map_hud_top.xml
+++ b/OsmAnd/res/layout-land/map_hud_top.xml
@@ -536,11 +536,11 @@
+ osmand:srcCompat="@drawable/ic_arrow_back" />
+ android:paddingBottom="@dimen/toolbar_title_padding_bottom"
+ android:paddingTop="@dimen/toolbar_title_padding_top">
@@ -616,7 +616,7 @@
-
+ android:clickable="true"
+ android:focusable="true">
+ android:focusable="true">
+ tools:visibility="visible" />
+ tools:text="points: 3" />
@@ -189,6 +192,7 @@
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:padding="@dimen/measurement_tool_undo_redo_padding_small"
+ android:contentDescription="@string/shared_string_undo"
tools:src="@drawable/ic_action_undo_dark"/>
-
+ layout="@layout/bottom_sheet_dialog_button" />
@@ -232,26 +227,16 @@
android:layout_height="@dimen/measurement_tool_controls_height"
android:visibility="gone">
-
+ layout="@layout/bottom_sheet_dialog_button" />
@@ -291,41 +276,24 @@
android:layout_height="match_parent"
android:layout_weight="1"/>
-
+ layout="@layout/bottom_sheet_dialog_button" />
-
+ layout="@layout/bottom_sheet_dialog_button" />
+
diff --git a/OsmAnd/res/layout/map_hud_bottom.xml b/OsmAnd/res/layout/map_hud_bottom.xml
index 9cfcab6e16..81dc6fbd28 100644
--- a/OsmAnd/res/layout/map_hud_bottom.xml
+++ b/OsmAnd/res/layout/map_hud_bottom.xml
@@ -116,12 +116,13 @@
tools:src="@drawable/ic_action_remove_dark"
android:contentDescription="@string/snap_to_road" />
-
+
diff --git a/OsmAnd/res/layout/map_hud_top.xml b/OsmAnd/res/layout/map_hud_top.xml
index bef39b9539..23eb48df18 100644
--- a/OsmAnd/res/layout/map_hud_top.xml
+++ b/OsmAnd/res/layout/map_hud_top.xml
@@ -210,8 +210,8 @@
android:layout_marginLeft="@dimen/map_button_margin"
android:layout_marginRight="@dimen/map_button_margin"
tools:src="@drawable/ic_action_remove_dark"
- android:layout_marginStart="@dimen/map_button_margin"
- android:layout_marginEnd="@dimen/map_button_margin" />
+ android:layout_marginStart="@dimen/map_button_margin"
+ android:layout_marginEnd="@dimen/map_button_margin" />
@@ -335,8 +335,8 @@
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical"
- android:paddingBottom="10dp"
- android:paddingTop="10dp">
+ android:paddingBottom="@dimen/toolbar_title_padding_bottom"
+ android:paddingTop="@dimen/toolbar_title_padding_top">
@@ -402,13 +402,13 @@
@@ -435,8 +435,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:animateLayoutChanges="true"
- android:visibility="gone"/>
+ android:animateLayoutChanges="true"
+ android:visibility="gone"/>
+ android:layout_toEndOf="@+id/map_marker_dist_2nd" />
@@ -781,8 +781,8 @@
android:layout_marginLeft="@dimen/widget_turn_lane_border"
android:layout_marginRight="@dimen/widget_turn_lane_border"
android:layout_marginTop="@dimen/widget_turn_lane_border"
- android:layout_marginStart="@dimen/widget_turn_lane_border"
- android:layout_marginEnd="@dimen/widget_turn_lane_border" />
+ android:layout_marginStart="@dimen/widget_turn_lane_border"
+ android:layout_marginEnd="@dimen/widget_turn_lane_border" />
+ android:layout_marginEnd="@dimen/widget_turn_lane_border"
+ android:layout_marginStart="@dimen/widget_turn_lane_border" />
+ android:layout_marginEnd="@dimen/widget_turn_lane_border"
+ android:layout_marginStart="@dimen/widget_turn_lane_border" />
diff --git a/OsmAnd/res/values-large/sizes.xml b/OsmAnd/res/values-large/sizes.xml
index 02abe48c01..7bb27b3f90 100644
--- a/OsmAnd/res/values-large/sizes.xml
+++ b/OsmAnd/res/values-large/sizes.xml
@@ -80,7 +80,6 @@
12dp
330dp
48dp
- 84dp
18dp
24dp
18dp
diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml
index 8d403a7133..c1eff51f59 100644
--- a/OsmAnd/res/values/sizes.xml
+++ b/OsmAnd/res/values/sizes.xml
@@ -256,7 +256,8 @@
8dp
220dp
60dp
- 56dp
+ 52dp
+ 56dp
8dp
16dp
6dp
@@ -268,6 +269,7 @@
8dp
10dp
36dp
+ 98dp
72dp
52dp
44dp
@@ -352,6 +354,8 @@
96dp
72dp
54dp
+ 7dp
+ 6dp
36dp
80dp
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index c64e47ffd3..b639812de7 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -11,6 +11,7 @@
Thx - Hardy
-->
+ Redo
is saved
Open saved track
All previous segments will be recalculated using the selected profile.
diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java
index 55286a0461..6d911cdb75 100644
--- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java
+++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java
@@ -274,21 +274,31 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
}
});
- mainView.findViewById(R.id.apply_move_point_button).setOnClickListener(new OnClickListener() {
+ View applyMovePointButton = mainView.findViewById(R.id.apply_move_point_button);
+ UiUtilities.setupDialogButton(nightMode, applyMovePointButton, UiUtilities.DialogButtonType.PRIMARY,
+ R.string.shared_string_apply);
+ applyMovePointButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
applyMovePointMode();
}
});
- mainView.findViewById(R.id.apply_point_before_after_point_button).setOnClickListener(new OnClickListener() {
+
+ View applyPointBeforeAfterButton = mainView.findViewById(R.id.apply_point_before_after_point_button);
+ UiUtilities.setupDialogButton(nightMode, applyPointBeforeAfterButton, UiUtilities.DialogButtonType.PRIMARY,
+ R.string.shared_string_apply);
+ applyPointBeforeAfterButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
applyAddPointBeforeAfterMode();
}
});
- mainView.findViewById(R.id.add_point_before_after_button).setOnClickListener(new OnClickListener() {
+ View addPointBeforeAfterButton = mainView.findViewById(R.id.add_point_before_after_button);
+ UiUtilities.setupDialogButton(nightMode, addPointBeforeAfterButton, UiUtilities.DialogButtonType.PRIMARY,
+ R.string.shared_string_add);
+ addPointBeforeAfterButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
addPointBeforeAfter();
@@ -333,7 +343,10 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
}
});
- mainView.findViewById(R.id.add_point_button).setOnClickListener(new OnClickListener() {
+ View addPointButton = mainView.findViewById(R.id.add_point_button);
+ UiUtilities.setupDialogButton(nightMode, addPointButton, UiUtilities.DialogButtonType.PRIMARY,
+ R.string.shared_string_add);
+ addPointButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
addCenterPoint();
diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/OptionsBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/OptionsBottomSheetDialogFragment.java
index 5d2b23cdd4..61545eec0a 100644
--- a/OsmAnd/src/net/osmand/plus/measurementtool/OptionsBottomSheetDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/measurementtool/OptionsBottomSheetDialogFragment.java
@@ -121,7 +121,7 @@ public class OptionsBottomSheetDialogFragment extends MenuBottomSheetDialogFragm
BaseBottomSheetItem directions = new SimpleBottomSheetItem.Builder()
.setIcon(getContentIcon(R.drawable.ic_action_gdirections_dark))
.setTitle(getString(R.string.get_directions))
- .setLayoutId(R.layout.bottom_sheet_item_simple)
+ .setLayoutId(R.layout.bottom_sheet_item_simple_pad_32dp)
.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {