opacapp / multiline-collapsingtoolbar

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

Revert to single line when changing title text size with TextAppearance #42

Closed herrbert74 closed 7 years ago

herrbert74 commented 7 years ago

When I add this line to the view in xml:

app:expandedTitleTextAppearance="@style/MultilineCollapsingToolbar"

where the style is

<style name="MultilineCollapsingToolbar">
    <item name="android:textSize">@dimen/text_caption</item>
    <item name="android:textColor">?android:textColorPrimary</item>
</style>

, then I loose the multi line title and it reverts back to the ellipsis character. Is there an other way to set the title text size?

herrbert74 commented 7 years ago

Hm, after a while it suddenly started working. Probably because I switched from emulator to a real device and it rebuilt it. After that it works on the emulator as well. Closing.