diff --git a/OsmAnd/res/layout-land/plan_route_info.xml b/OsmAnd/res/layout-land/plan_route_info.xml index 64a4c52ce2..c0eb36d3d0 100644 --- a/OsmAnd/res/layout-land/plan_route_info.xml +++ b/OsmAnd/res/layout-land/plan_route_info.xml @@ -5,7 +5,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/color_transparent" - android:clickable="true"> + android:clickable="true" + xmlns:tools="http://schemas.android.com/tools"> - - - + + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> - - - + android:layout_height="@dimen/list_item_height" + android:orientation="horizontal"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:layout_height="match_parent"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -25,8 +25,8 @@ android:id="@+id/dividerBtn1" android:layout_width="1dp" android:layout_height="match_parent" - android:layout_marginTop="@dimen/map_route_buttons_padding_top_bottom" - android:layout_marginBottom="@dimen/map_route_buttons_padding_top_bottom" + android:layout_marginTop="@dimen/route_info_buttons_padding_top_bottom" + android:layout_marginBottom="@dimen/route_info_buttons_padding_top_bottom" android:layout_gravity="center" tools:background="@color/route_info_divider_dark"/> @@ -35,10 +35,10 @@ android:contentDescription="@string/waypoints" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingTop="@dimen/map_route_buttons_padding_top_bottom" - android:paddingBottom="@dimen/map_route_buttons_padding_top_bottom" - android:paddingLeft="@dimen/map_route_buttons_padding_left_right" - android:paddingRight="@dimen/map_route_buttons_padding_left_right" + android:paddingTop="@dimen/route_info_buttons_padding_top_bottom" + android:paddingBottom="@dimen/route_info_buttons_padding_top_bottom" + android:paddingLeft="@dimen/route_info_buttons_padding_left_right" + android:paddingRight="@dimen/route_info_buttons_padding_left_right" android:layout_gravity="center_vertical" android:background="?attr/dashboard_button" android:src="@drawable/ic_action_test_light" /> @@ -47,8 +47,8 @@ android:id="@+id/dividerBtn2" android:layout_width="1dp" android:layout_height="match_parent" - android:layout_marginTop="@dimen/map_route_buttons_padding_top_bottom" - android:layout_marginBottom="@dimen/map_route_buttons_padding_top_bottom" + android:layout_marginTop="@dimen/route_info_buttons_padding_top_bottom" + android:layout_marginBottom="@dimen/route_info_buttons_padding_top_bottom" android:layout_gravity="center" tools:background="@color/route_info_divider_dark"/> @@ -57,10 +57,10 @@ android:contentDescription="@string/shared_string_more" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingTop="@dimen/map_route_buttons_padding_top_bottom" - android:paddingBottom="@dimen/map_route_buttons_padding_top_bottom" - android:paddingLeft="@dimen/map_route_buttons_padding_left_right" - android:paddingRight="@dimen/map_route_buttons_padding_left_right" + android:paddingTop="@dimen/route_info_buttons_padding_top_bottom" + android:paddingBottom="@dimen/route_info_buttons_padding_top_bottom" + android:paddingLeft="@dimen/route_info_buttons_padding_left_right" + android:paddingRight="@dimen/route_info_buttons_padding_left_right" android:layout_gravity="center_vertical" android:background="?attr/dashboard_button" android:src="@drawable/ic_action_test_light" /> @@ -73,13 +73,13 @@ android:layout_gravity="center_vertical" tools:drawableLeft="@drawable/ic_action_test_light" android:gravity="center_vertical" - android:drawablePadding="@dimen/map_route_button_go_drawable_padding" - android:paddingLeft="@dimen/map_route_button_go_drawable_padding" - android:paddingStart="@dimen/map_route_button_go_drawable_padding" - android:layout_marginTop="@dimen/map_route_button_go_margin" - android:layout_marginBottom="@dimen/map_route_button_go_margin" - android:layout_marginRight="@dimen/map_route_button_go_margin" - android:layout_marginEnd="@dimen/map_route_button_go_margin" + android:drawablePadding="@dimen/route_info_button_go_drawable_padding" + android:paddingLeft="@dimen/route_info_button_go_drawable_padding" + android:paddingStart="@dimen/route_info_button_go_drawable_padding" + android:layout_marginTop="@dimen/route_info_button_go_margin" + android:layout_marginBottom="@dimen/route_info_button_go_margin" + android:layout_marginRight="@dimen/route_info_button_go_margin" + android:layout_marginEnd="@dimen/route_info_button_go_margin" android:textSize="@dimen/default_list_text_size" android:textStyle="bold" tools:background="@drawable/route_info_go_btn_bg_dark"/> diff --git a/OsmAnd/res/layout/mode_view.xml b/OsmAnd/res/layout/mode_view.xml index 5d00a75539..4e53f468f7 100644 --- a/OsmAnd/res/layout/mode_view.xml +++ b/OsmAnd/res/layout/mode_view.xml @@ -1,17 +1,16 @@ + android:layout_width="@dimen/route_info_modes_height" + android:layout_height="@dimen/route_info_modes_height" + xmlns:tools="http://schemas.android.com/tools"> + android:scaleType="center"/> + android:clickable="true" + xmlns:tools="http://schemas.android.com/tools"> - - - + + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> - - - + android:layout_height="@dimen/list_item_height" + android:orientation="horizontal"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:layout_height="match_parent"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 90dp 81dp 72dp - 24dp - 33dp - 5dp - 21dp 450dp 160dp 510dp @@ -164,5 +160,16 @@ 8dp 42dp - + + + 24dp + 33dp + 5dp + 21dp + 72dp + 18dp + 24dp + 66dp + 72dp + \ No newline at end of file diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml index 723b7eec78..f74059ce31 100644 --- a/OsmAnd/res/values/sizes.xml +++ b/OsmAnd/res/values/sizes.xml @@ -66,10 +66,6 @@ 60dp 54dp 48dp - 16dp - 22dp - 3dp - 14dp 56dp 40dp @@ -237,4 +233,15 @@ 28dp 88dp + + + 16dp + 22dp + 3dp + 14dp + 56dp + 12dp + 16dp + 52dp + 48dp \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java b/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java index 9beed11c0c..f073e87516 100644 --- a/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java +++ b/OsmAnd/src/net/osmand/plus/activities/actions/AppModeDialog.java @@ -119,8 +119,8 @@ 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.map_mode_button_width); + int metricsX = (int) ctx.getResources().getDimension(R.dimen.route_info_modes_height); + int metricsY = (int) ctx.getResources().getDimension(R.dimen.route_info_modes_height); View tb = layoutInflater.inflate(R.layout.mode_view, null); ImageView iv = (ImageView) tb.findViewById(R.id.app_mode_icon); iv.setImageDrawable(ctx.getIconsCache().getIcon(mode.getSmallIconDark(), R.color.osmand_orange));