In the design support library (V 22.2.0), I am having problems setting the expandTitleTextAppearance and collapsedTitleTextAppearance properties for CollapsingToolbarLayout.
For example, if I install it like this:
<android.support.design.widget.CollapsingToolbarLayout android:layout_width="match_parent" android:layout_height="match_parent" app:layout_scrollFlags="scroll|exitUntilCollapsed" app:expandedTitleTextAppearance="@style/TransparentText" >
and the styles are as follows:
<style name="TransparentText"> <item name="android:textColor">#00000000</item> </style> <style name="GreyText"> <item name="android:textColor">#666666</item> </style>
The text does not appear, but when I try to expand the toolbar after smoothing it, the application crashes on Android 4.1.
And if I installed it like this:
app:expandedTitleTextAppearance="@style/TransparentText" app:collapsedTitleTextAppearance="@style/GreyText"
It no longer crashes, but the text does not appear when it crashes.
source share