seslSetCustomSubtitle

open fun seslSetCustomSubtitle(view: View)

Sets a custom view to replace the expanded subtitle.

The custom view will be displayed below the title when the CollapsingToolbarLayout is expanded. If a custom view is set, the standard subtitle text set via seslSetSubtitle will be ignored for the expanded state.

To remove a previously set custom subtitle view, pass null as the view parameter.

Parameters

view

The custom View to display as the expanded subtitle, or null to remove any previously set custom subtitle.

See also