Is it possible to make CollapsingToolbarLayout
's expanded title text wraps across several lines (similar to TextView.maxLines
attribute)?
Asked
Active
Viewed 7,639 times
16

Sokolof
- 2,271
- 2
- 19
- 30
-
Did you find a solution? – meeDamian Jul 15 '15 at 08:56
-
No. I'm setting `app:expandedTitleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle"` to make title's text smaller as workaround. – Sokolof Jul 15 '15 at 18:13
3 Answers
3
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

Ilanthirayan Paramanathan
- 440
- 5
- 18
0
I posted a solution on Android CollapsingToolbarLayout with custom View.
You can add the TextView, instead of a title inside your CollapsingToolbarLayout and change size/transition/color etc. with the help of the onOffsetChangeListner.