Skip to content
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

[CollapsingToolbarLayout] Set ellipsis to middle of Title in CollapsingToolBar #2631

Closed
venugopalraog opened this issue Apr 8, 2022 · 2 comments

Comments

@venugopalraog
Copy link
Contributor

Is your feature request related to a problem? Please describe.
CollapsingToolbar is setting the Title truncation to End. But as per our requirement we need to set the ellipsis in middle since the last chars in the Title are important we can't ignore or truncate it. Is there any way to achieve it?

Describe the solution you'd like
CollapsingToolbar currently doesn't provide any method to setEllipsize() method so that we can set Ellipsize to middle.

Describe alternatives you've considered
Before setting the Text to Title we have formatted string and added middle ellipsize but problem with this approach is we have to consider all the devices types.

Additional context
Created defect already but it closed with comments current implementation doesn't support and asked to create New Feature request.

#2614

@venugopalraog
Copy link
Contributor Author

venugopalraog commented Apr 13, 2022

@drchen contributed below PR to fix this issue.
PR -#2636

@drchen
Copy link
Contributor

drchen commented May 18, 2022

PR has been submitted.

@drchen drchen closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants