FloatingScrollableAdapter

Adapter interface wrapping scrollable views (such as androidx.recyclerview.widget.RecyclerView or androidx.core.widget.NestedScrollView) to abstract scroll events and layout inspection.

Inheritors

Functions

Link copied to clipboard

Registers a listener for scroll events.

Link copied to clipboard
abstract fun dispose()

Releases scroll listeners and resources attached to the underlying view.

Link copied to clipboard

Returns the underlying SeslScrollable instance if available.

Link copied to clipboard
open fun isEmptyView(view: View): Boolean

Returns true if the specified child view is considered empty (e.g. no visible children or empty text).

Link copied to clipboard
open fun isInScreen(availHeight: Int, appbarOffset: Int, appbarRange: Int = 0): Boolean

Checks if content views inside the scrollable container are currently visible within screen bounds.

Link copied to clipboard
open fun isValidCondition(view: View): Boolean

Checks whether the target view meets condition constraints.

Link copied to clipboard

Unregisters a scroll event listener.