From 98538c6efeae50838b8c84a90292d4a470db551a Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 6 Oct 2017 16:39:36 +0300 Subject: [PATCH] Fix landscape UI --- .../res/layout-land/fragment_plan_route.xml | 118 ++++++++---------- .../layout/fragment_map_markers_dialog.xml | 78 ++++++------ .../plus/mapmarkers/PlanRouteFragment.java | 5 +- 3 files changed, 91 insertions(+), 110 deletions(-) diff --git a/OsmAnd/res/layout-land/fragment_plan_route.xml b/OsmAnd/res/layout-land/fragment_plan_route.xml index 02306fc2f1..a969d9738c 100644 --- a/OsmAnd/res/layout-land/fragment_plan_route.xml +++ b/OsmAnd/res/layout-land/fragment_plan_route.xml @@ -16,95 +16,85 @@ android:background="?attr/left_menu_view_bg" android:orientation="vertical"> - + android:background="?attr/bg_color" + app:contentInsetLeft="54dp" + app:contentInsetStart="54dp"> - + android:gravity="center_vertical" + android:orientation="horizontal"> + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:orientation="vertical"> - - - - - - - + android:layout_width="match_parent" + android:layout_height="match_parent"> + + + android:textSize="@dimen/default_list_text_size" + tools:text="~ 45 min."/> - + android:textColor="?android:textColorSecondary" + android:textSize="@dimen/default_sub_text_size" + tools:text="3 markers"/> - + + - + - + android:layout_height="@dimen/dashboard_map_toolbar" + app:contentInsetLeft="54dp" + app:contentInsetStart="54dp"> - + android:gravity="center_vertical" + android:orientation="horizontal"> - + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:maxLines="1" + android:text="@string/map_markers" + android:textColor="@color/color_white" + android:textSize="@dimen/dialog_header_text_size" + osmand:typeface="@string/font_roboto_medium"/> - + + - - - - - - +