You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
@raphaelm I think he is talking about the gray overlay behind the text. That's not a standard feature of the collapsing toolbar.
It would probably be possible to create such a background with a fixed height (using a semi-transparent view inside the CollapsingToolbarLayout). But if you want the height to adapt to the text height (also during the animation between collapsed and expanded states), the easiest way is probably to directly look at the drawing code.
At CollapsingTextHelper.java:553, there's some code that draws a rectangle behind the text used for debugging. Probably that could be adapted to your use case.
How can I add a background shape/color and align it with the expanded title like so?
The goal is that the background expands/shrinks with the title.
The text was updated successfully, but these errors were encountered: