Floating Toolbar Behavior
class FloatingToolbarBehavior<T : FloatingToolbarLayout> @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : FloatingTopLayout.FloatingTopBehavior<T>
CoordinatorLayout Behavior for FloatingToolbarLayout managing scroll events and title alpha transitions.
Parameters
T
The type of FloatingToolbarLayout.
context
The Context the behavior is running in.
attrs
The attributes of the XML tag inflating the behavior.
Functions
Link copied to clipboard
Reacts to app bar state changes to animate title alpha and set eating touch state on toolbar.
Link copied to clipboard
Handles layout positioning and initial app bar state synchronization.
Link copied to clipboard
open override fun onStartNestedScroll(coordinatorLayout: CoordinatorLayout, child: T, directTargetChild: View, target: View, axes: Int, type: Int): Boolean
Evaluates scroll conditions and returns false to prevent direct nested scroll interception.