-
Notifications
You must be signed in to change notification settings - Fork 114
Execute multi line->single line transition during content scrim animation #34
Comments
One would need to add something to this listener that then influences the blending of the text. Currently, this is done here instead depending on the scrolling position. If you'd implement this and make the behavior switchable between the current animation and this version using a method in CollapsingToolbarLayout, we would accept that as a pull request. |
I've implemented something that works for us. At present it can't be disabled but I think that shouldn't be hard to do. Do you have any preference for an xml attribute name to switch this behavior?
With the values |
Maybe something like |
Or even |
Yeah, that's fine too. |
My idea was to target a broader scope with that field and not just the title text. We have implemented another extension that could be affected by this setting. We use it to switch between a white themed toolbar and a dark themed toolbar during the scrim animation. The scrim changes the appearance of our toolbar from a dark background to a white one. So we have two toolbars and x-fade them during the scrim animation (or optionally as per |
I've just opened PR #38 you apply it like this
You can also apply this
Which means that the scrim is now applied gradually as you scroll. There is another value called I have a branch called "schedjoules" which will contain the changes of all three PRs. Let me know if you'd prefer a single PR with all the enhancements (with the conflicts already being resolved). |
I'd like to execute the multi line to single line transition in an automated animation, synchronized with the content scrim animation, instead of gradually morphing from multi line to single line.
Is there any way to achieve that?
The text was updated successfully, but these errors were encountered: