setScrimsShown

open fun setScrimsShown(shown: Boolean)

Set whether the content scrim and/or status bar scrim should be shown or not. Any change in the vertical scroll may overwrite this value. Any visibility change will be animated if this view has already been laid out.

Parameters

shown

whether the scrims should be shown

See also

getStatusBarScrim()
getContentScrim()

open fun setScrimsShown(shown: Boolean, animate: Boolean)

Set whether the content scrim and/or status bar scrim should be shown or not. Any change in the vertical scroll may overwrite this value.

Parameters

shown

whether the scrims should be shown

animate

whether to animate the visibility change

See also

getStatusBarScrim()
getContentScrim()