My problem is the next. I would use relatively large texts as CollapsingToolbarLayout title so I need to show it as multiline mode. When I try to change text appearance through
With the release of new Material Design 1.2.0-alpha05 this feature is implemented as a native function.
implement material library with version after(1.2.0-alpha05):
implementation 'com.google.android.material:material:1.2.0-alpha05'
Add this line to XML of Collapsing Toolbar Layout (this example I set 2 lines as max)
app:maxLines="2"
Alternatively you can set it programmatically
collapsingtoolbar.setMaxLines(2);