-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] Slight misalignment during transition in multiline mode #1052
Comments
…nment during transition in multiline mode
@johan12345 Thanks a lot for contributing the multi-line support! I also realized that the text is misaligned. This becomes even more prominent (to unusable) when the different between expanded and collapsed textSize is larger. I created a PR, so let's hope it gets included, soon. Maybe you can also have a look to verify that I did not miss anything. |
Yes, it works much better with that change in #1408. Thank you for figuring this out! |
Description: This affects the multiline mode of the CollapsingToolbarLayout that was added as an experimental feature in 1.2.0-alpha05 (see also: #413). Upon closer inspection of the new implementation, I found that there is a slight misalignment in the positions of the expanded text and the overlays drawn during the transition, as seen in the screenshot below. Also, when the text snaps to the completely collapsed state, there is a slight upwards jump of the text position. Both of these problems can be seen in the catalog app and were not present in my original version in #413.
Expected behavior: Smooth transition without misalignments. This worked correctly in our original PR:
Source code: see catalog app -> Top App Bar -> Collapsing Demo (Multiline title)
Android API version: 28
Material Library version: 1.2.0-alpha05
Device: Android Emulator
I haven't found the source of the issue yet, but it should be possible to find when comparing my implementation in #413 with the one added by @ymarian in 83e4e47.
The text was updated successfully, but these errors were encountered: