Skip to content

[CollapsingToolbarLayout] Slight misalignment during transition in multiline mode #1052

@johan12345

Description

@johan12345

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.

Screenshot_1582471001

Expected behavior: Smooth transition without misalignments. This worked correctly in our original PR:

Demo image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions