setExpansionFraction

open fun setExpansionFraction(fraction: Float)

Set the value indicating the current scroll value. This decides how much of the background will be displayed, as well as the title metrics/positioning.

A value of 0.0 indicates that the layout is fully expanded. A value of 1.0 indicates that the layout is fully collapsed.