setLiftOnScroll

open fun setLiftOnScroll(liftOnScroll: Boolean)

Sets whether the AppBarLayout lifts on scroll or not.

If set to true, the AppBarLayout will animate to the lifted, or elevated, state when content is scrolled beneath it. Requires `app:layout_behavior="@string/appbar_scrolling_view_behavior` to be set on the scrolling sibling (e.g., `NestedScrollView`, `RecyclerView`, etc.).