From 1dd6fc22f3d549ad5d72e7305f607c7edfde672f Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Thu, 9 Apr 2020 14:11:31 +0300 Subject: [PATCH] Fix #8512 Bottom sheet dialogs should support multiline headings --- OsmAnd/res/layout/bottom_sheet_item_title.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/res/layout/bottom_sheet_item_title.xml b/OsmAnd/res/layout/bottom_sheet_item_title.xml index d8ebd46514..1736b7148a 100644 --- a/OsmAnd/res/layout/bottom_sheet_item_title.xml +++ b/OsmAnd/res/layout/bottom_sheet_item_title.xml @@ -5,13 +5,15 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/title" android:layout_width="match_parent" - android:layout_height="@dimen/bottom_sheet_title_height" + android:layout_height="wrap_content" android:ellipsize="end" android:gravity="center_vertical" - android:maxLines="1" + android:maxLines="5" android:minHeight="@dimen/bottom_sheet_title_height" android:paddingLeft="@dimen/content_padding" android:paddingRight="@dimen/content_padding" + android:paddingTop="@dimen/content_padding_small" + android:paddingBottom="@dimen/content_padding_small" android:textAppearance="@style/TextAppearance.ListItemTitle" osmand:typeface="@string/font_roboto_medium" tools:text="Some Title"