From a5c91ef0fe8a9ad97230d66edeebd3730c1f3455 Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Wed, 10 Mar 2021 10:51:38 +0800 Subject: [PATCH] Prevent a larger title from displaying incompletely Some larger titles in the accessibility will be wrapped into 2 lines and the tille looks like incomplete. This is because after starting to scroll down, the collasping toolbar detected the length of title is longer than the width of container and wrapped the title into 2 lines. To prevent this, we intented to reduce the end margin for the collapsing toolbar. Fixes: 182235627 Test: visual verified 1) Adjust font size to largest 2) Navigate to Settings -> Accessibility -> Text and display -> Color correction 3) Observe and see if the title is wrapped into 2 lines Change-Id: I1595b9ab4f8406bf6505f56786438c9030b5be59 --- res/layout/settings_collapsing_base_layout.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layout/settings_collapsing_base_layout.xml b/res/layout/settings_collapsing_base_layout.xml index ba9e625e752..7ebf4334513 100644 --- a/res/layout/settings_collapsing_base_layout.xml +++ b/res/layout/settings_collapsing_base_layout.xml @@ -39,7 +39,7 @@ app:statusBarScrim="?android:attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed" app:expandedTitleMarginStart="18dp" - app:expandedTitleMarginEnd="18dp" + app:expandedTitleMarginEnd="16dp" app:toolbarId="@id/action_bar">