[CollapsingToolbarLayout] I can't tune the size of bar for any number of lines
See original GitHub issueI’m trying a multiline top app bar collapsing example. In my app I can have a 3line or 2line or even very short one line title, for example (I’ve shorten yours):
I’ve tried to set
android:layout_height="wrap_content"
- to com.google.android.material.appbar.AppBarLayout
- then to com.google.android.material.appbar.CollapsingToolbarLayout
- then to androidx.appcompat.widget.Toolbar
but in every case I’m broking all the animation by doing this! Please suggest me how can I make a “wrap_content” like expanding and collapsing toolbar with such a pretty animation?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
CollapsingToolbarLayout not working properly - Stack Overflow
The problem is that when the toolbar is expanded, the icons are way too high. And when collapsed, they are simply gone. See...
Read more >Design Support Library (IV): Collapsing Toolbar Layout
First, the collapsing layout specify how it will behave when the content is scrolled using the flags scroll|exitUntilCollapsed , so it will scroll...
Read more >CollapsingToolbarLayout - Android Developers
Gets whether extra height should be added when the title text spans across multiple lines. boolean, isForceApplySystemWindowInsetTop().
Read more >Android CollapsingToolbarLayout Example - DigitalOcean
Android CollapsingToolbarLayout is a wrapper for Toolbar which implements a collapsing app bar. It is designed to be used as a direct child ......
Read more >Collapsing Toolbar With Recyclerview Android Example
Stroppy or sporting, Herschel never fold any thong! ... with android collapsing toolbar layout should work but when collapsed toolbar ... song will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
May be it help somebody https://stackoverflow.com/a/63841350/1654690
Yes, exactly. Make invisible TextView that duplicates the text on CollapsingToolbarLayout