Skip to content

feat(appbar): Allow multiline titles in MaterialToolbar (Fixes #4725) #4745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

demoncoder-crypto
Copy link

[x] Identify the component the PR relates to in brackets in the title.
Suggested title: [AppBar] Allow multiline titles in MaterialToolbar

@hunterstich
Copy link
Contributor

hunterstich commented Jul 9, 2025

Hi @demoncoder-crypto

Thanks so much for the PR! I'm not sure if this is something we're likely to merge. If I understand the changes correctly, this is updating the default behavior of some of our themes and styles for M3 and MaterialComponents which would likely break existing usages. Additionally, our design guidelines call out using a collapsing toolbar for multi-line titles and suggests avoiding wrapping title text in a standard Toolbar.

Have you considered using a CollapsingToolbarLayout inside an AppBarLayout when titles might be multiline (which we support). You can see an example of how to set this up in our TopAppBarCollapsingMultilineDemoFragment example. Here's what that looks like:

coll_multiline.mp4

Closing this for now but feel free to re-open if you'd like to continue discussing the changes.

@hunterstich hunterstich closed this Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants