CollapsingToolbarLayout with multiline title

Sokolov picture Sokolov · Jul 5, 2015 · Viewed 7.4k times · Source

Is it possible to make CollapsingToolbarLayout's expanded title text wraps across several lines (similar to TextView.maxLines attribute)?

Answer

Ilanthirayan Paramanathan picture Ilanthirayan Paramanathan · Aug 16, 2016

I did this with help from this library

https://github.com/opacapp/multiline-collapsingtoolbar

add the library to your project and replace the CollapsingToolbarLayout with net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout