Hide Bottom View On Scroll Behavior
The Behavior for a View within a CoordinatorLayout to hide the view off the bottom of the screen when scrolling down, and show it when scrolling up.
Inheritors
Types
Link copied to clipboard
interface OnScrollStateChangedListener
Interface definition for a listener to be notified when the bottom view scroll state changes.
Link copied to clipboard
Positions the scroll state can be set to.
Properties
Functions
Link copied to clipboard
open fun addOnScrollStateChangedListener(@NonNull listener: HideBottomViewOnScrollBehavior.OnScrollStateChangedListener)
Adds a listener to be notified of bottom view scroll state changes.
Link copied to clipboard
Remove all previously added OnScrollStateChangedListeners.
Link copied to clipboard
Returns true if the current state is scrolled down.
Link copied to clipboard
Returns true if the current state is scrolled up.
Link copied to clipboard
open fun onLayoutChild(@NonNull parent: CoordinatorLayout, @NonNull child: V, layoutDirection: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeOnScrollStateChangedListener(@NonNull listener: HideBottomViewOnScrollBehavior.OnScrollStateChangedListener)
Removes a previously added listener.
Link copied to clipboard
Sets an additional offset for the y position used to hide the view.
Link copied to clipboard
Link copied to clipboard