opacapp / multiline-collapsingtoolbar

A modified CollapsingToolbarLayout that can deal with multiline titles
Other
782 stars 113 forks source link

Expanded Title line spacing #29

Closed ButterRhopa closed 6 years ago

ButterRhopa commented 7 years ago

How to set the line spacing(like lineSpacingExtra or lineSpacingMultiplier) of expanded title? I am a new to Android and the project is too complex for me......So i did not find the answer

thanks a lot.

johan12345 commented 7 years ago

Currently, this is not possible because we have not added a method that allows to set these values. Instead, the values are hard-coded to lineSpacingMultiplier = 1 and lineSpacingExtra = 0.

It should be quite straightforward to add two methods for setting these values both to CollapsingTextHelper and then to CollapsingToolbarLayout (where the latter just needs to call the corresponding methods in CollapsingTextHelper). The point where the values are currently hard-coded is here.

Would you like to fork our repository and submit a pull request to add these methods?