diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index e369123cc8..585659437a 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -507,8 +507,6 @@ android:paddingLeft="@dimen/context_menu_button_padding_x" android:paddingRight="@dimen/context_menu_button_padding_x" android:gravity="end|center_vertical" - tools:drawableEnd="@drawable/map_directions" - android:drawablePadding="@dimen/context_menu_padding_margin_medium" android:textColor="?attr/contextMenuButtonColor" android:textSize="@dimen/default_desc_text_size" android:text="@string/get_directions"/> diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index d6bd583248..6beb3042c2 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -462,6 +462,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo Button directionsButton = (Button) view.findViewById(R.id.context_menu_directions_button); Drawable drawable = getIcon(R.drawable.map_directions, nightMode ? R.color.osmand_orange : R.color.map_widget_blue); directionsButton.setCompoundDrawablesWithIntrinsicBounds(null, null, drawable, null); + directionsButton.setCompoundDrawablePadding(dpToPx(8)); directionsButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) {