From e2dcab77c6c7f903b2f9d90c2727d4da69a6a431 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Wed, 16 Aug 2017 14:16:40 +0300 Subject: [PATCH] Add switch to options menu --- .../res/layout/fragment_measurement_tool.xml | 2 + .../fragment_options_bottom_sheet_dialog.xml | 37 +++++++++++++++++-- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/layout/fragment_measurement_tool.xml b/OsmAnd/res/layout/fragment_measurement_tool.xml index 438f7d736f..d27e06821b 100644 --- a/OsmAnd/res/layout/fragment_measurement_tool.xml +++ b/OsmAnd/res/layout/fragment_measurement_tool.xml @@ -212,6 +212,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:background="?attr/selectableItemBackground" + android:ellipsize="end" android:gravity="center_vertical" android:maxLines="1" android:paddingEnd="12dp" @@ -266,6 +267,7 @@ android:layout_marginTop="8dp" android:background="@drawable/btn_round_blue" android:drawableLeft="@drawable/ic_action_plus" + android:ellipsize="end" android:maxLines="1" android:minHeight="36dp" android:paddingLeft="8dp" diff --git a/OsmAnd/res/layout/fragment_options_bottom_sheet_dialog.xml b/OsmAnd/res/layout/fragment_options_bottom_sheet_dialog.xml index 9307702d3f..bbc05d9888 100644 --- a/OsmAnd/res/layout/fragment_options_bottom_sheet_dialog.xml +++ b/OsmAnd/res/layout/fragment_options_bottom_sheet_dialog.xml @@ -48,15 +48,44 @@ android:layout_marginRight="24dp" tools:src="@drawable/ic_action_snap_to_road"/> - + + + android:layout_toStartOf="@id/snap_to_road_switch" + android:orientation="vertical"> + + + + + +