From 9118075dac918f241fb9ed760f0030dcf7c44d54 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Mon, 4 Apr 2016 16:08:21 +0300 Subject: [PATCH] Bigger Map mode buttons. --- OsmAnd/res/layout/mode_toggles.xml | 9 +++++---- OsmAnd/res/values/sizes.xml | 2 +- .../osmand/plus/activities/actions/AppModeDialog.java | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/OsmAnd/res/layout/mode_toggles.xml b/OsmAnd/res/layout/mode_toggles.xml index 4ae56ddd16..25639d644e 100644 --- a/OsmAnd/res/layout/mode_toggles.xml +++ b/OsmAnd/res/layout/mode_toggles.xml @@ -1,15 +1,16 @@ - + android:layout_gravity="start"> + android:gravity="start" + android:orientation="horizontal"> \ No newline at end of file diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml index 7d1b2cf9bc..4bbd132cb8 100644 --- a/OsmAnd/res/values/sizes.xml +++ b/OsmAnd/res/values/sizes.xml @@ -57,7 +57,7 @@ 60dp 54dp 48dp - 48dp + 56dp 40dp 52dp diff --git a/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java b/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java index 89ea9e603f..cdcc626d90 100644 --- a/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java +++ b/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java @@ -118,7 +118,7 @@ public class AppModeDialog { static private View createToggle(LayoutInflater layoutInflater, OsmandApplication ctx, LinearLayout layout, ApplicationMode mode){ int metricsX = (int) ctx.getResources().getDimension(R.dimen.map_mode_button_width); - int metricsY = (int) ctx.getResources().getDimension(R.dimen.list_item_height); + int metricsY = (int) ctx.getResources().getDimension(R.dimen.map_mode_button_width); View tb = layoutInflater.inflate(R.layout.mode_view, null); tb.findViewById(R.id.app_mode_icon).setContentDescription(mode.toHumanString(ctx)); ImageView iv = (ImageView) tb.findViewById(R.id.app_mode_icon);