diff --git a/android/res/layout-land/routing_details.xml b/android/res/layout-land/routing_details.xml index 020bc4e4d1..b98fde3487 100644 --- a/android/res/layout-land/routing_details.xml +++ b/android/res/layout-land/routing_details.xml @@ -9,10 +9,10 @@ + tools:text="5 h 55 min • 1555km"/> + tools:text="5 h 55 min • 1555km"/> + android:layout_height="wrap_content" + tools:text="5 h 55 min • 1555km" + tools:visibility="visible" /> diff --git a/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java b/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java index cc4b26b8cb..a4d99cb141 100644 --- a/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java +++ b/android/src/com/mapswithme/maps/routing/RoutingBottomMenuController.java @@ -311,10 +311,10 @@ final class RoutingBottomMenuController implements View.OnClickListener SpannableStringBuilder builder = new SpannableStringBuilder(); initTimeBuilderSequence(context, time, builder); - String dot = " • "; + String dot = "\u00A0• "; initDotBuilderSequence(context, dot, builder); - String dist = routingInfo.distToTarget + " " + routingInfo.targetUnits; + String dist = routingInfo.distToTarget + "\u00A0" + routingInfo.targetUnits; initDistanceBuilderSequence(context, dist, builder); return builder; diff --git a/android/src/com/mapswithme/maps/routing/RoutingController.java b/android/src/com/mapswithme/maps/routing/RoutingController.java index 81113a60c2..21676383fc 100644 --- a/android/src/com/mapswithme/maps/routing/RoutingController.java +++ b/android/src/com/mapswithme/maps/routing/RoutingController.java @@ -1042,7 +1042,7 @@ public class RoutingController implements Initializable String.valueOf(hours), hour); SpannableStringBuilder displayedM = Utils.formatUnitsText(context, textSize, unitsSize, String.valueOf(minutes), min); - return hours == 0 ? displayedM : TextUtils.concat(displayedH + " ", displayedM); + return hours == 0 ? displayedM : TextUtils.concat(displayedH + "\u00A0", displayedM); } static String formatArrivalTime(int seconds) diff --git a/android/src/com/mapswithme/util/Utils.java b/android/src/com/mapswithme/util/Utils.java index 88678b0d5f..2706c90693 100644 --- a/android/src/com/mapswithme/util/Utils.java +++ b/android/src/com/mapswithme/util/Utils.java @@ -355,7 +355,7 @@ public class Utils public static SpannableStringBuilder formatUnitsText(Context context, @DimenRes int size, @DimenRes int units, String dimension, String unitText) { - final SpannableStringBuilder res = new SpannableStringBuilder(dimension).append(" ").append(unitText); + final SpannableStringBuilder res = new SpannableStringBuilder(dimension).append("\u00A0").append(unitText); res.setSpan(new AbsoluteSizeSpan(UiUtils.dimen(context, size), false), 0, dimension.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); res.setSpan(new AbsoluteSizeSpan(UiUtils.dimen(context, units), false), dimension.length(), res.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); return res;