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] MultiLine (maxLines) not applying correct gravity to text #1276
Comments
Making a clone of the CollapsingToolbarLayout and using in the helper ALIGN_CENTER seems to fix the issue. As soon as I finish my sprint I will try to come up with a PullRequest fixing it here (if it's not already done). If someone can iterate this faster than me, the line is this one Cheers guys :) |
I found other issues (which I might try to fix also, if not at least I document them):
It somehow doesn't load. I did some debugging but I couldn't reach to anything in concrete besides the problem being in the initialization phase. Using a manual approach (
Code for more visibility:
|
We have the same issue, using version 1.2.0! We want 2 lines and gravity to be centered. |
Can confirm bug still happens on version 1.2.1 |
from what I can tell the last version of the library that didn't have this issue was I ended up taking a hackish approach, changing |
Bug still exists in 1.3.0-alpha03, I currently have a need for this feature as it breaks the UI. |
👍 |
I'm facing the same issue in 1.4.0-beta01 |
Why thet cannot apply pull request fix, or chage StaticLayout.setAlignment(Alignment.ALIGN_NORMAL) to setAlignment(Alignment.ALIGN_CENTER) if expandedTextGravity == center|center_horizontal ? |
Bug still exists in 1.5.0-alpha01. |
Description: When using maxLines in alpha06 with expandedTitleGravity set to center. Text isn't centered.
Expected behavior: The expanded title should be centered (or the desired gravity should be applied)
Source code:
Android API version: Android 7.0 (api 24)
Material Library version: 1.2.0-alpha06
Device: Samsung SM-G925I
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
The text was updated successfully, but these errors were encountered: